File tree Expand file tree Collapse file tree
packages/devtools-utils/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,9 +27,7 @@ export function createReactPanel<
2727 mount : ( el : HTMLElement , theme : 'light' | 'dark' ) => void
2828 unmount : ( ) => void
2929 } ,
30- > (
31- CoreClass : new ( ) => TCoreDevtoolsClass
32- ) {
30+ > ( CoreClass : new ( ) => TCoreDevtoolsClass ) {
3331 function Panel ( props : TComponentProps ) {
3432 const devToolRef = useRef < HTMLDivElement > ( null )
3533 const devtools = useRef < TCoreDevtoolsClass | null > ( null )
@@ -42,7 +40,6 @@ export function createReactPanel<
4240 devtools . current . mount ( devToolRef . current , props ?. theme ?? 'dark' )
4341 }
4442
45-
4643 return ( ) => {
4744 devtools . current ?. unmount ( )
4845 }
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ export function constructCoreClass(importPath: string) {
1616 #Component: any
1717 #ThemeProvider: any
1818
19- constructor ( ) { }
19+ constructor ( ) { }
2020
2121 async mount < T extends HTMLElement > ( el : T , theme : 'light' | 'dark' ) {
2222 const { lazy } = await import ( 'solid-js' )
@@ -61,10 +61,10 @@ export function constructCoreClass(importPath: string) {
6161 constructor ( ) {
6262 super ( )
6363 }
64- async mount < T extends HTMLElement > ( _el : T , _theme : 'light' | 'dark' ) { }
65- unmount ( ) { }
64+ async mount < T extends HTMLElement > ( _el : T , _theme : 'light' | 'dark' ) { }
65+ unmount ( ) { }
6666 }
6767 return [ DevtoolsCore , NoOpDevtoolsCore ] as const
6868}
6969
70- export type ClassType = ReturnType < typeof constructCoreClass > [ 0 ]
70+ export type ClassType = ReturnType < typeof constructCoreClass > [ 0 ]
You can’t perform that action at this time.
0 commit comments