Rework the composer to a less buggy solution
This commit is contained in:
parent
05055e184d
commit
8ae6e67eea
10 changed files with 130 additions and 66 deletions
|
@ -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 = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue