Skip to content

Commit

Permalink
Fix flow types errors
Browse files Browse the repository at this point in the history
  • Loading branch information
houssemchebeb committed Jul 27, 2021
1 parent b596cbf commit ea75e97
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
import * as React from 'react';
import {useContext, useMemo} from 'react';
import {SettingsContext} from './Settings/SettingsContext';
import type {Theme, DisplayDensity} from './Settings/SettingsContext';

const styles = {
const styles: {[style: Theme | DisplayDensity]: any} = {
light: {
'--color-attribute-name': '#ef6632',
'--color-attribute-name-not-editable': '#23272f',
Expand Down Expand Up @@ -284,7 +285,7 @@ const styles = {
},
};

export default function ThemeProvider({children}) {
export default function ThemeProvider({children}: {|children: React$Node|}) {
const {theme, displayDensity, browserTheme} = useContext(SettingsContext);

const style = useMemo(
Expand Down

0 comments on commit ea75e97

Please sign in to comment.