Skip to content

Commit 7fedad6

Browse files
authored
fix: use Link to render deployment name (#2111)
1 parent 55da6d7 commit 7fedad6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

apps/deploy-web/src/components/deployments/DeploymentListRow.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { useCallback, useMemo, useState } from "react";
44
import {
55
Badge,
66
Button,
7+
buttonVariants,
78
Checkbox,
89
CustomTooltip,
910
DropdownMenu,
@@ -13,12 +14,14 @@ import {
1314
TableCell,
1415
TableRow
1516
} from "@akashnetwork/ui/components";
17+
import { cn } from "@akashnetwork/ui/utils";
1618
import ClickAwayListener from "@mui/material/ClickAwayListener";
1719
import differenceInCalendarDays from "date-fns/differenceInCalendarDays";
1820
import formatDistanceToNow from "date-fns/formatDistanceToNow";
1921
import isValid from "date-fns/isValid";
2022
import { CalendarArrowDown, Coins, Edit, MoreHoriz, NavArrowRight, Plus, Upload, WarningTriangle, XmarkSquare } from "iconoir-react";
2123
import { keyBy } from "lodash";
24+
import Link from "next/link";
2225
import { useRouter } from "next/navigation";
2326

2427
import { useWallet } from "@src/context/WalletProvider";
@@ -177,9 +180,9 @@ export const DeploymentListRow: React.FunctionComponent<Props> = ({ deployment,
177180
</div>
178181
</TableCell>
179182
<TableCell className="max-w-[100px] text-center">
180-
<a href={UrlService.deploymentDetails(deployment.dseq)} className="text-black">
183+
<Link className={cn(buttonVariants({ variant: "text" }))} href={UrlService.deploymentDetails(deployment.dseq)}>
181184
<DeploymentName deployment={deployment} deploymentServices={leaseStatus?.services} providerHostUri={provider?.hostUri} />
182-
</a>
185+
</Link>
183186

184187
{!isAnonymousFreeTrialEnabled && isTrialing && (
185188
<div className="mt-2">

0 commit comments

Comments
 (0)