update status manual jika ada cancel / waiting billing

This commit is contained in:
2025-07-18 09:59:27 +07:00
parent 05bed90598
commit 60f5f38ffe
3 changed files with 7 additions and 4 deletions

View File

@@ -190,7 +190,7 @@ export default function Detail() {
</Stack> */}
</Card>
</Grid>
{requestLog?.status == 'requested' ? (
{requestLog?.status == 'requested' || requestLog?.status == 'canceled' || requestLog?.status == 'waiting_billing' ? (
<Grid item xs={12} md={12}>
<Stack direction="row" padding={4} sx={{ justifyContent: 'space-between' }}>
<>

View File

@@ -380,6 +380,9 @@ export default function List() {
row.status == "canceled" ?
(<Label color='warning'> {capitalizeFirstLetter(row.status)}</Label>)
:
row.status == "waiting_billing" ?
(<Label color='info'> {capitalizeFirstLetter(row.status)}</Label>)
:
(<Label color='success'> {capitalizeFirstLetter(row.status)}</Label>)
}
</TableCell>