rename var

This commit is contained in:
Hailey
2024-06-04 22:04:41 -07:00
parent d6c9da78a0
commit 6de688bfee
+20 -2
View File
@@ -77,7 +77,7 @@ function WizardInner() {
did: currentAccount?.did, did: currentAccount?.did,
staleTime: 0, staleTime: 0,
}) })
const searchDialogControl = useDialogControl() const addDialogControl = useDialogControl()
React.useEffect(() => { React.useEffect(() => {
navigation.setOptions({ navigation.setOptions({
@@ -177,9 +177,27 @@ function WizardInner() {
<StepView /> <StepView />
</Container> </Container>
{state.currentStep !== 'Details' && (
<Button
label={_(msg`Cancel`)}
onPress={addDialogControl.open}
variant="solid"
color="primary"
size="medium"
style={[a.mx_2xl]}>
<ButtonText>
{state.currentStep === 'Profiles' ? (
<Trans>Find People</Trans>
) : (
<Trans>Find Feeds</Trans>
)}
</ButtonText>
</Button>
)}
{(state.currentStep === 'Profiles' || state.currentStep === 'Feeds') && ( {(state.currentStep === 'Profiles' || state.currentStep === 'Feeds') && (
<WizardAddDialog <WizardAddDialog
control={searchDialogControl} control={addDialogControl}
state={state} state={state}
dispatch={dispatch} dispatch={dispatch}
type={state.currentStep === 'Profiles' ? 'profiles' : 'feeds'} type={state.currentStep === 'Profiles' ? 'profiles' : 'feeds'}