Add compose button to notifications, profile, and search
This commit is contained in:
parent
fe056a76ea
commit
ccae52f612
3 changed files with 15 additions and 0 deletions
|
@ -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>
|
||||
)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue