-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: on remet la politique de confidentialité pour le dashlord (#3411)
- Loading branch information
1 parent
cec88db
commit 7d27118
Showing
8 changed files
with
36 additions
and
12 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
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
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
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,26 @@ | ||
import { GetStaticProps, InferGetStaticPropsType } from "next"; | ||
import { NotionAPI } from "notion-client"; | ||
import { ExtendedRecordMap } from "notion-types"; | ||
import { NotionRenderer } from "react-notion-x"; | ||
|
||
import { _get } from "@/common/httpClient"; | ||
import SimplePage from "@/components/Page/SimplePage"; | ||
|
||
import "react-notion-x/src/styles.css"; | ||
|
||
export const getStaticProps = (async () => { | ||
const notion = new NotionAPI(); | ||
const recordMap = await notion.getPage("Politique-de-confidentialit-7b1c32f4c2214e0c9523686b18ada6fa"); | ||
// const data = await _get("/api/mentions-legales"); | ||
return { props: { data: recordMap }, revalidate: 60 * 30 }; | ||
}) satisfies GetStaticProps<{ | ||
data: ExtendedRecordMap; | ||
}>; | ||
|
||
export default function PolitiqueDeConfidentialité({ data }: InferGetStaticPropsType<typeof getStaticProps>) { | ||
return ( | ||
<SimplePage title="Politique de confidentialité"> | ||
<NotionRenderer disableHeader={true} recordMap={data} fullPage={true} darkMode={false} /> | ||
</SimplePage> | ||
); | ||
} |