Skip to content

Commit 7506426

Browse files
committed
fix type incosistencies
1 parent 18fc9a9 commit 7506426

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ export function createReactPanel<
5252
return <div style={{ height: '100%' }} ref={devToolRef} />
5353
}
5454

55-
function NoOpPanel() {
56-
return null
55+
function NoOpPanel(_props: TComponentProps) {
56+
return <></>
5757
}
5858
return [Panel, NoOpPanel] as const
5959
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function createReactPlugin(
1616
function NoOpPlugin() {
1717
return {
1818
name: name,
19-
render: (_el: HTMLElement, _theme: 'light' | 'dark') => null,
19+
render: (_el: HTMLElement, _theme: 'light' | 'dark') => <></>,
2020
}
2121
}
2222
return [Plugin, NoOpPlugin] as const

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ export function createSolidPanel<
2828
return <div style={{ height: '100%' }} ref={devToolRef} />
2929
}
3030

31-
function NoOpPanel() {
32-
return null
31+
function NoOpPanel(_props: TComponentProps) {
32+
return <></>
3333
}
3434

3535
return [Panel, NoOpPanel] as const

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function createSolidPlugin(
1818
function NoOpPlugin() {
1919
return {
2020
name: name,
21-
render: (_el: HTMLElement, _theme: 'light' | 'dark') => null,
21+
render: (_el: HTMLElement, _theme: 'light' | 'dark') => <></>,
2222
}
2323
}
2424
return [Plugin, NoOpPlugin] as const

0 commit comments

Comments
 (0)