diff --git a/src/components/layout.tsx b/src/components/layout.tsx
index cfb9f2a0..f63568c2 100644
--- a/src/components/layout.tsx
+++ b/src/components/layout.tsx
@@ -1,11 +1,11 @@
import { Footer, Header } from "@components";
import {
- footerBodySectionProps,
- footerBottomSectionProps,
- footerPartnerSectionProps,
- footerTopSectionProps,
- headerBodyProps,
- headerNavProps,
+ footerBodySection,
+ footerBottomSection,
+ footerPartnerSection,
+ footerTopSection,
+ headerBody,
+ headerNav,
} from "@config";
import { Container } from "@dataesr/react-dsfr";
@@ -16,13 +16,13 @@ type Props = {
const Index = (props: Props): JSX.Element => {
return (
<>
-
+
{props.children}
>
);
diff --git a/src/config/layout/footer.ts b/src/config/layout/footer.ts
index 2bfd3953..1e2465eb 100644
--- a/src/config/layout/footer.ts
+++ b/src/config/layout/footer.ts
@@ -5,7 +5,7 @@ import {
FooterTopSectionProps,
} from "@components";
-export const footerTopSectionProps: FooterTopSectionProps = {
+export const footerTopSection: FooterTopSectionProps = {
links: [
{
title: "Liens utiles I",
@@ -75,7 +75,7 @@ export const footerTopSectionProps: FooterTopSectionProps = {
],
};
-export const footerBodySectionProps: FooterBodySectionProps = {
+export const footerBodySection: FooterBodySectionProps = {
links: [
{
title: "Lien utile 3",
@@ -95,7 +95,7 @@ export const footerBodySectionProps: FooterBodySectionProps = {
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Uenim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",
};
-export const footerPartnerSectionProps: FooterPartnerSectionProps = {
+export const footerPartnerSection: FooterPartnerSectionProps = {
title: "Partenaires",
logos: [
{
@@ -117,7 +117,7 @@ export const footerPartnerSectionProps: FooterPartnerSectionProps = {
],
};
-export const footerBottomSectionProps: FooterBottomSectionProps = {
+export const footerBottomSection: FooterBottomSectionProps = {
links: [
{
title: "Lien utile 1",
diff --git a/src/config/layout/header.ts b/src/config/layout/header.ts
index eaf5cc36..d2df8e09 100644
--- a/src/config/layout/header.ts
+++ b/src/config/layout/header.ts
@@ -1,6 +1,6 @@
import { HeaderBodyProps, HeaderNavProps } from "@components";
-export const headerBodyProps: HeaderBodyProps = {
+export const headerBody: HeaderBodyProps = {
mainTitle: "République Française",
splitTitleLength: 10,
image: {
@@ -18,7 +18,7 @@ export const headerBodyProps: HeaderBodyProps = {
],
};
-export const headerNavProps: HeaderNavProps = {
+export const headerNav: HeaderNavProps = {
items: [
{
title: "Titre 1",
diff --git a/tsconfig.json b/tsconfig.json
index 420549b4..d7bb9e23 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -24,6 +24,6 @@
"@lib": ["./src/lib"]
}
},
- "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "next-sitemap.js"],
- "exclude": ["node_modules"]
+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
+ "exclude": ["node_modules", "next-sitemap.js"]
}