From 9aeb82269d7c74c4566b7ca254782a4dfbd69a6e Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 25 Oct 2023 18:33:22 +0200 Subject: refactor(components): remove SiteHeader and SiteFooter components They do not help to make the layout more readable (on the contrary I think...) so the props drilling is useless. --- src/components/organisms/layout/site-header.tsx | 47 ------------------------- 1 file changed, 47 deletions(-) delete mode 100644 src/components/organisms/layout/site-header.tsx (limited to 'src/components/organisms/layout/site-header.tsx') diff --git a/src/components/organisms/layout/site-header.tsx b/src/components/organisms/layout/site-header.tsx deleted file mode 100644 index e8953c0..0000000 --- a/src/components/organisms/layout/site-header.tsx +++ /dev/null @@ -1,47 +0,0 @@ -import type { FC } from 'react'; -import { Header } from '../../atoms'; -import { Branding, type BrandingProps } from '../../molecules'; -import { Toolbar, type ToolbarProps } from '../toolbar'; -import styles from './site-header.module.scss'; - -export type SiteHeaderProps = BrandingProps & - Pick< - ToolbarProps, - 'ackeeStorageKey' | 'motionStorageKey' | 'nav' | 'searchPage' - > & { - /** - * Set additional classnames to the header element. - */ - className?: string; - }; - -/** - * SiteHeader component - * - * Render the website header. - */ -export const SiteHeader: FC = ({ - ackeeStorageKey, - className, - motionStorageKey, - nav, - searchPage, - ...props -}) => { - const headerClass = `${styles.wrapper} ${className}`; - - return ( -
-
- - -
-
- ); -}; -- cgit v1.2.3