From 8ae6e67eea8890f639dbaa9423e99cad5e28502f Mon Sep 17 00:00:00 2001
From: Paul Frazee <pfrazee@gmail.com>
Date: Tue, 1 Nov 2022 14:25:41 -0500
Subject: Rework the composer to a less buggy solution

---
 src/view/screens/Home.tsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'src/view/screens/Home.tsx')

diff --git a/src/view/screens/Home.tsx b/src/view/screens/Home.tsx
index 355a2cec1..178b01dc2 100644
--- a/src/view/screens/Home.tsx
+++ b/src/view/screens/Home.tsx
@@ -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()
-- 
cgit 1.4.1

