Skip to content

Commit

Permalink
fix(summarycard): remove unneeded wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
cooper-joe committed Nov 29, 2023
1 parent b938394 commit 72289c7
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions src/pages/overview/card/SummaryCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,17 @@ export const SummaryCard = ({
}: SummaryCardProps) => {
const title = section.title
return (
<div data-test={`card-${title}`}>
<div className={styles.cardWrapper}>
<Link
className={styles.cardTopLink}
to={`/${getSectionPath(section)}`}
>
<div className={styles.cardTop}>
<SummaryCardHeader>{title}</SummaryCardHeader>
<SummaryCardContent>{children}</SummaryCardContent>
</div>
</Link>
<SummaryCardActions section={section} />
</div>
<div data-test={`card-${title}`} className={styles.cardWrapper}>
<Link
className={styles.cardTopLink}
to={`/${getSectionPath(section)}`}
>
<div className={styles.cardTop}>
<SummaryCardHeader>{title}</SummaryCardHeader>
<SummaryCardContent>{children}</SummaryCardContent>
</div>
</Link>
<SummaryCardActions section={section} />
</div>
)
}
Expand Down

0 comments on commit 72289c7

Please sign in to comment.