Skip to content

Commit

Permalink
Adjust feed card pass href
Browse files Browse the repository at this point in the history
  • Loading branch information
JustMaier committed May 7, 2024
1 parent 7f05c93 commit a2ca139
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/Cards/FeedCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,20 @@ export const FeedCard = forwardRef<HTMLAnchorElement, Props>(
className={cx(classes.root, className)}
{...props}
component={href ? 'a' : undefined}
href={href}
ref={ref}
style={{ aspectRatio: stringRatio }}
>
{children}
</Card>
);

if (href)
card = (
<Link href={href} passHref>
{card}
</Link>
);

if (frameDecoration) {
card = (
<div className={classes.glow}>
Expand Down

0 comments on commit a2ca139

Please sign in to comment.