Fakultas Ilmu Komputer UI

Commit f5ca2fd4 authored by Shafiya Adzhani's avatar Shafiya Adzhani
Browse files

[GREEN] add wajib diisi status error message

parent 0232440d
Pipeline #72330 passed with stages
in 5 minutes and 29 seconds
......@@ -53,61 +53,78 @@ const FormIUMK1 = ({register, errors, handleSubmit, onSubmit}) => {
Status Entitas<span className="text-popred">*</span>
</label>
<div className="flex flex-row justify-between">
<label className="heading-3 text-charchoal">PT</label>
<input
className="mr-2"
name="status"
data-testid="form-1-status-pt"
ref={register({required: true})}
type="radio"
value="PT"
/>
<label className="heading-3 text-charchoal">CV</label>
<input
className="mr-2"
name="status"
data-testid="form-1-status-cv"
ref={register({required: true})}
type="radio"
value="CV"
/>
<label className="heading-3 text-charchoal">Firma</label>
<input
className="mr-2"
name="status"
data-testid="form-1-status-firma"
ref={register({required: true})}
type="radio"
value="Firma"
/>
<label className="heading-3 text-charchoal">Yayasan</label>
<input
className="mr-2"
name="status"
data-testid="form-1-status-yayasan"
ref={register({required: true})}
type="radio"
value="Yayasan"
/>
<label className="heading-3 text-charchoal">Koperasi</label>
<input
className="mr-2"
name="status"
data-testid="form-1-status-koperasi"
ref={register({required: true})}
type="radio"
value="Koperasi"
/>
<label className="heading-3 text-charchoal">Other</label>
<input
className="mr-2"
name="status"
data-testid="form-1-status-other"
ref={register({required: true})}
type="radio"
value="Other"
/>
<div>
<input
className="mr-2"
name="status"
data-testid="form-1-status-pt"
ref={register({required: 'Wajib diisi'})}
type="radio"
value="PT"
/>
<label className="heading-3 text-charchoal">PT</label>
</div>
<div>
<input
className="mr-2"
name="status"
data-testid="form-1-status-cv"
ref={register({required: 'Wajib diisi'})}
type="radio"
value="CV"
/>
<label className="heading-3 text-charchoal">CV</label>
</div>
<div>
<input
className="mr-2"
name="status"
data-testid="form-1-status-firma"
ref={register({required: 'Wajib diisi'})}
type="radio"
value="Firma"
/>
<label className="heading-3 text-charchoal">Firma</label>
</div>
<div>
<input
className="mr-2"
name="status"
data-testid="form-1-status-yayasan"
ref={register({required: 'Wajib diisi'})}
type="radio"
value="Yayasan"
/>
<label className="heading-3 text-charchoal">Yayasan</label>
</div>
<div>
<input
className="mr-2"
name="status"
data-testid="form-1-status-koperasi"
ref={register({required: 'Wajib diisi'})}
type="radio"
value="Koperasi"
/>
<label className="heading-3 text-charchoal">Koperasi</label>
</div>
<div>
<input
className="mr-2"
name="status"
data-testid="form-1-status-other"
ref={register({required: 'Wajib diisi'})}
type="radio"
value="Other"
/>
<label className="heading-3 text-charchoal">Other</label>
</div>
</div>
{errors.status && (
<span role="alert" className="text-popred">
{errors.status.message}
</span>
)}
</div>
<div className="flex flex-col py-3" data-testid="form-iumk-1-alamat">
......
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