Fakultas Ilmu Komputer UI

Commit 0bcd7df0 authored by ISNAINI NURUL KHASANAH's avatar ISNAINI NURUL KHASANAH
Browse files

Sprint 3 : mencegah field kosong saat edit profil perusahaan

parent 57e01d81
......@@ -191,16 +191,17 @@ karyawan
key={this.state.refresh}
onSubmit={this.handleSubmit}
>
<Form.Field>
<Form.Field required>
<label htmlFor="name">Nama Perusahaan</label>
<input
placeholder="Nama Perusahaan"
name="name"
onChange={this.handleChange}
defaultValue={this.state.name === null ? null : this.state.name}
required
/>
</Form.Field>
<Form.Field>
<Form.Field required>
<label htmlFor="address">Alamat Perusahaan</label>
<input
placeholder="Alamat Perusahaan"
......@@ -209,9 +210,10 @@ karyawan
defaultValue={
this.state.address === null ? null : this.state.address
}
required
/>
</Form.Field>
<Form.Field>
<Form.Field required>
<label htmlFor="description">Deskripsi</label>
<TextArea
placeholder="Try adding multiple lines"
......@@ -223,9 +225,10 @@ karyawan
? null
: this.state.description
}
required
/>
</Form.Field>
<Form.Field>
<Form.Field required>
<label htmlFor="size">Jumlah karyawan</label>
<input
placeholder="Jumlah karyawan keseluruhan"
......@@ -235,9 +238,10 @@ karyawan
defaultValue={
this.state.size === null ? '0' : this.state.size
}
required
/>
</Form.Field>
<Form.Field>
<Form.Field required>
<label htmlFor="website">Website</label>
<input
placeholder="Alamat Website"
......@@ -246,6 +250,7 @@ karyawan
defaultValue={
this.state.website === null ? null : this.state.website
}
required
/>
</Form.Field>
<Form.Field>
......
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