diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-10-01 00:53:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-30 16:53:11 -0500 |
commit | 2129f69fa0fdf85645fabe77f0803beb6d93f819 (patch) | |
tree | cb0c72c14951072de406dfbe5598c639f6af47d3 /src/view/shell/desktop | |
parent | b4941d8556492375ce3ce96292e00d4e21c73e5e (diff) | |
download | voidsky-2129f69fa0fdf85645fabe77f0803beb6d93f819.tar.zst |
ALF text input for generic search input (#5511)
* alf text input for generic search input * clearer ref naming * Adjust props and definition * Migrate props * Migrate props * Migrate props * Replace on search screen * rm old props --------- Co-authored-by: Eric Bailey <git@esb.lol>
Diffstat (limited to 'src/view/shell/desktop')
-rw-r--r-- | src/view/shell/desktop/Search.tsx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/view/shell/desktop/Search.tsx b/src/view/shell/desktop/Search.tsx index b43dbcce3..2780944f1 100644 --- a/src/view/shell/desktop/Search.tsx +++ b/src/view/shell/desktop/Search.tsx @@ -25,11 +25,11 @@ import {s} from '#/lib/styles' import {useModerationOpts} from '#/state/preferences/moderation-opts' import {useActorAutocompleteQuery} from '#/state/queries/actor-autocomplete' import {precacheProfile} from '#/state/queries/profile' -import {SearchInput} from '#/view/com/util/forms/SearchInput' import {Link} from '#/view/com/util/Link' import {Text} from '#/view/com/util/text/Text' import {UserAvatar} from '#/view/com/util/UserAvatar' import {atoms as a} from '#/alf' +import {SearchInput} from '#/components/forms/SearchInput' let SearchLinkCard = ({ label, @@ -184,10 +184,10 @@ export function DesktopSearch() { return ( <View style={[styles.container, pal.view]}> <SearchInput - query={query} - onChangeQuery={onChangeText} - onPressCancelSearch={onPressCancelSearch} - onSubmitQuery={onSubmit} + value={query} + onChangeText={onChangeText} + onClearText={onPressCancelSearch} + onSubmitEditing={onSubmit} /> {query !== '' && isActive && moderationOpts && ( <View style={[pal.view, pal.borderDark, styles.resultsContainer]}> |