fix: create label modal error message updated

This commit is contained in:
anmolsinghbhatia 2023-05-20 22:30:44 +05:30
parent 98a223e5e1
commit 4439740768

View File

@ -156,19 +156,21 @@ export const CreateLabelModal: React.FC<Props> = ({ isOpen, projectId, handleClo
</>
)}
</Popover>
<Input
type="text"
id="name"
name="name"
placeholder="Label title"
autoComplete="off"
error={errors.name}
register={register}
width="full"
validations={{
required: "Name is required",
}}
/>
<div className="flex w-full flex-col gap-0.5 justify-center">
<Input
type="text"
id="name"
name="name"
placeholder="Label title"
autoComplete="off"
error={errors.name}
register={register}
width="full"
validations={{
required: "Label title is required",
}}
/>
</div>
</div>
</div>
<div className="mt-5 flex justify-end gap-2">