Skip to content

Commit c4b10cb

Browse files
authored
Merge pull request #325 from carolineBda/carolineBda/Tile
fix(Tile): show download icon on Tile With Download Link
2 parents 3501050 + 57fc8b1 commit c4b10cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Tile.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { assert } from "tsafe/assert";
55
import { symToStr } from "tsafe/symToStr";
66

77
import { fr } from "./fr";
8-
import { type RegisteredLinkProps, getLink } from "./link";
8+
import { getLink, type RegisteredLinkProps } from "./link";
99
import { cx } from "./tools/cx";
1010
import { useAnalyticsId } from "./tools/useAnalyticsId";
1111

@@ -132,7 +132,7 @@ export const Tile = memo(
132132
noBackground && "fr-tile--no-background",
133133
grey && "fr-tile--grey",
134134
small && "fr-tile--sm",
135-
buttonProps && downloadButton && "fr-tile--download"
135+
(buttonProps || linkProps) && downloadButton && "fr-tile--download"
136136
),
137137
classes.root,
138138
className

0 commit comments

Comments
 (0)