[Cashtab] [notification permission 2 of 2] Show modal after user notification decision
Summary:
T2882
Depends on D12905
Show a modal that refreshes the page after the user accepts notification permissions.
Show a warning modal on load if Cashtab has notification permission denied and peristent storage denied.
Test Plan:
npm run build netlify deploy
Open the URL netlify has deployed the site to (the dev deploy URL should be new every time).
Open the dev console.
Note the site opens with an "ask for notification permission" request.
Accept the request.
Note the success modal.
Click okay. Note page refreshes and peristent storage status is granted.
Redeploy to a new URL (netlify deploy should do this automatically if you don't use the --prod flag)
Reject the notification permission
Note the warning modal
Note the warning modal appears on load every time if persistent storage is false and notification permission is not granted
Reviewers: #bitcoin_abc, emack
Reviewed By: #bitcoin_abc, emack
Differential Revision: https://reviews.bitcoinabc.org/D12906