Skip to content

Commit

Permalink
[TA25277786] prettier fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sfiguere committed Dec 13, 2024
1 parent f943f9b commit 4ec8e32
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
36 changes: 24 additions & 12 deletions datahub-web-react/src/app/entity/user/UserInfoSideBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
Team,
LocationSection,
LocationSectionText,
UserDetails
UserDetails,
} from '../shared/SidebarStyledComponents';
import EntityGroups from '../shared/EntityGroups';
import { mapRoleIcon } from '../../identity/user/UserUtils';
Expand Down Expand Up @@ -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();

Expand Down Expand Up @@ -161,19 +175,17 @@ export default function UserInfoSideBar({ sideBarData, refetch }: Props) {
</Space>
</SocialDetails>
<Divider className="divider-aboutSection" />
{ countryCode ? (
{countryCode ? (
<LocationSection>
Location
Location
<br />
<LocationSectionText>
<img src={GlobeIcon} alt="Manage Users" style={{ display: 'inline' }} /> &nbsp;
{findCountryName(countryCode)}
</LocationSectionText>
<LocationSectionText>
<img src={GlobeIcon} alt="Manage Users" style={{ display: 'inline' }} /> &nbsp;
{findCountryName(countryCode)}
</LocationSectionText>
<Divider className="divider-aboutSection" />
</LocationSection>
): (
null
)}
) : null}
<AboutSection>
About
<AboutSectionText>
Expand Down
4 changes: 2 additions & 2 deletions datahub-web-react/src/app/entity/user/UserProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,15 +107,15 @@ 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,
aboutText: data?.corpUser?.editableProperties?.aboutMe || undefined,
groupsDetails: userGroups,
dataHubRoles: userRoles,
urn,
username: data?.corpUser?.username
username: data?.corpUser?.username,
};

if (data?.corpUser?.exists === false) {
Expand Down

0 comments on commit 4ec8e32

Please sign in to comment.