From d17d894f398650209c0ddd29502308de8c07bd93 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 27 Sep 2023 18:43:25 +0200 Subject: feat(components): add Article, Aside, Footer, Header, Main & Nav Some components have been renamed to be able to create Footer, Header and Nav. --- src/components/templates/layout/layout.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/components/templates/layout/layout.tsx') diff --git a/src/components/templates/layout/layout.tsx b/src/components/templates/layout/layout.tsx index b284e29..810a019 100644 --- a/src/components/templates/layout/layout.tsx +++ b/src/components/templates/layout/layout.tsx @@ -28,10 +28,10 @@ import { PostsStack, } from '../../atoms'; import { - Footer, - type FooterProps, - Header, - type HeaderProps, + SiteFooter, + type SiteFooterProps, + SiteHeader, + type SiteHeaderProps, } from '../../organisms'; import styles from './layout.module.scss'; @@ -39,7 +39,7 @@ export type QueryAction = SearchAction & { 'query-input': string; }; -export type LayoutProps = Pick & { +export type LayoutProps = Pick & { /** * The layout main content. */ @@ -118,7 +118,7 @@ export const Layout: FC = ({ id: 'AE4kCD', }); - const mainNav: HeaderProps['nav'] = [ + const mainNav: SiteHeaderProps['nav'] = [ { id: 'home', label: homeLabel, @@ -157,7 +157,7 @@ export const Layout: FC = ({ id: 'nwbzKm', }); - const footerNav: FooterProps['navItems'] = [ + const footerNav: SiteFooterProps['navItems'] = [ { id: 'legal-notice', label: legalNoticeLabel, href: ROUTES.LEGAL_NOTICE }, ]; @@ -239,7 +239,7 @@ export const Layout: FC = ({ {skipToContent} -
= ({ {children} -