Profiles are being created seamlessly

This commit is contained in:
2019-05-11 12:51:20 +10:00
parent b6aa2cfc6e
commit 676cd45589
4 changed files with 100 additions and 25 deletions
+2 -2
View File
@@ -163,7 +163,7 @@ class Profile extends React.Component {
<div className='sidePanel'>
<p>Return <Link to='/'>home</Link></p>
<PasswordChangePanel />
<Logout />
<Logout onClick={(e) => this.props.history.push('/')} />
</div>
);
}
@@ -174,7 +174,7 @@ class Profile extends React.Component {
<div className='sidePanel'>
<p>Return <Link to='/'>home</Link></p>
<p>Go to <Link to='/profile' onClick={(e) => { e.preventDefault(); this.requestProfileData(this.props.username); this.props.history.push('/profile'); }}>your profile</Link></p>
<Logout />
<Logout onClick={(e) => this.props.history.push('/')} />
</div>
);
}