improve ux on edit profile view for OAuth users
This commit is contained in:
parent
b114732727
commit
1803ca06d3
5 changed files with 96 additions and 23 deletions
|
|
@ -116,8 +116,17 @@ class Profile extends React.Component {
|
|||
return !loading ? (<div className="OAuthProfile">
|
||||
{Object.keys(user.services).map(service => (
|
||||
<div key={service} className={`LoggedInWith ${service}`}>
|
||||
<div className="ServiceIcon"><i className={`fa fa-${service === 'facebook' ? 'facebook-official' : service}`} /></div>
|
||||
<img src={`/${service}.svg`} alt={service} />
|
||||
<p>{`You're logged in with ${_.capitalize(service)} using the email address ${user.services[service].email}.`}</p>
|
||||
<Button
|
||||
className={`btn btn-${service}`}
|
||||
href={{
|
||||
facebook: 'https://www.facebook.com/settings',
|
||||
google: 'https://myaccount.google.com/privacy#personalinfo',
|
||||
github: 'https://github.com/settings/profile',
|
||||
}[service]}
|
||||
target="_blank"
|
||||
>Edit Profile on {_.capitalize(service)}</Button>
|
||||
</div>
|
||||
))}
|
||||
</div>) : <div />;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue