diff --git a/packages/code-du-travail-frontend/src/modules/config/DefaultLayout.tsx b/packages/code-du-travail-frontend/src/modules/config/DefaultLayout.tsx index 08c1593b17..70f9d95ec8 100644 --- a/packages/code-du-travail-frontend/src/modules/config/DefaultLayout.tsx +++ b/packages/code-du-travail-frontend/src/modules/config/DefaultLayout.tsx @@ -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; @@ -45,7 +44,6 @@ export default function DefaultLayout({ /> - {children} diff --git a/packages/code-du-travail-frontend/src/modules/layout/index.tsx b/packages/code-du-travail-frontend/src/modules/layout/index.tsx index 42db14269f..dd567cd312 100644 --- a/packages/code-du-travail-frontend/src/modules/layout/index.tsx +++ b/packages/code-du-travail-frontend/src/modules/layout/index.tsx @@ -1,3 +1,4 @@ +import { PolyfillComponent } from "../config/PolyfillComponent"; import { Footer } from "./Footer"; import { Header } from "./header"; import { NeedMoreInfo } from "./infos"; @@ -11,6 +12,7 @@ type Props = { export const DsfrLayout = ({ children, container = "fr-container" }: Props) => { return ( <> +