diff --git a/src/app/markets/components/TokenCard.tsx b/src/app/markets/components/TokenCard.tsx index 8b530cc..53287cb 100644 --- a/src/app/markets/components/TokenCard.tsx +++ b/src/app/markets/components/TokenCard.tsx @@ -1,10 +1,5 @@ import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; -import { - Tooltip, - TooltipContent, - TooltipTrigger, -} from "@/components/ui/tooltip"; import MinimalTooltip from "@/components/utils/MinimalTooltip"; import { humanizeNumber } from "@/lib/renderUtils"; import { cn } from "@/lib/utils"; @@ -40,7 +35,10 @@ export default function TokenCard({ token }: { token: Token }) { return (
{ if (e.ctrlKey || e.metaKey) { window.open(`/token/${token.mint}`, "_blank", "noopener,noreferrer"); @@ -52,114 +50,130 @@ export default function TokenCard({ token }: { token: Token }) { window.open(`/token/${token.mint}`, "_blank", "noopener,noreferrer") } > -
- {token.logoURI ? ( - Token - ) : ( -
- + {/* Left: logo */} +
+
+ {token.logoURI ? ( + Token + ) : ( +
+ +
+ )} +
+ + {/* Main content */} +
+ {/* Symbol + name */} +
+

{token.symbol}

+

{ + e.preventDefault(); + e.stopPropagation(); + navigator.clipboard.writeText(token.mint); + }} + > + {token.name} + +

- )} -

-
-
-
-

{token.symbol}

-

{ - e.preventDefault(); - e.stopPropagation(); - navigator.clipboard.writeText(token.mint); - }} - > - {token.name} -

-
-
-

20m

- -

- - 10 -

-
- -

- - 10 -

-
-
-
- {token.twitterPost ? ( - <> - + + {/* Stats */} +
+

20m

+ + +

+ + 10 +

+
+ + +

+ + 10 +

+
+
+ + {/* Twitter */} +
+ {token.twitterPost ? ( + <> { - e.stopPropagation(); - }} + onClick={(e) => e.stopPropagation()} > by @{token.twitterPost.author?.username} - - +

{humanizeNumber(token.twitterPost.author?.followers)}

-
- - ) : ( - by @username - )} -
-
- - - + + ) : ( + by @username + )} +
- - - + {/* Badges */} +
+ + + - - - + + + - - - + + + - - - + + + + + + + +
-
- - - - + {/* Right column */} +
+
+ - +