feat: update task-ta detail

This commit is contained in:
hanif salafi 2025-12-05 13:54:10 +07:00
parent a9e205b9f0
commit bff80d87cd
1 changed files with 8 additions and 6 deletions

View File

@ -146,14 +146,16 @@ interface AcceptanceData {
interface AcceptanceData {
id: number;
userLevelId: number;
userProfileId: number;
sentAt: string;
isAccept: boolean;
isSent: boolean;
userLevels: {
userProfiles: {
id: number;
name: string;
aliasName: string;
fullname: string;
userKeycloak: {
username: string;
}
};
}
@ -841,7 +843,7 @@ export default function FormTaskTaDetail() {
<thead>
<tr className="bg-gray-100 border-b">
<th className="px-4 py-2 text-left">Waktu</th>
<th className="px-4 py-2 text-left">Unit</th>
<th className="px-4 py-2 text-left">Tenaga Ahli</th>
<th className="px-4 py-2 text-left">Status</th>
</tr>
</thead>
@ -852,7 +854,7 @@ export default function FormTaskTaDetail() {
<td className="px-4 py-2">
{new Date(item.sentAt).toLocaleString()}
</td>
<td className="px-4 py-2">{item.userLevels.name}</td>
<td className="px-4 py-2">{item.userProfiles.fullname} <i>({item.userProfiles.userKeycloak.username})</i></td>
<td className="px-4 py-2">
{type === "terkirim" ? "Terkirim" : "Diterima"}
</td>