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/Search.tsx | |
parent | fe056a76ea7058cd8db9743b9de1513cfed2ef7b (diff) | |
download | voidsky-ccae52f61291e770c73723a96b516ba9d0c3898e.tar.zst |
Add compose button to notifications, profile, and search
Diffstat (limited to 'src/view/screens/Search.tsx')
-rw-r--r-- | src/view/screens/Search.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/view/screens/Search.tsx b/src/view/screens/Search.tsx index b1c78f681..7f3dd966b 100644 --- a/src/view/screens/Search.tsx +++ b/src/view/screens/Search.tsx @@ -1,6 +1,7 @@ import React, {useEffect} from 'react' import {StyleSheet, Text, View} from 'react-native' import {ViewHeader} from '../com/util/ViewHeader' +import {FAB} from '../com/util/FloatingActionButton' import {SuggestedFollows} from '../com/discover/SuggestedFollows' import {ScreenParams} from '../routes' import {useStores} from '../../state' @@ -15,6 +16,9 @@ export const Search = ({visible, params}: ScreenParams) => { store.nav.setTitle(`Search`) } }, [store, visible, name]) + const onComposePress = () => { + store.shell.openComposer({}) + } return ( <View style={styles.container}> @@ -26,6 +30,7 @@ export const Search = ({visible, params}: ScreenParams) => { </View> <Text style={styles.heading}>Suggested follows</Text> <SuggestedFollows asLinks /> + <FAB icon="pen-nib" onPress={onComposePress} /> </View> ) } |