Merge branch '189-cookie-banner' of https://github.com/gnosis/safe-react into 189-cookie-banner
This commit is contained in:
commit
5cb148bc8e
|
@ -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'
|
||||||
|
|
||||||
|
|
|
@ -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(),
|
||||||
|
|
Loading…
Reference in New Issue