File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/react-devtools-shared/src/devtools/views Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 10
10
import * as React from 'react' ;
11
11
import { useContext , useMemo } from 'react' ;
12
12
import { SettingsContext } from './Settings/SettingsContext' ;
13
+ import type { Theme , DisplayDensity } from './Settings/SettingsContext' ;
13
14
14
- const styles = {
15
+ const styles : { [ style : Theme | DisplayDensity ] : any } = {
15
16
light : {
16
17
'--color-attribute-name' : '#ef6632' ,
17
18
'--color-attribute-name-not-editable' : '#23272f' ,
@@ -284,7 +285,7 @@ const styles = {
284
285
} ,
285
286
} ;
286
287
287
- export default function ThemeProvider ( { children} ) {
288
+ export default function ThemeProvider ( { children} : { | children : React$Node | } ) {
288
289
const { theme, displayDensity, browserTheme} = useContext ( SettingsContext ) ;
289
290
290
291
const style = useMemo (
You can’t perform that action at this time.
0 commit comments