update alert border field
This commit is contained in:
@ -126,7 +126,7 @@ const AddDialog = () => {
|
||||
</label>
|
||||
|
||||
<Input
|
||||
className="input col-span-6"
|
||||
className={`input col-span-6 ${errors.code ? 'border-red-500' : ''}`}
|
||||
type="text"
|
||||
autoComplete="off"
|
||||
value={formField.code}
|
||||
@ -147,7 +147,7 @@ const AddDialog = () => {
|
||||
</label>
|
||||
|
||||
<Input
|
||||
className="input col-span-6"
|
||||
className={`input col-span-6 ${errors.name ? 'border-red-500' : ''}`}
|
||||
type="text"
|
||||
autoComplete="off"
|
||||
value={formField.name}
|
||||
@ -168,7 +168,7 @@ const AddDialog = () => {
|
||||
</label>
|
||||
|
||||
<Input
|
||||
className="input col-span-6"
|
||||
className={`input col-span-6 ${errors.prefix ? 'border-red-500' : ''}`}
|
||||
type="text"
|
||||
autoComplete="off"
|
||||
value={formField.prefix}
|
||||
|
||||
@ -163,7 +163,7 @@ const EditDialog = () => {
|
||||
</label>
|
||||
|
||||
<Input
|
||||
className="input col-span-6"
|
||||
className={`input col-span-6 ${errors.code ? 'border-red-500' : ''}`}
|
||||
type="text"
|
||||
autoComplete="off"
|
||||
value={formField.code}
|
||||
@ -178,13 +178,14 @@ const EditDialog = () => {
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="grid grid-cols-8 gap-2 w-full items-center">
|
||||
<label className="form-label flex items-center gap-1 col-span-2">
|
||||
Name<span className="text-red-500">*</span>
|
||||
</label>
|
||||
|
||||
<Input
|
||||
className="input col-span-6"
|
||||
className={`input col-span-6 ${errors.name ? 'border-red-500' : ''}`}
|
||||
type="text"
|
||||
autoComplete="off"
|
||||
value={formField.name}
|
||||
@ -199,13 +200,14 @@ const EditDialog = () => {
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="grid grid-cols-8 gap-2 w-full items-center">
|
||||
<label className="form-label flex items-center gap-1 col-span-2">
|
||||
Prefix<span className="text-red-500">*</span>
|
||||
</label>
|
||||
|
||||
<Input
|
||||
className="input col-span-6"
|
||||
className={`input col-span-6 ${errors.prefix ? 'border-red-500' : ''}`}
|
||||
type="text"
|
||||
autoComplete="off"
|
||||
value={formField.prefix}
|
||||
|
||||
Reference in New Issue
Block a user