summaryrefslogtreecommitdiffstats
path: root/src/components/Layouts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-12-15 17:16:54 +0100
committerArmand Philippot <git@armandphilippot.com>2021-12-15 17:16:54 +0100
commit0bc323a777a607090af87636026f668104cf8a0c (patch)
tree0d1bff955bc0d7b524317557c2d25afbe00b76ef /src/components/Layouts
parent516f8256a4f72c7a01752d9aa4e035276fb08b51 (diff)
fix: change branding title tag on homepage
I forgot to pass isHome arg...
Diffstat (limited to 'src/components/Layouts')
-rw-r--r--src/components/Layouts/Layout.tsx12
1 files changed, 9 insertions, 3 deletions
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 (
<>
- <Header />
+ <Header isHome={isHome} />
<Main>{children}</Main>
<Footer />
</>