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
|
@ -11,7 +11,6 @@ import {
|
|||
} from 'react-native'
|
||||
import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
|
||||
import {PostThreadViewModel} from '../../../state/models/post-thread-view'
|
||||
import {ComposePostModel} from '../../../state/models/shell'
|
||||
import {Link} from '../util/Link'
|
||||
import {UserInfoText} from '../util/UserInfoText'
|
||||
import {RichText} from '../util/RichText'
|
||||
|
@ -71,9 +70,7 @@ export const Post = observer(function Post({uri}: {uri: string}) {
|
|||
replyHref = `/profile/${urip.hostname}/post/${urip.rkey}`
|
||||
}
|
||||
const onPressReply = () => {
|
||||
store.shell.openModal(
|
||||
new ComposePostModel({replyTo: {uri: item.uri, cid: item.cid}}),
|
||||
)
|
||||
store.shell.openComposer({replyTo: {uri: item.uri, cid: item.cid}})
|
||||
}
|
||||
const onPressToggleRepost = () => {
|
||||
item
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue