fix: don't limit mod downloads to 10
This commit is contained in:
parent
9dc28bb679
commit
e7b5a8016e
1 changed files with 16 additions and 19 deletions
|
@ -76,25 +76,22 @@ const ModsPage: React.FC = async () => {
|
||||||
</TableRow>
|
</TableRow>
|
||||||
</TableHeader>
|
</TableHeader>
|
||||||
<TableBody>
|
<TableBody>
|
||||||
{downloads
|
{downloads.map((download) => (
|
||||||
.slice(0, 10)
|
<TableRow key={download._id}>
|
||||||
.reverse()
|
<TableCell className="font-medium">{download.date}</TableCell>
|
||||||
.map((download) => (
|
<TableCell>{download.fileName}</TableCell>
|
||||||
<TableRow key={download._id}>
|
<TableCell>{download.version}</TableCell>
|
||||||
<TableCell className="font-medium">{download.date}</TableCell>
|
<TableCell className="text-left">{download.fileSize}</TableCell>
|
||||||
<TableCell>{download.fileName}</TableCell>
|
<TableCell className="flex items-center justify-end">
|
||||||
<TableCell>{download.version}</TableCell>
|
<Link href={download.downloadLink}>
|
||||||
<TableCell className="text-left">{download.fileSize}</TableCell>
|
<Button variant={"ghost"} className="">
|
||||||
<TableCell className="flex items-center justify-end">
|
<Download className="w-4 h-4 mr-2" />
|
||||||
<Link href={download.downloadLink}>
|
Download
|
||||||
<Button variant={"ghost"} className="">
|
</Button>
|
||||||
<Download className="w-4 h-4 mr-2" />
|
</Link>
|
||||||
Download
|
</TableCell>
|
||||||
</Button>
|
</TableRow>
|
||||||
</Link>
|
))}
|
||||||
</TableCell>
|
|
||||||
</TableRow>
|
|
||||||
))}
|
|
||||||
</TableBody>
|
</TableBody>
|
||||||
</Table>
|
</Table>
|
||||||
</section>
|
</section>
|
||||||
|
|
Loading…
Reference in a new issue