updated admin logs // table sorted in reversed

This commit is contained in:
Cypro Freelance 2024-07-17 22:46:21 +05:30
parent ffe93a3257
commit 31e840c88e

View file

@ -208,12 +208,17 @@ const AdminLogPage = () => {
</TableRow> </TableRow>
</TableHeader> </TableHeader>
<TableBody> <TableBody>
{logs.map((log) => ( {logs
.slice()
.reverse()
.map((log) => (
<TableRow key={log._id}> <TableRow key={log._id}>
<TableCell className="border-b px-4 py-2"> <TableCell className="border-b px-4 py-2">
{log.version} {log.version}
</TableCell> </TableCell>
<TableCell className="border-b px-4 py-2">{log.date}</TableCell> <TableCell className="border-b px-4 py-2">
{log.date}
</TableCell>
<TableCell className="border-b px-4 py-2"> <TableCell className="border-b px-4 py-2">
<Button <Button
variant={"destructive"} variant={"destructive"}