Fakultas Ilmu Komputer UI

Commit 003cab02 authored by Khoirul Khuluqi Abdulloh's avatar Khoirul Khuluqi Abdulloh
Browse files

Menghapus beberapa duplikasi kode pada EditProfile.jsx

parent a6e57223
Pipeline #26863 failed with stages
in 13 minutes
......@@ -344,42 +344,6 @@ export default class EditProfile extends ProfileHandler {
name="student_gpa"
/>
</Form.Field>
<Form.Field>
<label htmlFor="expected_salary">Expected Salary</label>
<input onChange={this.handleChange} placeholder="2000000" name="expected_salary" />
</Form.Field>
<Form.Field>
<label htmlFor="intro">Intro</label>
<input
onChange={this.handleChange}
placeholder={
this.state.intro === null
? 'Ceritakan dirimu secara singkat'
: this.state.intro
}
defaultValue={
this.state.intro === null ? null : this.state.intro
}
name="intro"
/>
</Form.Field>
<Form.Field>
<label htmlFor="student_gpa">GPA</label>
<input
onChange={this.handleChange}
placeholder={
this.state.student_gpa === null
? '3.50'
: this.state.student_gpa
}
defaultValue={
this.state.student_gpa === null
? null
: this.state.student_gpa
}
name="student_gpa"
/>
</Form.Field>
<Form.Field>
<label htmlFor="dependants">Dependants</label>
<input
......
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