From 48f7e971c90b41d603d9e938317313cf4010bc81 Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Tue, 18 Feb 2020 15:36:20 +0300 Subject: [PATCH] footer / block / contacts refactoring --- pages/_error.tsx | 12 +++++------- src/components/App/AppFooter.tsx | 20 -------------------- src/components/App/index.tsx | 4 ++-- src/components/Block/index.tsx | 23 +++++++++++++++++++---- src/components/Contacts/index.tsx | 27 +++++++++++++++++++++++++++ src/components/Footer/index.tsx | 25 +++++++------------------ src/config.ts | 30 +++++++++++++++++++++++++++--- src/style/footer.scss | 18 ++---------------- 8 files changed, 89 insertions(+), 70 deletions(-) delete mode 100644 src/components/App/AppFooter.tsx create mode 100644 src/components/Contacts/index.tsx diff --git a/pages/_error.tsx b/pages/_error.tsx index 8b4bab7b..f722d751 100644 --- a/pages/_error.tsx +++ b/pages/_error.tsx @@ -9,13 +9,11 @@ const Page: NextPage = () => ( - - - - - - + + + + + )} > diff --git a/src/components/App/AppFooter.tsx b/src/components/App/AppFooter.tsx deleted file mode 100644 index ef9eeeae..00000000 --- a/src/components/App/AppFooter.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import { Footer } from '../Footer' -import { useContext } from 'react' -import { ConfigContext } from 'src/context/ConfigContext' - -export type AppFooterProps = { - showAuthor: boolean -} - -export const AppFooter: React.FC = props => { - const config = useContext(ConfigContext) - - return ( -