Remove link to cookie policy from sidebar, link cookie policy in the banner
This commit is contained in:
parent
b909cf25e0
commit
dd3743e67f
|
@ -6,7 +6,6 @@ import IconButton from '@material-ui/core/IconButton'
|
|||
import React, { useEffect, useState } from 'react'
|
||||
import { makeStyles } from '@material-ui/core/styles'
|
||||
import Link from '~/components/layout/Link'
|
||||
import { WELCOME_ADDRESS } from '~/routes/routes'
|
||||
import Button from '~/components/layout/Button'
|
||||
import { primary, mainFontFamily } from '~/theme/variables'
|
||||
import type { CookiesProps } from '~/logic/cookies/model/cookie'
|
||||
|
@ -76,7 +75,7 @@ const CookiesBanner = () => {
|
|||
|
||||
useEffect(() => {
|
||||
async function fetchCookiesFromStorage() {
|
||||
const cookiesState: CookiesProps = await loadFromCookie(COOKIES_KEY)
|
||||
const cookiesState: ?CookiesProps = await loadFromCookie(COOKIES_KEY)
|
||||
if (cookiesState) {
|
||||
const { acceptedNecessary, acceptedAnalytics } = cookiesState
|
||||
setLocalAnalytics(acceptedAnalytics)
|
||||
|
@ -116,7 +115,7 @@ const CookiesBanner = () => {
|
|||
<p className={classes.text}>
|
||||
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 "Accept all", you agree to the storing of cookies on your device
|
||||
to enhance site navigation, analyze site usage and provide customer support.
|
||||
|
|
|
@ -21,9 +21,6 @@ const LegalLinks = () => {
|
|||
<Link className={classes.link} to="https://safe.gnosis.io/terms" target="_blank">
|
||||
Terms
|
||||
</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">
|
||||
Privacy
|
||||
</Link>
|
||||
|
|
Loading…
Reference in New Issue