Skip to content

Commit

Permalink
Merge pull request #1319 from syucream/feature/react-strict-mode
Browse files Browse the repository at this point in the history
Enable React strict mode
  • Loading branch information
userlocalhost authored Nov 13, 2024
2 parents b25be81 + 8196725 commit 4ffce74
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions frontend/src/AppBase.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ThemeProvider } from "@mui/material/styles";
import React, { FC } from "react";
import React, { FC, StrictMode } from "react";

import { AironeSnackbarProvider } from "AironeSnackbarProvider";
import { ErrorHandler } from "ErrorHandler";
Expand All @@ -17,14 +17,16 @@ interface Props {

export const AppBase: FC<Props> = ({ customRoutes }) => {
return (
<ThemeProvider theme={theme}>
<AironeSnackbarProvider>
<ErrorHandler>
<CheckTerms>
<AppRouter customRoutes={customRoutes} />
</CheckTerms>
</ErrorHandler>
</AironeSnackbarProvider>
</ThemeProvider>
<StrictMode>
<ThemeProvider theme={theme}>
<AironeSnackbarProvider>
<ErrorHandler>
<CheckTerms>
<AppRouter customRoutes={customRoutes} />
</CheckTerms>
</ErrorHandler>
</AironeSnackbarProvider>
</ThemeProvider>
</StrictMode>
);
};

0 comments on commit 4ffce74

Please sign in to comment.