Merge branch '189-cookie-banner' of https://github.com/gnosis/safe-react into 189-cookie-banner

This commit is contained in:
apane 2019-12-04 09:19:23 -03:00
commit 5cb148bc8e
3 changed files with 2 additions and 6 deletions

View File

@ -11,7 +11,7 @@ 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'
import { COOKIES_KEY } from '~/logic/cookies/model/cookie' import { COOKIES_KEY } from '~/logic/cookies/model/cookie'
import { loadFromCookie, saveCookie } from '~/utils/cookies' import { loadFromCookie, saveCookie } from '~/logic/cookies/utils'
import { cookieBannerOpen } from '~/logic/cookies/store/selectors' import { cookieBannerOpen } from '~/logic/cookies/store/selectors'
import { openCookieBanner } from '~/logic/cookies/store/actions/openCookieBanner' import { openCookieBanner } from '~/logic/cookies/store/actions/openCookieBanner'

View File

@ -13,11 +13,7 @@ export default handleActions<State, *>(
[OPEN_COOKIE_BANNER]: (state: State, action: ActionType<Function>): State => { [OPEN_COOKIE_BANNER]: (state: State, action: ActionType<Function>): State => {
const { cookieBannerOpen } = action.payload const { cookieBannerOpen } = action.payload
const newState = state.withMutations((map) => { return state.set('cookieBannerOpen', cookieBannerOpen)
map.set('cookieBannerOpen', cookieBannerOpen)
})
return newState
}, },
}, },
Map(), Map(),