We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3501050 + 57fc8b1 commit c4b10cbCopy full SHA for c4b10cb
src/Tile.tsx
@@ -5,7 +5,7 @@ import { assert } from "tsafe/assert";
5
import { symToStr } from "tsafe/symToStr";
6
7
import { fr } from "./fr";
8
-import { type RegisteredLinkProps, getLink } from "./link";
+import { getLink, type RegisteredLinkProps } from "./link";
9
import { cx } from "./tools/cx";
10
import { useAnalyticsId } from "./tools/useAnalyticsId";
11
@@ -132,7 +132,7 @@ export const Tile = memo(
132
noBackground && "fr-tile--no-background",
133
grey && "fr-tile--grey",
134
small && "fr-tile--sm",
135
- buttonProps && downloadButton && "fr-tile--download"
+ (buttonProps || linkProps) && downloadButton && "fr-tile--download"
136
),
137
classes.root,
138
className
0 commit comments