From 0bc323a777a607090af87636026f668104cf8a0c Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Wed, 15 Dec 2021 17:16:54 +0100 Subject: fix: change branding title tag on homepage I forgot to pass isHome arg... --- src/components/Layouts/Layout.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/components/Layouts/Layout.tsx') diff --git a/src/components/Layouts/Layout.tsx b/src/components/Layouts/Layout.tsx index 4270a17..7f8ab9d 100644 --- a/src/components/Layouts/Layout.tsx +++ b/src/components/Layouts/Layout.tsx @@ -1,12 +1,18 @@ -import { FunctionComponent } from 'react'; +import { ReactNode } from 'react'; import Footer from '@components/Footer/Footer'; import Header from '@components/Header/Header'; import Main from '@components/Main/Main'; -const Layout: FunctionComponent = ({ children }) => { +const Layout = ({ + children, + isHome = false, +}: { + children: ReactNode; + isHome?: boolean; +}) => { return ( <> -
+
{children}