diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-11-15 13:00:00 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-11-15 13:00:00 -0600 |
commit | ccae52f61291e770c73723a96b516ba9d0c3898e (patch) | |
tree | 652f796fa39a481175a0926ab3cf207c78da4e24 /src/view/screens/Profile.tsx | |
parent | fe056a76ea7058cd8db9743b9de1513cfed2ef7b (diff) | |
download | voidsky-ccae52f61291e770c73723a96b516ba9d0c3898e.tar.zst |
Add compose button to notifications, profile, and search
Diffstat (limited to 'src/view/screens/Profile.tsx')
-rw-r--r-- | src/view/screens/Profile.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/view/screens/Profile.tsx b/src/view/screens/Profile.tsx index 4d792df6a..d3088a4b2 100644 --- a/src/view/screens/Profile.tsx +++ b/src/view/screens/Profile.tsx @@ -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> ) }) |