Skip to content

Commit 6811876

Browse files
committed
fix: link
1 parent dfd5e74 commit 6811876

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/components/buttons/download-link.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
import { useI18n } from "@/lib/i18n";
44
import { cn } from "@/lib/utils";
55
import { ArrowDownToLineIcon } from "lucide-react";
6+
import Link from "next/link";
67

78
export default function DownloadLink({ className }: {
89
className?: string | string[]
910
}) {
1011
const { tw } = useI18n();
1112

1213
return (
13-
<a href="https://docs.rustfs.com" className={cn('group inline-flex items-center justify-center rounded-full py-3 px-6 text-sm font-semibold focus-visible:outline-2 focus-visible:outline-offset-2 bg-secondary text-secondary-foreground hover:bg-secondary/90 hover:text-secondary-foreground/90 active:bg-secondary/80 active:text-secondary-foreground/80 focus-visible:outline-secondary transition-colors', className)}>
14+
<Link href="/download" className={cn('group inline-flex items-center justify-center rounded-full py-3 px-6 text-sm font-semibold focus-visible:outline-2 focus-visible:outline-offset-2 bg-secondary text-secondary-foreground hover:bg-secondary/90 hover:text-secondary-foreground/90 active:bg-secondary/80 active:text-secondary-foreground/80 focus-visible:outline-secondary transition-colors', className)}>
1415
<span className="mr-2">{tw('前往下载', 'Download')}</span>
1516
<ArrowDownToLineIcon className="h-3 w-3 flex-none" strokeWidth={2.5} />
16-
</a>
17+
</Link>
1718
)
1819
}

0 commit comments

Comments
 (0)