Merge pull request 'upd dashboard admin' (#49) from amalia/01-des-25 into main

Reviewed-on: http://wibugit.wibudev.com/wibu/jenna-mcp/pulls/49
This commit is contained in:
2025-12-01 14:19:25 +08:00
2 changed files with 12 additions and 9 deletions

View File

@@ -395,7 +395,17 @@ function DetailDataHistori({ data }: { data: any }) {
{
data?.map((item: any) => (
<Table.Tr key={item.id}>
<Table.Td style={{ whiteSpace: "nowrap" }}>{item.createdAt}</Table.Td>
<Table.Td style={{ whiteSpace: "nowrap" }}>
{
item.createdAt.toLocaleString("id-ID", {
day: "2-digit",
month: "short",
year: "numeric",
hour: "2-digit",
minute: "2-digit",
hour12: false
})
}</Table.Td>
<Table.Td>{item.deskripsi}</Table.Td>
<Table.Td>{item.status}</Table.Td>
<Table.Td style={{ whiteSpace: "nowrap" }}>{item.nameUser ? item.nameUser : "-"}</Table.Td>

View File

@@ -250,14 +250,7 @@ const PelayananRoute = new Elysia({
id: item.id,
deskripsi: item.deskripsi,
status: item.status,
createdAt: item.createdAt.toLocaleString("id-ID", {
day: "2-digit",
month: "short",
year: "numeric",
hour: "2-digit",
minute: "2-digit",
hour12: false
}),
createdAt: item.createdAt,
idUser: item.idUser,
nameUser: item.User?.name,
}