From ce77b23423cb879f17f7779e754d1efc504ea129 Mon Sep 17 00:00:00 2001 From: AmbrishRamachandiran Date: Fri, 25 Aug 2023 12:45:21 +0530 Subject: [PATCH] conditionally rendering the user email Signed-off-by: AmbrishRamachandiran --- .changeset/khaki-spiders-sniff.md | 5 +++++ .../src/components/General/UserSettingsProfileCard.tsx | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 .changeset/khaki-spiders-sniff.md diff --git a/.changeset/khaki-spiders-sniff.md b/.changeset/khaki-spiders-sniff.md new file mode 100644 index 0000000000..53798a6cf0 --- /dev/null +++ b/.changeset/khaki-spiders-sniff.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-user-settings': patch +--- + +conditionally rendering the user email in user profile card diff --git a/plugins/user-settings/src/components/General/UserSettingsProfileCard.tsx b/plugins/user-settings/src/components/General/UserSettingsProfileCard.tsx index 3c49121cfc..c96d2bb21e 100644 --- a/plugins/user-settings/src/components/General/UserSettingsProfileCard.tsx +++ b/plugins/user-settings/src/components/General/UserSettingsProfileCard.tsx @@ -37,9 +37,11 @@ export const UserSettingsProfileCard = () => { {displayName} - - {profile.email} - + {profile.email && ( + + {profile.email} + + )}