This commit is contained in:
Raja Oktafrianto
2025-05-11 13:27:28 +07:00
parent 2a1c715285
commit d21d43ba56
4 changed files with 120 additions and 57 deletions

View File

@ -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>