adjust button on details
This commit is contained in:
@@ -247,18 +247,7 @@ function WizardInner() {
|
|||||||
<StepView />
|
<StepView />
|
||||||
</Container>
|
</Container>
|
||||||
|
|
||||||
{state.currentStep === 'Details' ? (
|
{state.currentStep !== 'Details' && (
|
||||||
<Button
|
|
||||||
label={uiStrings.nextBtn}
|
|
||||||
variant="solid"
|
|
||||||
color="primary"
|
|
||||||
size="medium"
|
|
||||||
style={[a.mx_xl, a.my_5xl]}
|
|
||||||
onPress={onNext}
|
|
||||||
disabled={!state.canNext}>
|
|
||||||
<ButtonText>{uiStrings.nextBtn}</ButtonText>
|
|
||||||
</Button>
|
|
||||||
) : (
|
|
||||||
<Footer onNext={onNext} nextBtnText={uiStrings.nextBtn} />
|
<Footer onNext={onNext} nextBtnText={uiStrings.nextBtn} />
|
||||||
)}
|
)}
|
||||||
</CenteredView>
|
</CenteredView>
|
||||||
@@ -266,7 +255,8 @@ function WizardInner() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function Container({children}: {children: React.ReactNode}) {
|
function Container({children}: {children: React.ReactNode}) {
|
||||||
const [state] = useWizardState()
|
const {_} = useLingui()
|
||||||
|
const [state, dispatch] = useWizardState()
|
||||||
|
|
||||||
if (state.currentStep === 'Profiles' || state.currentStep === 'Feeds') {
|
if (state.currentStep === 'Profiles' || state.currentStep === 'Feeds') {
|
||||||
return <View style={[a.flex_1]}>{children}</View>
|
return <View style={[a.flex_1]}>{children}</View>
|
||||||
@@ -275,6 +265,20 @@ function Container({children}: {children: React.ReactNode}) {
|
|||||||
return (
|
return (
|
||||||
<KeyboardAwareScrollView style={[a.flex_1]}>
|
<KeyboardAwareScrollView style={[a.flex_1]}>
|
||||||
{children}
|
{children}
|
||||||
|
{state.currentStep === 'Details' && (
|
||||||
|
<Button
|
||||||
|
label={_(msg`Next`)}
|
||||||
|
variant="solid"
|
||||||
|
color="primary"
|
||||||
|
size="medium"
|
||||||
|
style={[a.mx_xl, a.mb_lg, {marginTop: 60}]}
|
||||||
|
onPress={() => dispatch({type: 'Next'})}
|
||||||
|
disabled={!state.canNext}>
|
||||||
|
<ButtonText>
|
||||||
|
<Trans>Next</Trans>
|
||||||
|
</ButtonText>
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
</KeyboardAwareScrollView>
|
</KeyboardAwareScrollView>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user