status color
This commit is contained in:
parent
222beb5043
commit
e1084277e0
@ -107,14 +107,16 @@ const DebouncedInput = ({
|
|||||||
// Status color mapping
|
// Status color mapping
|
||||||
const getStatusColor = (status: string) => {
|
const getStatusColor = (status: string) => {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case 'Draft':
|
case 'draft':
|
||||||
return 'secondary'
|
return 'secondary'
|
||||||
case 'Disetujui':
|
case 'approved':
|
||||||
return 'primary'
|
return 'primary'
|
||||||
case 'Dikirim Sebagian':
|
case 'sent':
|
||||||
return 'warning'
|
return 'warning'
|
||||||
case 'Selesai':
|
case 'received':
|
||||||
return 'success'
|
return 'success'
|
||||||
|
case 'cancelled':
|
||||||
|
return 'error'
|
||||||
default:
|
default:
|
||||||
return 'default'
|
return 'default'
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user