Add compose button to notifications, profile, and search
This commit is contained in:
@@ -3,6 +3,7 @@ import {StyleSheet, Text, View} from 'react-native'
|
||||
import {observer} from 'mobx-react-lite'
|
||||
import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
|
||||
import {ViewSelector} from '../com/util/ViewSelector'
|
||||
import {FAB} from '../com/util/FloatingActionButton'
|
||||
import {ScreenParams} from '../routes'
|
||||
import {ProfileUiModel, Sections} from '../../state/models/profile-ui'
|
||||
import {MembershipItem} from '../../state/models/memberships-view'
|
||||
@@ -84,6 +85,9 @@ export const Profile = observer(({visible, params}: ScreenParams) => {
|
||||
),
|
||||
)
|
||||
}
|
||||
const onComposePress = () => {
|
||||
store.shell.openComposer({})
|
||||
}
|
||||
|
||||
// rendering
|
||||
// =
|
||||
@@ -235,6 +239,7 @@ export const Profile = observer(({visible, params}: ScreenParams) => {
|
||||
) : (
|
||||
renderHeader()
|
||||
)}
|
||||
<FAB icon="pen-nib" onPress={onComposePress} />
|
||||
</View>
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user