Skip to content

Commit

Permalink
fix: link for latest sales (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
remiroyc authored Oct 14, 2024
1 parent c4e4efc commit b0fcac4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
11 changes: 8 additions & 3 deletions apps/arkmarket/src/app/components/latest-sales.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,14 @@ export default function LatestSales() {
width={112}
/>
<div className="overflow-hidden whitespace-nowrap">
<p className="overflow-hidden text-ellipsis text-base font-medium text-foreground">
{sale.metadata?.name ?? "Unknown"}
</p>
<Link
href={`/token/${sale.collection_address}/${sale.token_id}`}
className="flex items-center gap-1 transition-colors hover:text-primary"
>
<p className="overflow-hidden text-ellipsis text-base font-medium text-foreground">
{sale.metadata?.name ?? "Unknown"}
</p>
</Link>
<Link
href={`/collection/${sale.collection_address}`}
className="flex items-center gap-1 transition-colors hover:text-primary"
Expand Down
1 change: 1 addition & 0 deletions apps/arkmarket/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ export interface Filters {
export interface LatestSales {
collection_address: string;
collection_name: string;
token_id: string;
from: string;
metadata: TokenMetadata | null;
price: string;
Expand Down

0 comments on commit b0fcac4

Please sign in to comment.