fix: remove Button components inside the Link components for the download buttons
Some checks failed
Deploy Next.js application / deploy (push) Failing after 10m9s
Some checks failed
Deploy Next.js application / deploy (push) Failing after 10m9s
This commit is contained in:
parent
4819c119f1
commit
b7be6a4504
2 changed files with 16 additions and 12 deletions
|
@ -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="">
|
||||
<Download className="w-4 h-4 mr-2" />
|
||||
Download
|
||||
</Button>
|
||||
<Link
|
||||
href={download.downloadLink}
|
||||
download={true}
|
||||
className={`${buttonVariants({ variant: "ghost" })}`}
|
||||
>
|
||||
<Download className="w-4 h-4 mr-2" />
|
||||
Download
|
||||
</Link>
|
||||
) : (
|
||||
<Button variant={"ghost"} disabled>
|
||||
|
|
|
@ -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="">
|
||||
<Download className="w-4 h-4 mr-2" />
|
||||
Download
|
||||
</Button>
|
||||
<Link
|
||||
href={download.downloadLink}
|
||||
download={true}
|
||||
className={`${buttonVariants({ variant: "ghost" })}`}
|
||||
>
|
||||
<Download className="w-4 h-4 mr-2" />
|
||||
Download
|
||||
</Link>
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
|
|
Loading…
Reference in a new issue