update
This commit is contained in:
@ -129,6 +129,7 @@ const AddDialog = () => {
|
||||
<Input
|
||||
className={`input col-span-6 ${errors.name ? 'border-red-500' : ''}`}
|
||||
type="text"
|
||||
placeholder="Enter Name"
|
||||
autoComplete="off"
|
||||
value={formField.name}
|
||||
onChange={({ target }) => {
|
||||
@ -149,15 +150,15 @@ const AddDialog = () => {
|
||||
Description <span className="text-red-500">*</span>
|
||||
</label>
|
||||
<Textarea
|
||||
className="input col-span-6"
|
||||
className={`input col-span-6 ${errors.name ? 'border-red-500' : ''}`}
|
||||
name="description"
|
||||
placeholder="Enter Description"
|
||||
value={formField.description}
|
||||
onChange={handleChange}
|
||||
/>
|
||||
{errors.type && (
|
||||
{errors.description && (
|
||||
<span className="text-red-500 text-xs mt-1 col-span-8 ml-[calc(25%+0.5rem)]">
|
||||
{errors.type}
|
||||
{errors.description}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user