MM-26827 Add ShowFullName property (#4106)
* Add ShowFullName property * Add ShowFullName property to first and last name
This commit is contained in:
parent
6ebcfaa4cd
commit
c2be31c644
3 changed files with 3 additions and 62 deletions
|
|
@ -151,6 +151,7 @@ export type Config = {
|
|||
SendEmailNotifications: string;
|
||||
SendPushNotifications: string;
|
||||
ShowEmailAddress: string;
|
||||
ShowFullName: string;
|
||||
SiteName: string;
|
||||
SiteURL: string;
|
||||
SQLDriverName: string;
|
||||
|
|
|
|||
|
|
@ -136,66 +136,6 @@ exports[`user_profile should match snapshot 1`] = `
|
|||
}
|
||||
}
|
||||
>
|
||||
<View>
|
||||
<Text
|
||||
style={
|
||||
Array [
|
||||
Object {
|
||||
"color": undefined,
|
||||
"fontSize": 13,
|
||||
"fontWeight": "600",
|
||||
"marginBottom": 10,
|
||||
"marginTop": 25,
|
||||
"textTransform": "uppercase",
|
||||
},
|
||||
null,
|
||||
]
|
||||
}
|
||||
/>
|
||||
<Text
|
||||
style={
|
||||
Array [
|
||||
Object {
|
||||
"color": "#3d3c40",
|
||||
"fontSize": 15,
|
||||
},
|
||||
null,
|
||||
]
|
||||
}
|
||||
>
|
||||
test
|
||||
</Text>
|
||||
</View>
|
||||
<View>
|
||||
<Text
|
||||
style={
|
||||
Array [
|
||||
Object {
|
||||
"color": undefined,
|
||||
"fontSize": 13,
|
||||
"fontWeight": "600",
|
||||
"marginBottom": 10,
|
||||
"marginTop": 25,
|
||||
"textTransform": "uppercase",
|
||||
},
|
||||
null,
|
||||
]
|
||||
}
|
||||
/>
|
||||
<Text
|
||||
style={
|
||||
Array [
|
||||
Object {
|
||||
"color": "#3d3c40",
|
||||
"fontSize": 15,
|
||||
},
|
||||
null,
|
||||
]
|
||||
}
|
||||
>
|
||||
fake
|
||||
</Text>
|
||||
</View>
|
||||
<View>
|
||||
<Text
|
||||
style={
|
||||
|
|
|
|||
|
|
@ -291,8 +291,8 @@ export default class UserProfile extends PureComponent {
|
|||
|
||||
return (
|
||||
<View style={style.content}>
|
||||
{this.buildDisplayBlock('first_name')}
|
||||
{this.buildDisplayBlock('last_name')}
|
||||
{this.props.config.ShowFullName === 'true' && this.buildDisplayBlock('first_name')}
|
||||
{this.props.config.ShowFullName === 'true' && this.buildDisplayBlock('last_name')}
|
||||
{this.props.config.ShowEmailAddress === 'true' && this.buildDisplayBlock('email')}
|
||||
{this.buildDisplayBlock('nickname')}
|
||||
{this.buildDisplayBlock('position')}
|
||||
|
|
|
|||
Loading…
Reference in a new issue