forked from github/plane
chore: increase project identifier max length (#1638)
This commit is contained in:
parent
f3b09a13b8
commit
29b04bb3ef
@ -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",
|
||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
@ -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>
|
||||||
) : (
|
) : (
|
||||||
|
@ -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"
|
||||||
} ${
|
} ${
|
||||||
|
@ -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"
|
||||||
} ${
|
} ${
|
||||||
|
Loading…
Reference in New Issue
Block a user