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) => {
3939
4040 const isCompactSize = getCompactSize ( ) ;
4141
42- const contentDensity = useMemo ( ( ) => {
43- return isCompactSize ? ContentDensity . Compact : ContentDensity . Cozy ;
44- } , [ isCompactSize ] ) ;
45-
4642 const parameters = useMemo ( ( ) => {
4743 if ( theme === Themes . sap_fiori_3 ) return sap_fiori_3 ;
4844 return null ;
@@ -51,10 +47,10 @@ const ThemeProvider: FC<ThemeProviderProps> = (props) => {
5147 const themeContext = useMemo ( ( ) => {
5248 return {
5349 theme,
54- contentDensity,
50+ contentDensity : isCompactSize ? ContentDensity . Compact : ContentDensity . Cozy ,
5551 parameters
5652 } ;
57- } , [ theme , contentDensity , parameters ] ) ;
53+ } , [ theme , isCompactSize , parameters ] ) ;
5854
5955 return (
6056 < JssProvider generateId = { generateClassName } >
You can’t perform that action at this time.
0 commit comments