Use ALF for the embed consent modal (#3336)
This commit is contained in:
parent
2bc20b1752
commit
a49a5a351d
7 changed files with 252 additions and 283 deletions
|
@ -3,7 +3,6 @@ import {Image as RNImage} from 'react-native-image-crop-picker'
|
|||
import {AppBskyActorDefs, AppBskyGraphDefs} from '@atproto/api'
|
||||
|
||||
import {useNonReactiveCallback} from '#/lib/hooks/useNonReactiveCallback'
|
||||
import {EmbedPlayerSource} from '#/lib/strings/embed-player'
|
||||
import {GalleryModel} from '#/state/models/media/gallery'
|
||||
import {ImageModel} from '#/state/models/media/image'
|
||||
import {ThreadgateSetting} from '../queries/threadgate'
|
||||
|
@ -125,12 +124,6 @@ export interface LinkWarningModal {
|
|||
share?: boolean
|
||||
}
|
||||
|
||||
export interface EmbedConsentModal {
|
||||
name: 'embed-consent'
|
||||
source: EmbedPlayerSource
|
||||
onAccept: () => void
|
||||
}
|
||||
|
||||
export interface InAppBrowserConsentModal {
|
||||
name: 'in-app-browser-consent'
|
||||
href: string
|
||||
|
@ -169,7 +162,6 @@ export type Modal =
|
|||
|
||||
// Generic
|
||||
| LinkWarningModal
|
||||
| EmbedConsentModal
|
||||
| InAppBrowserConsentModal
|
||||
|
||||
const ModalContext = React.createContext<{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue