From c1467dae0da9d4544ca8990360c8ddd7e9dd505a Mon Sep 17 00:00:00 2001 From: Deepali Jain Date: Wed, 18 Dec 2024 13:02:28 +0530 Subject: [PATCH] Lint fix --- .../containers/profile/sidebar/Ownership/EditOwnersModal.tsx | 3 +-- datahub-web-react/src/app/shared/OwnerLabel.tsx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/datahub-web-react/src/app/entity/shared/containers/profile/sidebar/Ownership/EditOwnersModal.tsx b/datahub-web-react/src/app/entity/shared/containers/profile/sidebar/Ownership/EditOwnersModal.tsx index b9cc49fcf3e777..e57666471df1a6 100644 --- a/datahub-web-react/src/app/entity/shared/containers/profile/sidebar/Ownership/EditOwnersModal.tsx +++ b/datahub-web-react/src/app/entity/shared/containers/profile/sidebar/Ownership/EditOwnersModal.tsx @@ -78,13 +78,12 @@ export const EditOwnersModal = ({ const renderSearchResult = (entity: Entity) => { const avatarUrl = (entity.type === EntityType.CorpUser && (entity as CorpUser).editableProperties?.pictureLink) || undefined; - const isCorpUser = (entity.type as EntityType) === EntityType.CorpUser; const corpUserDepartmentName = (entity.type === EntityType.CorpUser && (entity as CorpUser).properties?.departmentName) || ''; const corpUserId = (entity.type === EntityType.CorpUser && (entity as CorpUser).username) || ''; const corpUserTitle = (entity.type === EntityType.CorpUser && (entity as CorpUser).properties?.title) || ''; const displayName = entityRegistry.getDisplayName(entity.type, entity); - + return ( { +export const OwnerLabel = ({ name, avatarUrl, type, corpUserId, corpUserTitle, corpUserDepartmentName }: Props) => { const subHeader = [corpUserId, corpUserTitle, corpUserDepartmentName].filter(Boolean).join(' - '); return (