Move SharePost modal to new system

This commit is contained in:
Paul Frazee 2022-09-02 12:17:33 -05:00
parent 2f0939a1c2
commit cdae685ee1
5 changed files with 39 additions and 57 deletions

View file

@ -6,6 +6,7 @@ import {useStores} from '../../../state'
import {createCustomBackdrop} from '../util/BottomSheetCustomBackdrop'
import * as LinkActionsModal from './LinkActions'
import * as SharePostModal from './SharePost.native'
export const Modal = observer(function Modal() {
const store = useStores()
@ -28,6 +29,9 @@ export const Modal = observer(function Modal() {
if (store.shell.activeModal?.name === 'link-actions') {
snapPoints = LinkActionsModal.snapPoints
element = <LinkActionsModal.Component {...store.shell.activeModal} />
} else if (store.shell.activeModal?.name === 'share-post') {
snapPoints = SharePostModal.snapPoints
element = <SharePostModal.Component {...store.shell.activeModal} />
} else {
return <View />
}