fix: email and role on profile panel

This commit is contained in:
tsabit ghazwan 2019-01-29 18:50:06 +07:00
parent 20f975fa02
commit 54d88ac0fe

View File

@ -611,9 +611,9 @@ export default class App extends React.Component {
style={{ padding: '0px 16px 0px', fontSize: 14 }} style={{ padding: '0px 16px 0px', fontSize: 14 }}
disabled={true} disabled={true}
primaryText={<span primaryText={<span
style={{ fontWeight: 500 }}>{this.authStore.userProfile.username || 'Username'}</span>} style={{ fontWeight: 500 }}>{this.props.appstate.userData.email|| 'Username'}</span>}
secondaryText={<p secondaryText={<p
style={{ fontWeight: 400 }}>{_.capitalize(this.authStore.userProfile.role) || 'role'}</p>} style={{ fontWeight: 400 }}>{_.capitalize(this.props.appstate.userData.role) || 'role'}</p>}
/> />
</List> </List>
<Divider /> <Divider />