diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-01-16 17:07:33 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-01-16 17:07:33 -0600 |
commit | 00b7189d5da5bc910ece5715dec2774185639c5e (patch) | |
tree | d5970ddaca7b78f6f22640c72b10dba62a0aadc5 /src/view/screens/Profile.tsx | |
parent | f7d7c78611736a365603ba091286cb5eb8600a22 (diff) | |
download | voidsky-00b7189d5da5bc910ece5715dec2774185639c5e.tar.zst |
Readd the FAB for composing new posts
Diffstat (limited to 'src/view/screens/Profile.tsx')
-rw-r--r-- | src/view/screens/Profile.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/view/screens/Profile.tsx b/src/view/screens/Profile.tsx index 0fb30162c..c89c2ad13 100644 --- a/src/view/screens/Profile.tsx +++ b/src/view/screens/Profile.tsx @@ -18,6 +18,7 @@ import {EmptyState} from '../com/util/EmptyState' import {Text} from '../com/util/text/Text' import {ViewHeader} from '../com/util/ViewHeader' import * as Toast from '../com/util/Toast' +import {FAB} from '../com/util/FAB' import {s, colors} from '../lib/styles' import {useOnMainScroll} from '../lib/hooks/useOnMainScroll' @@ -89,6 +90,10 @@ export const Profile = observer(({navIdx, visible, params}: ScreenParams) => { ) } + const onPressCompose = () => { + store.shell.openComposer({}) + } + // rendering // = @@ -263,6 +268,7 @@ export const Profile = observer(({navIdx, visible, params}: ScreenParams) => { ) : ( renderHeader() )} + <FAB icon="pen-nib" onPress={onPressCompose} /> </View> ) }) |