File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
packages/main/src/components/ThemeProvider Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,6 @@ const ThemeProvider: FC<ThemeProviderProps> = (props) => {
39
39
40
40
const isCompactSize = getCompactSize ( ) ;
41
41
42
- const contentDensity = useMemo ( ( ) => {
43
- return isCompactSize ? ContentDensity . Compact : ContentDensity . Cozy ;
44
- } , [ isCompactSize ] ) ;
45
-
46
42
const parameters = useMemo ( ( ) => {
47
43
if ( theme === Themes . sap_fiori_3 ) return sap_fiori_3 ;
48
44
return null ;
@@ -51,10 +47,10 @@ const ThemeProvider: FC<ThemeProviderProps> = (props) => {
51
47
const themeContext = useMemo ( ( ) => {
52
48
return {
53
49
theme,
54
- contentDensity,
50
+ contentDensity : isCompactSize ? ContentDensity . Compact : ContentDensity . Cozy ,
55
51
parameters
56
52
} ;
57
- } , [ theme , contentDensity , parameters ] ) ;
53
+ } , [ theme , isCompactSize , parameters ] ) ;
58
54
59
55
return (
60
56
< JssProvider generateId = { generateClassName } >
You can’t perform that action at this time.
0 commit comments