Skip to content

Commit d9aadbd

Browse files
committedNov 10, 2021
feat: Do not display AppLinkCard icon for GeoCard

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed
 

‎packages/cozy-harvest-lib/src/components/KonnectorConfiguration/DataTab/appLinksProps.jsx

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const appLinksProps = {
1919
}),
2020
coachco2: () => ({
2121
slug: 'coachco2',
22-
icon: 'location',
2322
iconColor: 'brightSun'
2423
})
2524
}

‎packages/cozy-harvest-lib/src/components/cards/AppLinkCard.jsx

+9-7
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,15 @@ const AppLinkCard = ({ slug, path, icon, iconColor }) => {
6060
<Card>
6161
<Stack>
6262
<Typography variant="h6" gutterBottom>
63-
<Circle
64-
size="small"
65-
backgroundColor={palette[iconColor]}
66-
className="u-mr-half"
67-
>
68-
<Icon icon={icon} color={palette['white']} />
69-
</Circle>
63+
{icon ? (
64+
<Circle
65+
size="small"
66+
backgroundColor={palette[iconColor]}
67+
className="u-mr-half"
68+
>
69+
<Icon icon={icon} color={palette['white']} />
70+
</Circle>
71+
) : null}
7072
{t(`card.appLink.${slug}.title`)}
7173
</Typography>
7274
<Typography variant="body1">

0 commit comments

Comments
 (0)
Please sign in to comment.