performing mutation

This commit is contained in:
okbel
2018-04-26 18:09:27 -03:00
parent 0a0bbbb3ce
commit a7e09352ef
5 changed files with 29 additions and 4 deletions
@@ -16,7 +16,7 @@ DefaultProfileHeader.propTypes = {
emailAddress: PropTypes.string,
};
const Profile = ({ username, emailAddress, root, slotPassthrough }) => {
const Profile = ({ id, username, emailAddress, root, slotPassthrough }) => {
return (
<div className="talk-my-profile talk-profile-container">
<Slot
@@ -25,6 +25,7 @@ const Profile = ({ username, emailAddress, root, slotPassthrough }) => {
defaultComponent={DefaultProfileHeader}
passthrough={{
...slotPassthrough,
id,
username,
emailAddress,
}}
@@ -36,6 +37,7 @@ const Profile = ({ username, emailAddress, root, slotPassthrough }) => {
};
Profile.propTypes = {
id: PropTypes.string,
username: PropTypes.string,
emailAddress: PropTypes.string,
root: PropTypes.object,
@@ -30,6 +30,7 @@ class ProfileContainer extends Component {
return (
<Profile
id={me.id}
username={me.username}
emailAddress={emailAddress}
root={root}