diff --git a/src/screens/StarterPack/Wizard/index.tsx b/src/screens/StarterPack/Wizard/index.tsx index 8bbca34b29..e99b6656cb 100644 --- a/src/screens/StarterPack/Wizard/index.tsx +++ b/src/screens/StarterPack/Wizard/index.tsx @@ -1,9 +1,6 @@ import React from 'react' import {Keyboard, View} from 'react-native' -import { - KeyboardAwareScrollView, - KeyboardStickyView, -} from 'react-native-keyboard-controller' +import {KeyboardAwareScrollView} from 'react-native-keyboard-controller' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' import {useNavigation} from '@react-navigation/native' @@ -13,7 +10,7 @@ import {useBottomBarOffset} from 'lib/hooks/useBottomBarOffset' import {CommonNavigatorParams, NavigationProp} from 'lib/routes/types' import {useProfileQuery} from 'state/queries/profile' import {useSession} from 'state/session' -import {ViewHeader} from 'view/com/util/ViewHeader' +import {Text} from 'view/com/util/text/Text' import {CenteredView} from 'view/com/util/Views' import {useWizardState, WizardStep} from '#/screens/StarterPack/Wizard/State' import {StepDetails} from '#/screens/StarterPack/Wizard/StepDetails' @@ -22,7 +19,6 @@ import {StepProfiles} from '#/screens/StarterPack/Wizard/StepProfiles' import {atoms as a, useTheme} from '#/alf' import {Button, ButtonText} from '#/components/Button' import {useDialogControl} from '#/components/Dialog' -import {Loader} from '#/components/Loader' import {WizardAddDialog} from '#/components/StarterPack/Wizard/WizardAddDialog' import {Provider} from './State' @@ -81,7 +77,6 @@ function WizardInner() { did: currentAccount?.did, staleTime: 0, }) - const bottomBarOffset = useBottomBarOffset() const searchDialogControl = useDialogControl() React.useEffect(() => { @@ -90,19 +85,19 @@ function WizardInner() { }) }, [navigation]) - const wizardUiStrings: Record = + const wizardUiStrings: Record = { Details: { header: _(msg`Starter Pack`), - button: _(msg`Continue`), + nextBtn: _(msg`Next`), }, Profiles: { header: _(msg`Profiles`), - button: _(msg`Continue`), + nextBtn: _(msg`Next`), }, Feeds: { header: _(msg`Feeds`), - button: _(msg`Finish`), + nextBtn: _(msg`Finish`), }, } @@ -135,52 +130,52 @@ function WizardInner() { - dispatch({type: 'Back'}) - : undefined - } - showBorder={true} - showOnDesktop={true} - renderButton={ - state.currentStep === 'Profiles' || state.currentStep === 'Feeds' - ? () => ( - - ) - : undefined - } - /> + + + {state.currentStep !== 'Details' && ( + + )} + + + {uiStrings.header} + + + + + + - - - - - {(state.currentStep === 'Profiles' || state.currentStep === 'Feeds') && (