Modernize in-app browser consent dialog (#8191)

* add stateful dialog control hook

* add new alf'd consent

* make secondary_inverted buttons clearer

* contingency for opening a link from another dialog

* rm old modal

* Differentiate buttons more

---------

Co-authored-by: Eric Bailey <git@esb.lol>
This commit is contained in:
Samuel Newman
2025-04-25 00:41:11 +03:00
committed by GitHub
parent 69f656f283
commit 8ec8a64472
9 changed files with 188 additions and 141 deletions
-6
View File
@@ -66,11 +66,6 @@ export interface LinkWarningModal {
share?: boolean
}
export interface InAppBrowserConsentModal {
name: 'in-app-browser-consent'
href: string
}
export type Modal =
// Account
| DeleteAccountModal
@@ -96,7 +91,6 @@ export type Modal =
// Generic
| LinkWarningModal
| InAppBrowserConsentModal
const ModalContext = React.createContext<{
isModalActive: boolean