refactored code
This commit is contained in:
@@ -673,7 +673,8 @@ export function IntlPaymentForm({ mode, initialData }: IntlPaymentFormProps) {
|
||||
onPrev={currentStep > 0 ? handleBack : undefined}
|
||||
onNext={!isLastStep ? handleNext : undefined}
|
||||
showSubmit={isLastStep}
|
||||
onSubmit={isLastStep ? doSubmit : undefined}
|
||||
saveOnEveryStep={mode === "edit"}
|
||||
onSubmit={doSubmit}
|
||||
submitLabel={mode === "create" ? t("intlPayment.createBtn", "Dörediň") : t("intlPayment.editBtn", "Redaktirläň")}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user