Skip to content

Commit

Permalink
Field descriptions for create domain/subdomain modals
Browse files Browse the repository at this point in the history
  • Loading branch information
K-Dud committed Jan 16, 2024
1 parent c788613 commit 931b947
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const form: DynamicFormSchema<CreateDomain> = {
component: ContextureInputText,
componentProps: {
label: t("domains.modal.create.form.fields.name.label"),
description: t("domains.details.edit.form.description.name"),
required: true,
rules: toFieldValidator(zod.string().min(1)),
},
Expand All @@ -59,6 +60,7 @@ const form: DynamicFormSchema<CreateDomain> = {
component: ContextureInputText,
componentProps: {
label: t("domains.modal.create.form.fields.short_name.label"),
description: t("domains.details.edit.form.description.key"),
required: true,
rules: toFieldValidator(zod.string().min(1)),
},
Expand All @@ -68,6 +70,7 @@ const form: DynamicFormSchema<CreateDomain> = {
component: ContextureInputText,
componentProps: {
label: t("domains.modal.create.form.fields.vision.label"),
description: t("domains.details.edit.form.description.vision"),
required: true,
rules: toFieldValidator(zod.string().min(1)),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const form: DynamicFormSchema<CreateDomain> = {
component: ContextureInputText,
componentProps: {
label: t("domains.modal.create_subdomain.form.fields.name.label"),
description: t("domains.details.edit.form.description.name"),
required: true,
rules: toFieldValidator(zod.string().min(1)),
},
Expand All @@ -62,6 +63,7 @@ const form: DynamicFormSchema<CreateDomain> = {
component: ContextureInputText,
componentProps: {
label: t("domains.modal.create.form.fields.short_name.label"),
description: t("domains.details.edit.form.description.key"),
required: true,
rules: toFieldValidator(zod.string().min(1)),
},
Expand All @@ -71,6 +73,7 @@ const form: DynamicFormSchema<CreateDomain> = {
component: ContextureInputText,
componentProps: {
label: t("domains.modal.create.form.fields.vision.label"),
description: t("domains.details.edit.form.description.vision"),
required: true,
rules: toFieldValidator(zod.string().min(1)),
},
Expand Down

0 comments on commit 931b947

Please sign in to comment.