-
Notifications
You must be signed in to change notification settings - Fork 363
Conversation
…to 189-cookie-banner
Travis automatic deployment: Storybook book automatic deployment: |
Looks good.
|
Hi @lukasschor !
|
How did you do that? I thought it was not fixable 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cookiesSelector
is used only in 1 component CookieBanner
. I think we don't really need to put the state in redux store in that case.
Hi @mikheevm !. For updating the flow dependencies we did this:
Also, about the |
Sorry, I don't understand why we'd need it. Could you explain please? I thought we'd just load GA/Intercom script inside the cookiebanner component and then we can check localstorage in index.js |
I prefer to not load those scripts inside the cookie banner to avoid mixing things, I would prefer to do it that separately. And do things like this PR. If you still don't like the idea I can change it |
The checkbox's |
Travis automatic deployment: Storybook book automatic deployment: |
Why not? The entire point of redux is to put state there if we have to share it between few places in our application. In this case, state is consumed only in CookieBanner component. |
It's not, it's consumed also in the google analytics component and will be on the intercom component. Anyways, I'm going to remove that from the store |
Replaces localStorage with cookies Adds js-cookie
… 189-cookie-banner * '189-cookie-banner' of github.com:gnosis/safe-react: Adds cookies utils Replaces localStorage with cookies Adds js-cookie
Travis automatic deployment: |
Travis automatic deployment: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job 😃
Yes, cookie renewal should be: |
Travis automatic deployment: |
Sorry, we forgot about one more requirement. So by law the user should be able to change his consent any time. Because of this, we should have a button inside the interface which would open the cookie banner again. Let's do it in the sidebar at the bottom where we have all the legal links with a label "Cookies" |
Travis automatic deployment: |
Done, please check it now @mikheevm |
Travis automatic deployment: |
Works well. However, I think it would be better UX if clicking on "Cookies" would also close the sidebar. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think using redux is not really needed because it could be done with react's component state: Sidebar
and CookiesBanner
components are childs of the same component PageFrame
, you could just pass a function from there, but I'm ok with it, not asking for a change.
Travis automatic deployment: |
It does that now @lukasschor
It does that now please check it :) |
Travis automatic deployment: |
Closes #189
Description
Looks like this now: