Remove link to cookie policy from sidebar, link cookie policy in the banner

This commit is contained in:
Mikhail Mikheev 2019-12-03 15:56:07 +04:00
parent b909cf25e0
commit dd3743e67f
2 changed files with 2 additions and 6 deletions

View File

@ -6,7 +6,6 @@ import IconButton from '@material-ui/core/IconButton'
import React, { useEffect, useState } from 'react' import React, { useEffect, useState } from 'react'
import { makeStyles } from '@material-ui/core/styles' import { makeStyles } from '@material-ui/core/styles'
import Link from '~/components/layout/Link' import Link from '~/components/layout/Link'
import { WELCOME_ADDRESS } from '~/routes/routes'
import Button from '~/components/layout/Button' import Button from '~/components/layout/Button'
import { primary, mainFontFamily } from '~/theme/variables' import { primary, mainFontFamily } from '~/theme/variables'
import type { CookiesProps } from '~/logic/cookies/model/cookie' import type { CookiesProps } from '~/logic/cookies/model/cookie'
@ -76,7 +75,7 @@ const CookiesBanner = () => {
useEffect(() => { useEffect(() => {
async function fetchCookiesFromStorage() { async function fetchCookiesFromStorage() {
const cookiesState: CookiesProps = await loadFromCookie(COOKIES_KEY) const cookiesState: ?CookiesProps = await loadFromCookie(COOKIES_KEY)
if (cookiesState) { if (cookiesState) {
const { acceptedNecessary, acceptedAnalytics } = cookiesState const { acceptedNecessary, acceptedAnalytics } = cookiesState
setLocalAnalytics(acceptedAnalytics) setLocalAnalytics(acceptedAnalytics)
@ -116,7 +115,7 @@ const CookiesBanner = () => {
<p className={classes.text}> <p className={classes.text}>
We use cookies to give you the best experience and to help improve our website. Please read our We use cookies to give you the best experience and to help improve our website. Please read our
{' '} {' '}
<Link className={classes.link} to={WELCOME_ADDRESS}>Cookie Policy</Link> <Link className={classes.link} to="https://safe.gnosis.io/cookie">Cookie Policy</Link>
{' '} {' '}
for more information. By clicking &quot;Accept all&quot;, you agree to the storing of cookies on your device for more information. By clicking &quot;Accept all&quot;, you agree to the storing of cookies on your device
to enhance site navigation, analyze site usage and provide customer support. to enhance site navigation, analyze site usage and provide customer support.

View File

@ -21,9 +21,6 @@ const LegalLinks = () => {
<Link className={classes.link} to="https://safe.gnosis.io/terms" target="_blank"> <Link className={classes.link} to="https://safe.gnosis.io/terms" target="_blank">
Terms Terms
</Link> </Link>
<Link className={classes.link} to="https://safe.gnosis.io/cookie" target="_blank">
Cookies
</Link>
<Link className={classes.link} to="https://safe.gnosis.io/privacy" target="_blank"> <Link className={classes.link} to="https://safe.gnosis.io/privacy" target="_blank">
Privacy Privacy
</Link> </Link>