conditionally rendering the user email
Signed-off-by: AmbrishRamachandiran <ambrish.r@infosys.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-user-settings': patch
|
||||
---
|
||||
|
||||
conditionally rendering the user email in user profile card
|
||||
@@ -37,9 +37,11 @@ export const UserSettingsProfileCard = () => {
|
||||
<Typography variant="subtitle1" gutterBottom>
|
||||
{displayName}
|
||||
</Typography>
|
||||
<Typography variant="body2" color="textSecondary">
|
||||
{profile.email}
|
||||
</Typography>
|
||||
{profile.email && (
|
||||
<Typography variant="body2" color="textSecondary">
|
||||
{profile.email}
|
||||
</Typography>
|
||||
)}
|
||||
</Grid>
|
||||
</Grid>
|
||||
<Grid item>
|
||||
|
||||
Reference in New Issue
Block a user