Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
fix: naming
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgfr committed Feb 11, 2022
1 parent f6d7b26 commit f4facf3
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
22 changes: 11 additions & 11 deletions src/components/layout.tsx
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -16,13 +16,13 @@ type Props = {
const Index = (props: Props): JSX.Element => {
return (
<>
<Header bodySection={headerBodyProps} navSection={headerNavProps} />
<Header bodySection={headerBody} navSection={headerNav} />
<Container>{props.children}</Container>
<Footer
topSection={footerTopSectionProps}
bodySection={footerBodySectionProps}
partnerSection={footerPartnerSectionProps}
bottomSection={footerBottomSectionProps}
topSection={footerTopSection}
bodySection={footerBodySection}
partnerSection={footerPartnerSection}
bottomSection={footerBottomSection}
/>
</>
);
Expand Down
8 changes: 4 additions & 4 deletions src/config/layout/footer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
FooterTopSectionProps,
} from "@components";

export const footerTopSectionProps: FooterTopSectionProps = {
export const footerTopSection: FooterTopSectionProps = {
links: [
{
title: "Liens utiles I",
Expand Down Expand Up @@ -75,7 +75,7 @@ export const footerTopSectionProps: FooterTopSectionProps = {
],
};

export const footerBodySectionProps: FooterBodySectionProps = {
export const footerBodySection: FooterBodySectionProps = {
links: [
{
title: "Lien utile 3",
Expand All @@ -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: [
{
Expand All @@ -117,7 +117,7 @@ export const footerPartnerSectionProps: FooterPartnerSectionProps = {
],
};

export const footerBottomSectionProps: FooterBottomSectionProps = {
export const footerBottomSection: FooterBottomSectionProps = {
links: [
{
title: "Lien utile 1",
Expand Down
4 changes: 2 additions & 2 deletions src/config/layout/header.ts
Original file line number Diff line number Diff line change
@@ -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: {
Expand All @@ -18,7 +18,7 @@ export const headerBodyProps: HeaderBodyProps = {
],
};

export const headerNavProps: HeaderNavProps = {
export const headerNav: HeaderNavProps = {
items: [
{
title: "Titre 1",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}

0 comments on commit f4facf3

Please sign in to comment.