refactored code
This commit is contained in:
@@ -752,7 +752,8 @@ export function CardOrderForm({ mode, initialData }: CardOrderFormProps) {
|
||||
onPrev={currentStep > 0 ? handleBack : undefined}
|
||||
onNext={!isLastStep ? handleNext : undefined}
|
||||
showSubmit={isLastStep}
|
||||
onSubmit={isLastStep ? doSubmit : undefined}
|
||||
saveOnEveryStep={mode === "edit"}
|
||||
onSubmit={doSubmit}
|
||||
submitLabel={mode === "create" ? t("cardOrder.submit", "Kart sargyt dörediň") : t("common.save", "Ýatda sakla")}
|
||||
loadingLabel={t("common.saving", "Ýüklenilýär...")}
|
||||
cancelLabel={t("common.cancel", "Ýatyr")}
|
||||
|
||||
Reference in New Issue
Block a user