From 5a3dd895f672cc4196ff9291e2202f525d984e09 Mon Sep 17 00:00:00 2001 From: Ben Grant Date: Tue, 18 May 2021 21:48:07 +1000 Subject: [PATCH] Optimise imports --- crabfit-frontend/src/pages/Create/Create.tsx | 1 - crabfit-frontend/src/pages/Create/createStyle.ts | 11 ----------- crabfit-frontend/src/pages/Help/Help.tsx | 2 +- crabfit-frontend/src/pages/Privacy/Privacy.tsx | 2 +- 4 files changed, 2 insertions(+), 14 deletions(-) diff --git a/crabfit-frontend/src/pages/Create/Create.tsx b/crabfit-frontend/src/pages/Create/Create.tsx index 269a882..91c7297 100644 --- a/crabfit-frontend/src/pages/Create/Create.tsx +++ b/crabfit-frontend/src/pages/Create/Create.tsx @@ -27,7 +27,6 @@ import { OfflineMessage, ShareInfo, Footer, - AboutSection, } from './createStyle'; import api from 'services'; diff --git a/crabfit-frontend/src/pages/Create/createStyle.ts b/crabfit-frontend/src/pages/Create/createStyle.ts index cb7e35a..cbfe373 100644 --- a/crabfit-frontend/src/pages/Create/createStyle.ts +++ b/crabfit-frontend/src/pages/Create/createStyle.ts @@ -66,14 +66,3 @@ export const ShareInfo = styled.p` } `} `; - -export const AboutSection = styled.section` - margin: 30px 0 0; - background-color: ${props => props.theme.primaryBackground}; - padding: 10px 0; - - & h2 { - margin: 0 0 10px; - font-size: 1.2rem; - } -`; diff --git a/crabfit-frontend/src/pages/Help/Help.tsx b/crabfit-frontend/src/pages/Help/Help.tsx index fa14161..24f0301 100644 --- a/crabfit-frontend/src/pages/Help/Help.tsx +++ b/crabfit-frontend/src/pages/Help/Help.tsx @@ -28,7 +28,7 @@ const Help = () => { useEffect(() => { document.title = t('help:name'); - }, []); + }, [t]); return ( <> diff --git a/crabfit-frontend/src/pages/Privacy/Privacy.tsx b/crabfit-frontend/src/pages/Privacy/Privacy.tsx index ae68bc9..79b4210 100644 --- a/crabfit-frontend/src/pages/Privacy/Privacy.tsx +++ b/crabfit-frontend/src/pages/Privacy/Privacy.tsx @@ -24,7 +24,7 @@ const Privacy = () => { useEffect(() => { document.title = `${t('privacy:name')} - Crab Fit`; - }, []); + }, [t]); return ( <>