add link to the PrivacyPolicyPage to Footer

This commit is contained in:
Dawid Wysokiński 2021-04-03 10:55:37 +02:00
parent 262dec3a58
commit 427a2fa366
2 changed files with 16 additions and 0 deletions

View File

@ -1,4 +1,5 @@
import { AUTHOR } from 'config/app';
import { Route } from 'config/routing';
import { makeStyles } from '@material-ui/core/styles';
import { AppBar, Toolbar, Typography, Container } from '@material-ui/core';
@ -14,6 +15,14 @@ const Footer = () => {
zdamegzaminzawodowy.pl © {new Date().getFullYear()}
</Typography>
<div className={classes.links}>
<Link
color="inherit"
underline="hover"
title="Polityka prywatności"
href={Route.PrivacyPolicyPage}
>
Polityka prywatności
</Link>
<Link
color="inherit"
underline="hover"
@ -40,6 +49,12 @@ const useStyles = makeStyles(theme => {
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between',
flexWrap: 'wrap',
[theme.breakpoints.down('xs')]: {
flexDirection: 'column',
justifyContent: 'center',
textAlign: 'center',
},
},
links: {
'& > *:not(:last-child)': {

View File

@ -1,4 +1,5 @@
export enum Route {
IndexPage = '/',
TestPage = '/kwalifikacja/[slug]/test/[limit]',
PrivacyPolicyPage = '/polityka-prywatnosci',
}