fixed some params and ui
This commit is contained in:
@@ -423,7 +423,7 @@ function StepPayment({ form, errors, set, t }: StepContentProps) {
|
||||
);
|
||||
}
|
||||
|
||||
function StepDocs({ form, set, errors }: StepContentProps) {
|
||||
function StepDocs({ form, set, errors, t }: StepContentProps) {
|
||||
return (
|
||||
<BentoGrid cols={2}>
|
||||
<BentoCard>
|
||||
@@ -431,7 +431,7 @@ function StepDocs({ form, set, errors }: StepContentProps) {
|
||||
{KABUL_DOCS.map(({ key, label }) => (
|
||||
<DocumentUpload
|
||||
key={key}
|
||||
label={label}
|
||||
label={t(`intlPaymentForm.docs.${key}`, label)}
|
||||
value={(form[key] as string) || ""}
|
||||
onChange={(v) => set(key, v as IntlPaymentFormData[typeof key])}
|
||||
error={errors[key]}
|
||||
@@ -445,7 +445,7 @@ function StepDocs({ form, set, errors }: StepContentProps) {
|
||||
{UPGRAD_DOCS.map(({ key, label }) => (
|
||||
<DocumentUpload
|
||||
key={key}
|
||||
label={label}
|
||||
label={t(`intlPaymentForm.docs.${key}`, label)}
|
||||
value={(form[key] as string) || ""}
|
||||
onChange={(v) => set(key, v as IntlPaymentFormData[typeof key])}
|
||||
error={errors[key]}
|
||||
|
||||
Reference in New Issue
Block a user