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 1010import * as React from 'react' ;
1111import { useContext , useMemo } from 'react' ;
1212import { SettingsContext } from './Settings/SettingsContext' ;
13+ import type { Theme , DisplayDensity } from './Settings/SettingsContext' ;
1314
14- const styles = {
15+ const styles : { [ style : Theme | DisplayDensity ] : any } = {
1516 light : {
1617 '--color-attribute-name' : '#ef6632' ,
1718 '--color-attribute-name-not-editable' : '#23272f' ,
@@ -274,7 +275,7 @@ const styles = {
274275 } ,
275276} ;
276277
277- export default function ThemeProvider ( { children} ) {
278+ export default function ThemeProvider ( { children} : { | children : React$Node | } ) {
278279 const { theme, displayDensity, browserTheme} = useContext ( SettingsContext ) ;
279280
280281 const style = useMemo (
You can’t perform that action at this time.
0 commit comments