conditionally rendering the user email

Signed-off-by: AmbrishRamachandiran <ambrish.r@infosys.com>
This commit is contained in:
AmbrishRamachandiran
2023-08-25 12:45:21 +05:30
parent f9faeca0a6
commit ce77b23423
2 changed files with 10 additions and 3 deletions
+5
View File
@@ -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>