From 4ec8e32e875e04a468b6c73f2fd654a758c022cf Mon Sep 17 00:00:00 2001 From: sfiguere Date: Thu, 12 Dec 2024 23:19:14 -0500 Subject: [PATCH] [TA25277786] prettier fixes --- .../entity/shared/SidebarStyledComponents.tsx | 2 +- .../src/app/entity/user/UserInfoSideBar.tsx | 36 ++++++++++++------- .../src/app/entity/user/UserProfile.tsx | 4 +-- 3 files changed, 27 insertions(+), 15 deletions(-) diff --git a/datahub-web-react/src/app/entity/shared/SidebarStyledComponents.tsx b/datahub-web-react/src/app/entity/shared/SidebarStyledComponents.tsx index a1f2c10e2c052..8d66b17b0b8d7 100644 --- a/datahub-web-react/src/app/entity/shared/SidebarStyledComponents.tsx +++ b/datahub-web-react/src/app/entity/shared/SidebarStyledComponents.tsx @@ -70,7 +70,7 @@ export const UserDetails = styled.div` font-weight: 400; line-height: 28px; text-align: center; -` +`; export const TitleRole = styled.div` font-size: 14px; diff --git a/datahub-web-react/src/app/entity/user/UserInfoSideBar.tsx b/datahub-web-react/src/app/entity/user/UserInfoSideBar.tsx index fa9aaea2616d0..6edbb9c0cd108 100644 --- a/datahub-web-react/src/app/entity/user/UserInfoSideBar.tsx +++ b/datahub-web-react/src/app/entity/user/UserInfoSideBar.tsx @@ -21,7 +21,7 @@ import { Team, LocationSection, LocationSectionText, - UserDetails + UserDetails, } from '../shared/SidebarStyledComponents'; import EntityGroups from '../shared/EntityGroups'; import { mapRoleIcon } from '../../identity/user/UserUtils'; @@ -58,8 +58,22 @@ const AVATAR_STYLE = { marginTop: '14px' }; * UserInfoSideBar- Sidebar section for users profiles. */ export default function UserInfoSideBar({ sideBarData, refetch }: Props) { - const { name, aboutText, avatarName, email, groupsDetails, phone, photoUrl, role, slack, team, dataHubRoles, urn, countryCode, username } = - sideBarData; + const { + name, + aboutText, + avatarName, + email, + groupsDetails, + phone, + photoUrl, + role, + slack, + team, + dataHubRoles, + urn, + countryCode, + username, + } = sideBarData; const [updateCorpUserPropertiesMutation] = useUpdateCorpUserPropertiesMutation(); @@ -161,19 +175,17 @@ export default function UserInfoSideBar({ sideBarData, refetch }: Props) { - { countryCode ? ( + {countryCode ? ( - Location + Location
- - Manage Users   - {findCountryName(countryCode)} - + + Manage Users   + {findCountryName(countryCode)} +
- ): ( - null - )} + ) : null} About diff --git a/datahub-web-react/src/app/entity/user/UserProfile.tsx b/datahub-web-react/src/app/entity/user/UserProfile.tsx index ec8f053443c49..e9af4151cbd66 100644 --- a/datahub-web-react/src/app/entity/user/UserProfile.tsx +++ b/datahub-web-react/src/app/entity/user/UserProfile.tsx @@ -107,7 +107,7 @@ export default function UserProfile() { undefined, role: data?.corpUser?.editableProperties?.title || data?.corpUser?.info?.title || undefined, team: data?.corpUser?.editableProperties?.teams?.join(',') || data?.corpUser?.info?.departmentName || undefined, - countryCode: data?.corpUser?.info?.countryCode|| undefined, + countryCode: data?.corpUser?.info?.countryCode || undefined, email: data?.corpUser?.editableProperties?.email || data?.corpUser?.info?.email || undefined, slack: data?.corpUser?.editableProperties?.slack || undefined, phone: data?.corpUser?.editableProperties?.phone || undefined, @@ -115,7 +115,7 @@ export default function UserProfile() { groupsDetails: userGroups, dataHubRoles: userRoles, urn, - username: data?.corpUser?.username + username: data?.corpUser?.username, }; if (data?.corpUser?.exists === false) {