fix: remove Button components inside the Link components for the download buttons
Some checks failed
Deploy Next.js application / deploy (push) Failing after 10m9s

This commit is contained in:
Dorian Niemiec 2024-12-19 15:59:43 +01:00
parent 4819c119f1
commit b7be6a4504
2 changed files with 16 additions and 12 deletions

View file

@ -1,4 +1,4 @@
import { Button } from "@/components/ui/button";
import { Button, buttonVariants } from "@/components/ui/button";
import {
Table,
TableBody,
@ -81,11 +81,13 @@ const DownloadPage = async () => {
<TableCell className="text-left">{download.fileSize}</TableCell>
<TableCell className="flex items-center justify-end">
{download.downloadLink ? (
<Link href={download.downloadLink} download={true}>
<Button variant={"ghost"} className="">
<Link
href={download.downloadLink}
download={true}
className={`${buttonVariants({ variant: "ghost" })}`}
>
<Download className="w-4 h-4 mr-2" />
Download
</Button>
</Link>
) : (
<Button variant={"ghost"} disabled>

View file

@ -1,4 +1,4 @@
import { Button } from "@/components/ui/button";
import { buttonVariants } from "@/components/ui/button";
import {
Table,
TableBody,
@ -83,11 +83,13 @@ const ModsPage = async () => {
<TableCell>{download.version}</TableCell>
<TableCell className="text-left">{download.fileSize}</TableCell>
<TableCell className="flex items-center justify-end">
<Link href={download.downloadLink} download={true}>
<Button variant={"ghost"} className="">
<Link
href={download.downloadLink}
download={true}
className={`${buttonVariants({ variant: "ghost" })}`}
>
<Download className="w-4 h-4 mr-2" />
Download
</Button>
</Link>
</TableCell>
</TableRow>