diff --git a/components/Container.tsx b/components/Container.tsx index 063a603c..ba6fae73 100644 --- a/components/Container.tsx +++ b/components/Container.tsx @@ -10,7 +10,7 @@ type Props = { children: unknown; }; -export default function Container({ title, description, children }: Props) { +const Container = ({ title, description, children }: Props) => { const router = useRouter(); return ( @@ -27,4 +27,6 @@ export default function Container({ title, description, children }: Props) {
{children}
); -} +}; + +export default Container; diff --git a/components/Content.tsx b/components/Content.tsx index 42c1fa6a..cb347b67 100644 --- a/components/Content.tsx +++ b/components/Content.tsx @@ -4,6 +4,6 @@ type Props = { children: unknown; }; -export default function Content({ children }: Props) { - return
{children}
; -} +const Content = ({ children }: Props) =>
{children}
; + +export default Content; diff --git a/components/Layout.tsx b/components/Layout.tsx index 6b5716c7..a31bd410 100644 --- a/components/Layout.tsx +++ b/components/Layout.tsx @@ -3,12 +3,12 @@ import Footer from "./page-footer/Footer"; import styles from "./Layout.module.scss"; -export default function Layout({ children }) { - return ( - <> -
-
{children}
-