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
|
@ -6,7 +6,6 @@ import {Feed} from '../com/posts/Feed'
|
|||
import {FAB} from '../com/util/FloatingActionButton'
|
||||
import {useStores} from '../../state'
|
||||
import {FeedModel} from '../../state/models/feed-view'
|
||||
import {ComposePostModel} from '../../state/models/shell'
|
||||
import {ScreenParams} from '../routes'
|
||||
import {s} from '../lib/styles'
|
||||
|
||||
|
@ -46,7 +45,7 @@ export const Home = observer(function Home({
|
|||
}, [visible, store])
|
||||
|
||||
const onComposePress = () => {
|
||||
store.shell.openModal(new ComposePostModel({onPost: onCreatePost}))
|
||||
store.shell.openComposer({onPost: onCreatePost})
|
||||
}
|
||||
const onCreatePost = () => {
|
||||
defaultFeedView.loadLatest()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue