updated admin logs // table sorted in reversed
This commit is contained in:
parent
ffe93a3257
commit
31e840c88e
1 changed files with 21 additions and 16 deletions
|
@ -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"}
|
||||||
|
|
Loading…
Reference in a new issue