File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import { spacingTokenByValue } from "./fr/generatedFromCss/spacing";
12
12
import { assert } from "tsafe/assert" ;
13
13
import { objectKeys } from "tsafe/objectKeys" ;
14
14
import { id } from "tsafe/id" ;
15
- import { useBreakpointsValues , type BreakpointsValues } from "./useBreakpointsValues " ;
15
+ import { useBreakpointsValuesPx , type BreakpointsValues } from "./useBreakpointsValuesPx " ;
16
16
17
17
export function getMuiDsfrThemeOptions ( params : {
18
18
isDark : boolean ;
@@ -365,7 +365,7 @@ export function createMuiDsfrThemeProvider(params: {
365
365
366
366
const { isDark } = useIsDark_props ( ) ;
367
367
368
- const { breakpointsValues } = useBreakpointsValues ( ) ;
368
+ const { breakpointsValues } = useBreakpointsValuesPx ( ) ;
369
369
370
370
const theme = useMemo ( ( ) => {
371
371
const nonAugmentedMuiTheme = createMuiDsfrTheme ( { isDark, breakpointsValues } ) ;
@@ -376,7 +376,7 @@ export function createMuiDsfrThemeProvider(params: {
376
376
nonAugmentedMuiTheme,
377
377
isDark
378
378
} ) ;
379
- } , [ isDark ] ) ;
379
+ } , [ isDark , breakpointsValues ] ) ;
380
380
381
381
return < MuiThemeProvider theme = { theme } > { children } </ MuiThemeProvider > ;
382
382
}
You can’t perform that action at this time.
0 commit comments