Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jtklein committed Sep 30, 2024
1 parent a59cfd6 commit ae4bd44
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/app/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import { observer } from 'mobx-react';
import { ThemeProvider } from '@mui/styles';
import { StyledEngineProvider } from '@mui/material/styles';
import * as Sentry from '@sentry/electron/renderer';

import theme from './theme';
Expand All @@ -19,11 +20,13 @@ const Index = () => {
const { light, dark } = theme;
const muiTheme = store.config.isDarkMode ? dark : light;
return (
<ThemeProvider theme={muiTheme}>
<ErrorBoundary>
<App />
</ErrorBoundary>
</ThemeProvider>
<StyledEngineProvider injectFirst>
<ThemeProvider theme={muiTheme}>
<ErrorBoundary>
<App />
</ErrorBoundary>
</ThemeProvider>
</StyledEngineProvider>
);
}

Expand Down

0 comments on commit ae4bd44

Please sign in to comment.