From e9f1bec654644ccea4778d42c6548c268532a4bc Mon Sep 17 00:00:00 2001 From: Jean-Philippe Sirois Date: Sat, 27 Jul 2019 16:50:10 -0400 Subject: [PATCH] refact: extra footer into its own component --- src/components/DocsLayout/index.tsx | 7 ++----- src/components/Footer/index.tsx | 17 +++++++++++++++++ src/components/Footer/styles.tsx | 4 ++++ src/components/Layout/index.tsx | 9 ++------- 4 files changed, 25 insertions(+), 12 deletions(-) create mode 100644 src/components/Footer/index.tsx create mode 100644 src/components/Footer/styles.tsx diff --git a/src/components/DocsLayout/index.tsx b/src/components/DocsLayout/index.tsx index 59c635d..e79ab1d 100644 --- a/src/components/DocsLayout/index.tsx +++ b/src/components/DocsLayout/index.tsx @@ -9,6 +9,7 @@ import React, { PropsWithChildren } from "react" import { useStaticQuery, graphql } from "gatsby" import DocsSidebar from "../DocsSidebar" +import Footer from "../Footer" import * as SC from "./styles" const DocsLayout = ({ children }: PropsWithChildren<{}>) => { @@ -31,11 +32,7 @@ const DocsLayout = ({ children }: PropsWithChildren<{}>) => { {children} - +