From 909cfe5736b2be9c55e26d629496bac9ba44a2c5 Mon Sep 17 00:00:00 2001
From: darth-coder00 <86726556+darth-coder00@users.noreply.github.com>
Date: Tue, 29 Mar 2022 23:18:36 +0530
Subject: [PATCH] Fix #3682: Replace remove icon for Users card on Teams page
(#3741)
---
openmetadata-ui/src/main/resources/ui/.prettierignore | 3 +++
.../GlossaryDetails/GlossaryDetails.component.tsx | 2 +-
.../common/entityPageInfo/EntityPageInfo.tsx | 2 +-
.../common/glossary-data-card/GlossaryDataCard.tsx | 2 +-
.../src/main/resources/ui/src/pages/teams/UserCard.tsx | 10 ++++------
.../src/main/resources/ui/src/utils/EntityUtils.tsx | 2 +-
6 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/openmetadata-ui/src/main/resources/ui/.prettierignore b/openmetadata-ui/src/main/resources/ui/.prettierignore
index a6ccd474516..0b38398e68f 100644
--- a/openmetadata-ui/src/main/resources/ui/.prettierignore
+++ b/openmetadata-ui/src/main/resources/ui/.prettierignore
@@ -22,6 +22,9 @@ dist/
# mockups
mock-api/
+# coverage
+src/test/unit/coverage
+
# Ignore files (Prettier has trouble parsing files without extension)
.gitignore
.prettierignore
diff --git a/openmetadata-ui/src/main/resources/ui/src/components/GlossaryDetails/GlossaryDetails.component.tsx b/openmetadata-ui/src/main/resources/ui/src/components/GlossaryDetails/GlossaryDetails.component.tsx
index 1ed6193b38c..ca09130613c 100644
--- a/openmetadata-ui/src/main/resources/ui/src/components/GlossaryDetails/GlossaryDetails.component.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/components/GlossaryDetails/GlossaryDetails.component.tsx
@@ -237,7 +237,7 @@ const GlossaryDetails = ({ isHasAccess, glossary, updateGlossary }: props) => {
)}
diff --git a/openmetadata-ui/src/main/resources/ui/src/components/common/entityPageInfo/EntityPageInfo.tsx b/openmetadata-ui/src/main/resources/ui/src/components/common/entityPageInfo/EntityPageInfo.tsx
index 6bbeb383bb4..7f852c15cb6 100644
--- a/openmetadata-ui/src/main/resources/ui/src/components/common/entityPageInfo/EntityPageInfo.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/components/common/entityPageInfo/EntityPageInfo.tsx
@@ -165,7 +165,7 @@ const EntityPageInfo = ({
{follower?.displayName || follower?.name}
diff --git a/openmetadata-ui/src/main/resources/ui/src/components/common/glossary-data-card/GlossaryDataCard.tsx b/openmetadata-ui/src/main/resources/ui/src/components/common/glossary-data-card/GlossaryDataCard.tsx
index 701d1676a79..23acfd28ad2 100644
--- a/openmetadata-ui/src/main/resources/ui/src/components/common/glossary-data-card/GlossaryDataCard.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/components/common/glossary-data-card/GlossaryDataCard.tsx
@@ -53,7 +53,7 @@ const GlossaryDataCard: FunctionComponent = ({
{owner && (
)}
{owner || 'No owner'}
diff --git a/openmetadata-ui/src/main/resources/ui/src/pages/teams/UserCard.tsx b/openmetadata-ui/src/main/resources/ui/src/pages/teams/UserCard.tsx
index ca13b4bb5ed..5b87b86ffcb 100644
--- a/openmetadata-ui/src/main/resources/ui/src/pages/teams/UserCard.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/pages/teams/UserCard.tsx
@@ -11,6 +11,7 @@
* limitations under the License.
*/
+import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import classNames from 'classnames';
import { capitalize } from 'lodash';
import React from 'react';
@@ -193,12 +194,9 @@ const UserCard = ({
})}
data-testid="remove"
onClick={() => onRemove?.(item.id as string)}>
-
diff --git a/openmetadata-ui/src/main/resources/ui/src/utils/EntityUtils.tsx b/openmetadata-ui/src/main/resources/ui/src/utils/EntityUtils.tsx
index 8cf8dd6cdfb..52b42f8a21e 100644
--- a/openmetadata-ui/src/main/resources/ui/src/utils/EntityUtils.tsx
+++ b/openmetadata-ui/src/main/resources/ui/src/utils/EntityUtils.tsx
@@ -394,7 +394,7 @@ export const getInfoElements = (data: ExtraInfo) => {
displayVal && displayVal !== '--' ? (
isString(displayVal) ? (
) : (
<>>