-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathFormProfile.jsx
More file actions
108 lines (106 loc) · 2.06 KB
/
FormProfile.jsx
File metadata and controls
108 lines (106 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
export const FormProfile = ({ onChange, handleSubmit, fields }) => {
const {
fullName,
occupation,
email,
phone,
city,
picture,
age,
gender,
description,
} = fields;
return (
<form onSubmit={handleSubmit}>
<div>
<label>Full name*</label>
<input
type="text"
value={fullName}
name="fullName"
onChange={onChange}
required
/>
</div>
<div>
<label>Occupation*</label>
<input
type="text"
value={occupation}
name="occupation"
onChange={onChange}
required
/>
</div>
<div>
<label>Email*</label>
<input
type="text"
value={email}
name="email"
onChange={onChange}
required
/>
</div>
<div>
<label>Phone*</label>
<input
type="text"
value={phone}
name="phone"
onChange={onChange}
required
/>
</div>
<div>
<label>City*</label>
<input
type="text"
value={city}
name="city"
onChange={onChange}
required
/>
</div>
<div>
<label>Url image*</label>
<input
type="text"
value={picture}
name="picture"
onChange={onChange}
required
/>
</div>
<div>
<label>Age*</label>
<input
type="text"
value={age}
name="age"
onChange={onChange}
required
/>
</div>
<div>
<label>Gender*</label>
<input
type="text"
value={gender}
name="gender"
onChange={onChange}
required
/>
</div>
<div className="textarea">
<label>Description*</label>
<textarea
value={description}
name="description"
onChange={onChange}
required
/>
</div>
</form>
);
};