[Cashtab] Add domain migration alert pop-up
Summary:
T1892
Cashtab will migrate from cashtabapp.com to cashtab.com
Local storage works by domain name, so this migration will require users to manually import their wallets at the new domain. This is annoying and bad UX, but will only get worse the longer the move is postponed.
The migration will happen in phases.
- [Oct 2021] Users at cashtabapp.com see a pop-up informing them of the domain migration. Click makes the pop-up go away. App functionality is otherwise normal.
- [Nov 2021] Users at cashtabapp.com see a pop-up informing them of the domain migration. The notification will re-open every 30s if it is closed. This will allow users to recover private keys at the old domain.
- [Dec 2021-Dec2022] Users at cashtabapp.com see a pop-up informing them of the migration. The page will auto-fwd to cashtab.com after 30s
This diff allows the migration to happen without supporting two different codebases for each domain. For now, currency.appUrl is set to cashtabapp.com, so the expected behavior of this diff is to do nothing. I will point cashtab.com to the deployment server, then put up another diff changing currency.appUrl to cashtab.com
Test Plan:
npm start
Note pop-up on load
In src/components/Common/Ticker.js, change currency.appUrl to localhost
Note pop-up does not appear on load (expected behavior when this diff is landed with currency.appUrl as cashtabapp.com)
Reviewers: #bitcoin_abc, PiRK
Reviewed By: #bitcoin_abc, PiRK
Differential Revision: https://reviews.bitcoinabc.org/D10251