-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Arnaud AMBROSELLI
committed
May 21, 2024
1 parent
a25375e
commit 53d5ef9
Showing
17 changed files
with
591 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
"use client" | ||
|
||
import { startReactDsfr } from "@codegouvfr/react-dsfr/next-appdir" | ||
import { defaultColorScheme } from "./defaultColorScheme" | ||
import Link from "next/link" | ||
|
||
declare module "@codegouvfr/react-dsfr/next-appdir" { | ||
interface RegisterLink { | ||
Link: typeof Link | ||
} | ||
} | ||
|
||
startReactDsfr({ defaultColorScheme, Link }) | ||
|
||
export function StartDsfr() { | ||
//Yes, leave null here. | ||
return null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import type { DefaultColorScheme } from "@codegouvfr/react-dsfr/next-appdir" | ||
|
||
export const defaultColorScheme: DefaultColorScheme = "system" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { DsfrHead } from "@codegouvfr/react-dsfr/next-appdir/DsfrHead" | ||
import { DsfrProvider } from "@codegouvfr/react-dsfr/next-appdir/DsfrProvider" | ||
import { getHtmlAttributes } from "@codegouvfr/react-dsfr/next-appdir/getHtmlAttributes" | ||
import { StartDsfr } from "~/app/StartDsfr" | ||
import { defaultColorScheme } from "~/app/defaultColorScheme" | ||
import Link from "next/link" | ||
|
||
export default function RootLayout({ children }) { | ||
const lang = "fr" | ||
return <DsfrProvider lang={lang}>{children}</DsfrProvider> | ||
} |
Oops, something went wrong.