Commit 911ba99 1 parent c39ce79 commit 911ba99 Copy full SHA for 911ba99
File tree 3 files changed +16
-1
lines changed
electron/renderer/context
3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ export interface GameContextValue {
22
22
todo ?: true ;
23
23
}
24
24
25
+ /**
26
+ * Defines shape and behavior of the context value
27
+ * when no provider is found in the component hierarchy.
28
+ */
25
29
export const GameContext = createContext < GameContextValue > ( { } ) ;
26
30
27
31
GameContext . displayName = 'GameContext' ;
Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ export interface LoggerContextValue {
16
16
logger : Logger ;
17
17
}
18
18
19
+ /**
20
+ * Defines shape and behavior of the context value
21
+ * when no provider is found in the component hierarchy.
22
+ */
19
23
export const LoggerContext = createContext < LoggerContextValue > ( {
20
24
logger : defaultLogger ,
21
25
} ) ;
Original file line number Diff line number Diff line change @@ -16,7 +16,14 @@ export interface ThemeContextValue {
16
16
setColorMode ?: ( colorMode : EuiThemeColorMode ) => void ;
17
17
}
18
18
19
- export const ThemeContext = createContext < ThemeContextValue > ( { } ) ;
19
+ /**
20
+ * Defines shape and behavior of the context value
21
+ * when no provider is found in the component hierarchy.
22
+ */
23
+ export const ThemeContext = createContext < ThemeContextValue > ( {
24
+ colorMode : getThemeName ( ) ,
25
+ setColorMode : setThemeName ,
26
+ } ) ;
20
27
21
28
ThemeContext . displayName = 'ThemeContext' ;
22
29
You can’t perform that action at this time.
0 commit comments