File tree 2 files changed +19
-1
lines changed
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,21 @@ function SistentThemeProvider({
32
32
) ;
33
33
}
34
34
35
+ export function SistentThemeProviderWithoutBaseLine ( {
36
+ children,
37
+ emotionCache,
38
+ initialMode = 'light'
39
+ } : SistentThemeProviderProps ) : JSX . Element {
40
+ console . log ( 'SistentThemeProviderWithoutBaseLine' ) ;
41
+ const theme = React . useMemo < Theme > ( ( ) => createCustomTheme ( initialMode ) , [ initialMode ] ) ;
42
+
43
+ return (
44
+ < SistentThemeProviderContext . Provider value = { { emotionCache } } >
45
+ < ThemeProvider theme = { theme } > { children } </ ThemeProvider >
46
+ </ SistentThemeProviderContext . Provider >
47
+ ) ;
48
+ }
49
+
35
50
export default SistentThemeProvider ;
36
51
37
52
export { SistentThemeProvider } ;
Original file line number Diff line number Diff line change 1
1
export { darkModePalette , lightModePalette } from './palette' ;
2
2
export { typography } from './typography' ;
3
3
4
- export { default as SistentThemeProvider } from './ThemeProvider' ;
4
+ export {
5
+ default as SistentThemeProvider ,
6
+ SistentThemeProviderWithoutBaseLine
7
+ } from './ThemeProvider' ;
5
8
export * from './colors' ;
You can’t perform that action at this time.
0 commit comments