refactored code

This commit is contained in:
Jelaletdin12
2026-09-04 21:26:59 +05:00
parent 5ed4c9a8ec
commit d326361a03
46 changed files with 230 additions and 592 deletions

View File

@@ -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>