Skip to content

Commit

Permalink
Allow editting names
Browse files Browse the repository at this point in the history
  • Loading branch information
Guo-William committed Apr 17, 2018
1 parent ea820d3 commit dee66cb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion travelpal/assets/js/components/ProfileInfo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ export default function ProfileInfo({ name, username, email, budget, formOnChang
return (
<div id="profile-info">
<h3>About</h3>
<ProfileLabel name={"name"} label={"Name"} value={name} />
<ProfileLabel name={"name"} label={"Name"} value={name} toggleEdit={toggleEdit} isEditDisabled={false} />
<ProfileInfoEdit name={"name"} label={"Name"} inputType={"text"}
formOnChange={formOnChange}
submitOnClick={submitOnClick}
toggleEdit={toggleEdit}
/>
<ProfileLabel name={"username"} label={"Username"} value={username} />
<ProfileLabel name={"email"} label={"Email"} value={email} />
<ProfileLabel name={"budget"} label={"Budget"} value={budget} toggleEdit={toggleEdit} isEditDisabled={false} />
Expand Down

0 comments on commit dee66cb

Please sign in to comment.