Optimise imports
This commit is contained in:
parent
32c45d04f3
commit
5a3dd895f6
|
|
@ -27,7 +27,6 @@ import {
|
||||||
OfflineMessage,
|
OfflineMessage,
|
||||||
ShareInfo,
|
ShareInfo,
|
||||||
Footer,
|
Footer,
|
||||||
AboutSection,
|
|
||||||
} from './createStyle';
|
} from './createStyle';
|
||||||
|
|
||||||
import api from 'services';
|
import api from 'services';
|
||||||
|
|
|
||||||
|
|
@ -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;
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ const Help = () => {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
document.title = t('help:name');
|
document.title = t('help:name');
|
||||||
}, []);
|
}, [t]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ const Privacy = () => {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
document.title = `${t('privacy:name')} - Crab Fit`;
|
document.title = `${t('privacy:name')} - Crab Fit`;
|
||||||
}, []);
|
}, [t]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue