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/screens/StarterPack/Wizard/StepProfiles.tsx | |
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/screens/StarterPack/Wizard/StepProfiles.tsx')
-rw-r--r-- | src/screens/StarterPack/Wizard/StepProfiles.tsx | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/screens/StarterPack/Wizard/StepProfiles.tsx b/src/screens/StarterPack/Wizard/StepProfiles.tsx index c14de847f..054a6a63e 100644 --- a/src/screens/StarterPack/Wizard/StepProfiles.tsx +++ b/src/screens/StarterPack/Wizard/StepProfiles.tsx @@ -4,14 +4,14 @@ import {KeyboardAwareScrollView} from 'react-native-keyboard-controller' import {AppBskyActorDefs, ModerationOpts} from '@atproto/api' import {Trans} from '@lingui/macro' +import {isNative} from '#/platform/detection' import {useA11y} from '#/state/a11y' -import {isNative} from 'platform/detection' -import {useActorAutocompleteQuery} from 'state/queries/actor-autocomplete' -import {useActorSearchPaginated} from 'state/queries/actor-search' -import {SearchInput} from 'view/com/util/forms/SearchInput' -import {List} from 'view/com/util/List' +import {useActorAutocompleteQuery} from '#/state/queries/actor-autocomplete' +import {useActorSearchPaginated} from '#/state/queries/actor-search' +import {List} from '#/view/com/util/List' import {useWizardState} from '#/screens/StarterPack/Wizard/State' import {atoms as a, useTheme} from '#/alf' +import {SearchInput} from '#/components/forms/SearchInput' import {Loader} from '#/components/Loader' import {ScreenTransition} from '#/components/StarterPack/Wizard/ScreenTransition' import {WizardProfileCard} from '#/components/StarterPack/Wizard/WizardListCard' @@ -65,12 +65,11 @@ export function StepProfiles({ return ( <ScreenTransition style={[a.flex_1]} direction={state.transitionDirection}> <View style={[a.border_b, t.atoms.border_contrast_medium]}> - <View style={[a.my_sm, a.px_md, {height: 40}]}> + <View style={[a.py_sm, a.px_md, {height: 60}]}> <SearchInput - query={query} - onChangeQuery={setQuery} - onPressCancelSearch={() => setQuery('')} - onSubmitQuery={() => {}} + value={query} + onChangeText={setQuery} + onClearText={() => setQuery('')} /> </View> </View> |