chore: made project-identifier rule consistent (#3148)

This commit is contained in:
Lakhan Baheti 2023-12-17 00:39:23 +05:30 committed by GitHub
parent e1793dda74
commit a37dec45d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View File

@ -308,8 +308,8 @@ export const CreateProjectModal: FC<Props> = observer((props) => {
message: "Identifier must at least be of 1 character",
},
maxLength: {
value: 12,
message: "Identifier must at most be of 12 characters",
value: 6,
message: "Identifier must at most be of 6 characters",
},
}}
render={({ field: { value, onChange } }) => (

View File

@ -232,7 +232,7 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
/>
</div>
<div className="flex w-full items-center justify-between gap-10">
<div className="flex w-full items-baseline justify-between gap-10">
<div className="flex w-1/2 flex-col gap-1">
<h4 className="text-sm">Identifier</h4>
<Controller
@ -246,8 +246,8 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
message: "Identifier must at least be of 1 character",
},
maxLength: {
value: 12,
message: "Identifier must at most be of 5 characters",
value: 6,
message: "Identifier must at most be of 6 characters",
},
}}
render={({ field: { value, ref } }) => (
@ -265,6 +265,7 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
/>
)}
/>
<span className="text-xs text-red-500">{errors?.identifier?.message}</span>
</div>
<div className="flex w-1/2 flex-col gap-1">