Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add anniversary banner. #475

Merged
merged 2 commits into from
Apr 28, 2022
Merged

Conversation

alfetopito
Copy link
Collaborator

Summary

Same thing as #468, except that it's against main rather than develop.

@alfetopito alfetopito changed the base branch from main to hotfix/1.13.2 April 28, 2022 08:28
@alfetopito alfetopito requested review from a team April 28, 2022 08:29
@github-actions
Copy link
Contributor

  • 🔭 GP Swap: CoW Protocol v2 Swap UI

@elena-zh
Copy link
Contributor

Noticed, that it this PR footer elements are displayed above the banner in a mobile view
image

* Handle close and read/save localStorage.

* Handle close and read/save localStorage.

* Refactor getting localstorage value

* Refactor using useMemo

* Remove string props

* store as constant

* use and expose ENUM for bannerType

* Add component inside Suspense

* refactor getshowbannerstate

* refactor getshowbannerstate

* rename isVisible

* Making integ tests pass with the new anniversary banner

Revert this when the banner is disabled

* Reverted change that caused some content to be hidden

* Update src/custom/pages/App/index.tsx

Co-authored-by: Leandro Boscariol <[email protected]>

Co-authored-by: fairlighteth <[email protected]>
@github-actions
Copy link
Contributor

CLA Assistant Lite All Contributors have signed the CLA.

@alfetopito alfetopito merged commit c3fca4d into hotfix/1.13.2 Apr 28, 2022
@alfetopito alfetopito deleted the anniversary-banner_rebased-main branch April 28, 2022 10:30
@github-actions github-actions bot locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants