Replace the FAB with a compose prompt at the top of the feed
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import React, {useState, useEffect} from 'react'
|
||||
import {View} from 'react-native'
|
||||
import {ViewHeader} from '../com/util/ViewHeader'
|
||||
import {FAB} from '../com/util/FloatingActionButton'
|
||||
import {Feed} from '../com/notifications/Feed'
|
||||
import {useStores} from '../../state'
|
||||
import {NotificationsViewModel} from '../../state/models/notifications-view'
|
||||
@@ -37,9 +36,6 @@ export const Notifications = ({navIdx, visible}: ScreenParams) => {
|
||||
}
|
||||
}, [visible, store])
|
||||
|
||||
const onComposePress = () => {
|
||||
store.shell.openComposer({})
|
||||
}
|
||||
const onPressTryAgain = () => {
|
||||
notesView?.refresh()
|
||||
}
|
||||
@@ -48,7 +44,6 @@ export const Notifications = ({navIdx, visible}: ScreenParams) => {
|
||||
<View style={{flex: 1}}>
|
||||
<ViewHeader title="Notifications" />
|
||||
{notesView && <Feed view={notesView} onPressTryAgain={onPressTryAgain} />}
|
||||
<FAB icon="pen-nib" onPress={onComposePress} />
|
||||
</View>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user