Skip to content

Commit

Permalink
fixing jump to top of page and adding cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
TalBenAvi committed May 7, 2024
1 parent 507d35c commit a9913ff
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions workspaces/website/src/components/Card/ImageIconCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,13 @@ export const ImageIconCard = ({
const isVariantCommunityOrNewsLetterCard =
variant === "community_card" || variant === "newsletter_card";
return (
<LinkBox sx={{ textDecoration: "none!important" }} onClick={onClick}>
<LinkBox
sx={{
textDecoration: "none!important",
cursor: variant === "newsletter_card" ? "pointer" : "unset",
}}
onClick={onClick}
>
<CardGradientBorder
padding="0"
borderRadius={{
Expand Down Expand Up @@ -280,7 +286,7 @@ export const ImageIconCard = ({
</Text>
)}
{link && variant === "newsletter_card" && (
<ButtonGroup spacing="2">
<ButtonGroup spacing="2" onClick={(e) => e.preventDefault()}>
<Button href={href} variant={buttonVariant}>
{label} &rarr;
</Button>
Expand Down

0 comments on commit a9913ff

Please sign in to comment.