1
1
import TwImage , { type ImageProps } from "next/image"
2
2
import type { ReactNode } from "react"
3
3
4
- import { BaseLink } from "@/components/Link"
5
- import { LinkBox } from "@/components/ui/link-box"
4
+ import { LinkBox , LinkOverlay } from "@/components/ui/link-box"
6
5
7
6
import { cn } from "@/lib/utils/cn"
8
7
import { MatomoEventOptions , trackCustomEvent } from "@/lib/utils/matomo"
9
8
import * as url from "@/lib/utils/url"
10
9
10
+ import { BaseLink } from "./ui/Link"
11
+
11
12
import { useRtlFlip } from "@/hooks/useRtlFlip"
12
13
13
14
export type CardProps = {
@@ -42,9 +43,9 @@ const Card = ({
42
43
return (
43
44
< div
44
45
className = { cn (
45
- "text-text flex flex-row items-center gap-4 border border-solid border-border p-4" ,
46
+ "text-text flex flex-row items-center gap-4 border p-4" ,
46
47
"transition-all duration-200" ,
47
- "hover:rounded-base hover: bg-tableBackgroundHover hover:shadow-[0_0_1px_var(--eth-colors-primary)] " ,
48
+ "hover:bg-background-highlight " ,
48
49
className
49
50
) }
50
51
onClick = { onClick }
@@ -53,14 +54,11 @@ const Card = ({
53
54
{ image && < TwImage src = { image } alt = { alt ?? "" } width = { imageWidth } /> }
54
55
< div className = "flex flex-1 basis-3/4 flex-col" >
55
56
{ isLink ? (
56
- < BaseLink
57
- href = { link }
58
- isExternal = { isExternal }
59
- hideArrow
60
- className = "text-text hover:no-underline"
61
- >
62
- { title }
63
- </ BaseLink >
57
+ < LinkOverlay asChild >
58
+ < BaseLink href = { link } hideArrow className = "text-body no-underline" >
59
+ { title }
60
+ </ BaseLink >
61
+ </ LinkOverlay >
64
62
) : (
65
63
< div > { title } </ div >
66
64
) }
0 commit comments