Rework the composer to a less buggy solution

This commit is contained in:
Paul Frazee 2022-11-01 14:25:41 -05:00
parent 05055e184d
commit 8ae6e67eea
10 changed files with 130 additions and 66 deletions

View file

@ -9,7 +9,6 @@ import * as models from '../../../state/models/shell'
import * as LinkActionsModal from './LinkActions'
import * as SharePostModal from './SharePost.native'
import * as ComposePostModal from './ComposePost'
import * as EditProfile from './EditProfile'
const CLOSED_SNAPPOINTS = ['10%']
@ -51,13 +50,6 @@ export const Modal = observer(function Modal() {
{...(store.shell.activeModal as models.SharePostModel)}
/>
)
} else if (store.shell.activeModal?.name === 'compose-post') {
snapPoints = ComposePostModal.snapPoints
element = (
<ComposePostModal.Component
{...(store.shell.activeModal as models.ComposePostModel)}
/>
)
} else if (store.shell.activeModal?.name === 'edit-profile') {
snapPoints = EditProfile.snapPoints
element = (