Fakultas Ilmu Komputer UI

Commit 29dcb50d authored by Shafiya Adzhani's avatar Shafiya Adzhani
Browse files

[CHORES] add red color to wajib diisi

parent 78b70bfc
......@@ -41,7 +41,11 @@ const FormIUMK1 = ({register, errors, handleSubmit, onSubmit}) => {
required: 'Wajib diisi',
})}
/>
{errors.nama && <p>{errors.nama.message}</p>}
{errors.nama && (
<span role="alert" className="text-popred">
{errors.nama.message}
</span>
)}
</div>
<div className="flex flex-col py-3" data-testid="form-iumk-1-status">
......@@ -122,7 +126,11 @@ const FormIUMK1 = ({register, errors, handleSubmit, onSubmit}) => {
required: 'Wajib diisi',
})}
/>
{errors.alamat && <p>{errors.alamat.message}</p>}
{errors.alamat && (
<span role="alert" className="text-popred">
{errors.alamat.message}
</span>
)}
</div>
<div className="flex flex-col py-3" data-testid="form-iumk-1-barang-jasa">
......@@ -142,7 +150,11 @@ const FormIUMK1 = ({register, errors, handleSubmit, onSubmit}) => {
required: 'Wajib diisi',
})}
/>
{errors.barangJasa && <p>{errors.barangJasa.message}</p>}
{errors.barangJasa && (
<span role="alert" className="text-popred">
{errors.barangJasa.message}
</span>
)}
</div>
<div className="pt-4">
<button
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment