forked from github/plane
fix: create label modal error message updated
This commit is contained in:
parent
98a223e5e1
commit
4439740768
@ -156,19 +156,21 @@ export const CreateLabelModal: React.FC<Props> = ({ isOpen, projectId, handleClo
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</Popover>
|
</Popover>
|
||||||
<Input
|
<div className="flex w-full flex-col gap-0.5 justify-center">
|
||||||
type="text"
|
<Input
|
||||||
id="name"
|
type="text"
|
||||||
name="name"
|
id="name"
|
||||||
placeholder="Label title"
|
name="name"
|
||||||
autoComplete="off"
|
placeholder="Label title"
|
||||||
error={errors.name}
|
autoComplete="off"
|
||||||
register={register}
|
error={errors.name}
|
||||||
width="full"
|
register={register}
|
||||||
validations={{
|
width="full"
|
||||||
required: "Name is required",
|
validations={{
|
||||||
}}
|
required: "Label title is required",
|
||||||
/>
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="mt-5 flex justify-end gap-2">
|
<div className="mt-5 flex justify-end gap-2">
|
||||||
|
Loading…
Reference in New Issue
Block a user