Skip to content

Commit

Permalink
Merge pull request #325 from carolineBda/carolineBda/Tile
Browse files Browse the repository at this point in the history
fix(Tile): show download icon on Tile With Download Link
  • Loading branch information
garronej authored Oct 15, 2024
2 parents 3501050 + 57fc8b1 commit c4b10cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Tile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { assert } from "tsafe/assert";
import { symToStr } from "tsafe/symToStr";

import { fr } from "./fr";
import { type RegisteredLinkProps, getLink } from "./link";
import { getLink, type RegisteredLinkProps } from "./link";
import { cx } from "./tools/cx";
import { useAnalyticsId } from "./tools/useAnalyticsId";

Expand Down Expand Up @@ -132,7 +132,7 @@ export const Tile = memo(
noBackground && "fr-tile--no-background",
grey && "fr-tile--grey",
small && "fr-tile--sm",
buttonProps && downloadButton && "fr-tile--download"
(buttonProps || linkProps) && downloadButton && "fr-tile--download"
),
classes.root,
className
Expand Down

0 comments on commit c4b10cb

Please sign in to comment.