status color

This commit is contained in:
efrilm 2025-09-13 03:05:45 +07:00
parent 222beb5043
commit e1084277e0

View File

@ -107,14 +107,16 @@ const DebouncedInput = ({
// Status color mapping
const getStatusColor = (status: string) => {
switch (status) {
case 'Draft':
case 'draft':
return 'secondary'
case 'Disetujui':
case 'approved':
return 'primary'
case 'Dikirim Sebagian':
case 'sent':
return 'warning'
case 'Selesai':
case 'received':
return 'success'
case 'cancelled':
return 'error'
default:
return 'default'
}