fix(forms): make company tax id, registration number, and industry optional
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -168,9 +168,7 @@ export const createCompanyFormSections = ({
|
|||||||
label: "Industry",
|
label: "Industry",
|
||||||
type: "text",
|
type: "text",
|
||||||
placeholder: "e.g. construction, software, logistics",
|
placeholder: "e.g. construction, software, logistics",
|
||||||
required: true,
|
|
||||||
rules: {
|
rules: {
|
||||||
required: { message: FormErrorMessages.required, value: true },
|
|
||||||
minLength: { value: 2, message: FormErrorMessages.minLength(2) },
|
minLength: { value: 2, message: FormErrorMessages.minLength(2) },
|
||||||
maxLength: { value: 100, message: FormErrorMessages.maxLength(100) },
|
maxLength: { value: 100, message: FormErrorMessages.maxLength(100) },
|
||||||
},
|
},
|
||||||
@@ -181,9 +179,7 @@ export const createCompanyFormSections = ({
|
|||||||
label: "Registration number",
|
label: "Registration number",
|
||||||
type: "text",
|
type: "text",
|
||||||
placeholder: "Registry or license number",
|
placeholder: "Registry or license number",
|
||||||
required: true,
|
|
||||||
rules: {
|
rules: {
|
||||||
required: { message: FormErrorMessages.required, value: true },
|
|
||||||
minLength: { value: 5, message: FormErrorMessages.minLength(5) },
|
minLength: { value: 5, message: FormErrorMessages.minLength(5) },
|
||||||
maxLength: { value: 50, message: FormErrorMessages.maxLength(50) },
|
maxLength: { value: 50, message: FormErrorMessages.maxLength(50) },
|
||||||
},
|
},
|
||||||
@@ -194,9 +190,7 @@ export const createCompanyFormSections = ({
|
|||||||
label: "Tax id",
|
label: "Tax id",
|
||||||
type: "text",
|
type: "text",
|
||||||
placeholder: "National tax identification number",
|
placeholder: "National tax identification number",
|
||||||
required: true,
|
|
||||||
rules: {
|
rules: {
|
||||||
required: { message: FormErrorMessages.required, value: true },
|
|
||||||
minLength: { value: 5, message: FormErrorMessages.minLength(5) },
|
minLength: { value: 5, message: FormErrorMessages.minLength(5) },
|
||||||
maxLength: { value: 50, message: FormErrorMessages.maxLength(50) },
|
maxLength: { value: 50, message: FormErrorMessages.maxLength(50) },
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user