Skip to content

Commit

Permalink
fix(replaceAll): correction de l'erreur sur la page 404 qui load `pan…
Browse files Browse the repository at this point in the history
…dacss` mais qui ne contient pas le `PolyfillComponent`
  • Loading branch information
maxgfr authored Dec 3, 2024
1 parent a15cdbc commit b345f9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { DefaultColorScheme } from "@codegouvfr/react-dsfr/next-appdir";
import { StartDsfrSystem } from "./StartDsfrSystem";
import { StartDsfrLight } from "./StartDsfrLight";
import { StartDsfrDark } from "./StartDsfrDark";
import { PolyfillComponent } from "./PolyfillComponent";

type Props = {
children: React.ReactNode;
Expand Down Expand Up @@ -45,7 +44,6 @@ export default function DefaultLayout({
/>
</head>
<body>
<PolyfillComponent />
<DsfrProvider lang={lang}>{children}</DsfrProvider>
<MatomoAnalytics />
</body>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { PolyfillComponent } from "../config/PolyfillComponent";
import { Footer } from "./Footer";
import { Header } from "./header";
import { NeedMoreInfo } from "./infos";
Expand All @@ -11,6 +12,7 @@ type Props = {
export const DsfrLayout = ({ children, container = "fr-container" }: Props) => {
return (
<>
<PolyfillComponent />
<SkipLinks />
<Header />
<main className={container} id="main">
Expand Down

0 comments on commit b345f9f

Please sign in to comment.