Skip to content

Commit b4c8327

Browse files
ci: apply automated fixes
1 parent 0c619c8 commit b4c8327

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

packages/devtools-utils/src/react/panel.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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
}

packages/devtools-utils/src/solid/class.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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]

0 commit comments

Comments
 (0)