Skip to content

Commit

Permalink
Merge branch 'master' into 699-backend-for-interview-notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias-a authored Oct 11, 2023
2 parents f4de664 + c2d800e commit 02700f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { Helmet, HelmetProvider } from 'react-helmet-async';
import { BrowserRouter } from 'react-router-dom';
import { ToastContainer } from 'react-toastify';
import { AppRoutes } from '~/AppRoutes';
import { useIsDarkTheme } from '~/hooks';

import 'react-toastify/dist/ReactToastify.min.css';

Expand All @@ -13,6 +14,7 @@ export function App() {
const goatCounterCode = import.meta.env.VITE_GOATCOUNTER_CODE;
const isDev = import.meta.env.DEV;
const localSetup = isDev ? '{"allow_local": true}' : undefined;
const isDarkTheme = useIsDarkTheme();

return (
<HelmetProvider>
Expand All @@ -32,7 +34,7 @@ export function App() {
<AppRoutes />
<CommandMenu />
{/* Move down from navbar. */}
<ToastContainer style={{ marginTop: '45px' }} />
<ToastContainer style={{ marginTop: '45px' }} theme={isDarkTheme ? 'dark' : 'light'} />
</BrowserRouter>
</HelmetProvider>
);
Expand Down

0 comments on commit 02700f2

Please sign in to comment.