upd dashboard admin
Deskripsi: - update api detail pengajuan surat - table detail history jam pengajuan surat No Issues
This commit is contained in:
@@ -395,7 +395,17 @@ function DetailDataHistori({ data }: { data: any }) {
|
|||||||
{
|
{
|
||||||
data?.map((item: any) => (
|
data?.map((item: any) => (
|
||||||
<Table.Tr key={item.id}>
|
<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.deskripsi}</Table.Td>
|
||||||
<Table.Td>{item.status}</Table.Td>
|
<Table.Td>{item.status}</Table.Td>
|
||||||
<Table.Td style={{ whiteSpace: "nowrap" }}>{item.nameUser ? item.nameUser : "-"}</Table.Td>
|
<Table.Td style={{ whiteSpace: "nowrap" }}>{item.nameUser ? item.nameUser : "-"}</Table.Td>
|
||||||
|
|||||||
@@ -250,14 +250,7 @@ const PelayananRoute = new Elysia({
|
|||||||
id: item.id,
|
id: item.id,
|
||||||
deskripsi: item.deskripsi,
|
deskripsi: item.deskripsi,
|
||||||
status: item.status,
|
status: item.status,
|
||||||
createdAt: item.createdAt.toLocaleString("id-ID", {
|
createdAt: item.createdAt,
|
||||||
day: "2-digit",
|
|
||||||
month: "short",
|
|
||||||
year: "numeric",
|
|
||||||
hour: "2-digit",
|
|
||||||
minute: "2-digit",
|
|
||||||
hour12: false
|
|
||||||
}),
|
|
||||||
idUser: item.idUser,
|
idUser: item.idUser,
|
||||||
nameUser: item.User?.name,
|
nameUser: item.User?.name,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user