fixed bug/issue: #11

This commit is contained in:
2025-09-03 13:14:30 +02:00
parent 16e1dca43c
commit 866f860d5a

View File

@@ -24,6 +24,7 @@ import Cookies from "js-cookie";
import { useState, useEffect } from "react"; import { useState, useEffect } from "react";
import { deleteItem } from "@/utils/userActions"; import { deleteItem } from "@/utils/userActions";
import AddItemForm from "./AddItemForm"; import AddItemForm from "./AddItemForm";
import { formatDateTime } from "@/utils/userFuncs";
type Items = { type Items = {
id: number; id: number;
@@ -232,7 +233,7 @@ const ItemTable: React.FC = () => {
</Tag.Root> </Tag.Root>
)} )}
</Table.Cell> </Table.Cell>
<Table.Cell>{item.entry_created_at}</Table.Cell> <Table.Cell>{formatDateTime(item.entry_created_at)}</Table.Cell>
<Table.Cell> <Table.Cell>
<Button <Button
onClick={() => onClick={() =>