chore: increase project identifier max length (#1638)

This commit is contained in:
Aaryan Khandelwal 2023-07-24 12:57:05 +05:30 committed by GitHub
parent f3b09a13b8
commit 29b04bb3ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

View File

@ -95,7 +95,6 @@ export const CreateProjectModal: React.FC<Props> = ({ isOpen, setIsOpen, user })
setValue, setValue,
} = useForm<IProject>({ } = useForm<IProject>({
defaultValues, defaultValues,
mode: "all",
reValidateMode: "onChange", reValidateMode: "onChange",
}); });
@ -298,8 +297,8 @@ export const CreateProjectModal: React.FC<Props> = ({ isOpen, setIsOpen, user })
message: "Identifier must at least be of 1 character", message: "Identifier must at least be of 1 character",
}, },
maxLength: { maxLength: {
value: 5, value: 12,
message: "Identifier must at most be of 5 characters", message: "Identifier must at most be of 12 characters",
}, },
}} }}
/> />

View File

@ -40,7 +40,7 @@ const CustomMenu = ({
{({ open }) => ( {({ open }) => (
<> <>
{customButton ? ( {customButton ? (
<Menu.Button as="button" onClick={menuButtonOnClick}> <Menu.Button as="button" type="button" onClick={menuButtonOnClick}>
{customButton} {customButton}
</Menu.Button> </Menu.Button>
) : ( ) : (

View File

@ -73,6 +73,7 @@ export const CustomSearchSelect = ({
<Combobox.Button as="div">{customButton}</Combobox.Button> <Combobox.Button as="div">{customButton}</Combobox.Button>
) : ( ) : (
<Combobox.Button <Combobox.Button
type="button"
className={`flex items-center justify-between gap-1 w-full rounded-md shadow-sm border border-custom-border-300 duration-300 focus:outline-none ${ className={`flex items-center justify-between gap-1 w-full rounded-md shadow-sm border border-custom-border-300 duration-300 focus:outline-none ${
input ? "px-3 py-2 text-sm" : "px-2.5 py-1 text-xs" input ? "px-3 py-2 text-sm" : "px-2.5 py-1 text-xs"
} ${ } ${

View File

@ -44,6 +44,7 @@ const CustomSelect = ({
<Listbox.Button as="div">{customButton}</Listbox.Button> <Listbox.Button as="div">{customButton}</Listbox.Button>
) : ( ) : (
<Listbox.Button <Listbox.Button
type="button"
className={`flex items-center justify-between gap-1 w-full rounded-md border border-custom-border-300 shadow-sm duration-300 focus:outline-none ${ className={`flex items-center justify-between gap-1 w-full rounded-md border border-custom-border-300 shadow-sm duration-300 focus:outline-none ${
input ? "px-3 py-2 text-sm" : "px-2.5 py-1 text-xs" input ? "px-3 py-2 text-sm" : "px-2.5 py-1 text-xs"
} ${ } ${