Skip to content

Commit

Permalink
Merge pull request #172 from ConductionNL/feature/OP-154/downloadCard
Browse files Browse the repository at this point in the history
feature/OP-154/downloadCard
  • Loading branch information
remko48 authored Dec 5, 2023
2 parents d8cbc00 + 2c584f3 commit 4c71379
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

- **Version 2.2 (breaking changes from 2.1.x)**

- 2.2.40: Removed tooltip from PrimaryTopNav component and updated dropdown.
- 2.2.40:
- Updated DownloadCard to only accept fontawesome icons.
- Removed tooltip from PrimaryTopNav component and updated dropdown.
- 2.2.39:
- Updated PrimaryTopNav component to include tooltip and better dropdown.
- Updated Logo component to have navbar option.
Expand Down
5 changes: 3 additions & 2 deletions src/components/card/downloadCard/DownloadCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import clsx from "clsx";
import { Heading3, Link } from "@utrecht/component-library-react/dist/css-module";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import {
IconDefinition,
faDatabase,
faDownload,
faFileAudio,
Expand All @@ -24,7 +25,7 @@ interface DownloadCardProps {
id: string;
tooltip: string;
};
icon?: JSX.Element;
icon?: IconDefinition;
layoutClassName?: string;
handleClick: () => any;
}
Expand Down Expand Up @@ -79,7 +80,7 @@ export const DownloadCard = ({

return (
<div className={clsx(styles.container, [layoutClassName && layoutClassName])}>
<div className={styles.icon}>{icon ?? <FontAwesomeIcon icon={getIconFromType(type)} />}</div>
<div className={styles.icon}>{<FontAwesomeIcon icon={icon ?? getIconFromType(type)} />}</div>
<div className={styles.content}>
<Heading3
data-tooltip-id={labelTooltip && labelTooltip.id}
Expand Down

0 comments on commit 4c71379

Please sign in to comment.