fix button detail

- fix admin table donasi
- fix admin event status on detail data
This commit is contained in:
2025-03-26 14:45:09 +08:00
parent a779278ba6
commit 0dcdfa6df3
9 changed files with 242 additions and 192 deletions

View File

@@ -35,7 +35,7 @@ export function AdminVoting_ComponentDetail({ data }: Props) {
{
title: "Status",
value: (
<Badge variant="light">{cekHari < 0 ? "Riwayat" : "Publish"}</Badge>
<Badge variant="light">{data.Voting_Status.name === "Publish" && cekHari < 0 ? "Riwayat" : data.Voting_Status.name}</Badge>
),
},
];