Skip to content

Commit

Permalink
frontend: Add CssBaseline component for improved default styles
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksandr Dubenko <[email protected]>
  • Loading branch information
sniok committed Dec 13, 2024
1 parent 22688fa commit 761002c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/i18n/ThemeProviderNexti18n.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { CssBaseline } from '@mui/material';
import { deDE, enUS, esES, frFR, hiIN, ptPT } from '@mui/material/locale';
import { createTheme, StyledEngineProvider, Theme, ThemeProvider } from '@mui/material/styles';
import React, { ReactNode, useEffect, useState } from 'react';
Expand Down Expand Up @@ -55,6 +56,7 @@ const ThemeProviderNexti18n: React.FunctionComponent<{
return (
<StyledEngineProvider injectFirst>
<ThemeProvider theme={theme}>
<CssBaseline enableColorScheme />
{!!isI18nReady ? props.children : <Loader title="Loading..." />}
</ThemeProvider>
</StyledEngineProvider>
Expand Down

0 comments on commit 761002c

Please sign in to comment.