Skip to content

Commit b345f9f

Browse files
authored
fix(replaceAll): correction de l'erreur sur la page 404 qui load pandacss mais qui ne contient pas le PolyfillComponent
1 parent a15cdbc commit b345f9f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/code-du-travail-frontend/src/modules/config/DefaultLayout.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { DefaultColorScheme } from "@codegouvfr/react-dsfr/next-appdir";
77
import { StartDsfrSystem } from "./StartDsfrSystem";
88
import { StartDsfrLight } from "./StartDsfrLight";
99
import { StartDsfrDark } from "./StartDsfrDark";
10-
import { PolyfillComponent } from "./PolyfillComponent";
1110

1211
type Props = {
1312
children: React.ReactNode;
@@ -45,7 +44,6 @@ export default function DefaultLayout({
4544
/>
4645
</head>
4746
<body>
48-
<PolyfillComponent />
4947
<DsfrProvider lang={lang}>{children}</DsfrProvider>
5048
<MatomoAnalytics />
5149
</body>

packages/code-du-travail-frontend/src/modules/layout/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { PolyfillComponent } from "../config/PolyfillComponent";
12
import { Footer } from "./Footer";
23
import { Header } from "./header";
34
import { NeedMoreInfo } from "./infos";
@@ -11,6 +12,7 @@ type Props = {
1112
export const DsfrLayout = ({ children, container = "fr-container" }: Props) => {
1213
return (
1314
<>
15+
<PolyfillComponent />
1416
<SkipLinks />
1517
<Header />
1618
<main className={container} id="main">

0 commit comments

Comments
 (0)