Update page.tsx
This commit is contained in:
@@ -82,25 +82,6 @@ interface OrdersResponse {
|
|||||||
totalOrders: number;
|
totalOrders: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
const getStatusVariant = (status: string) => {
|
|
||||||
switch (status) {
|
|
||||||
case 'acknowledged':
|
|
||||||
return 'secondary';
|
|
||||||
case 'paid':
|
|
||||||
return 'default';
|
|
||||||
case 'shipped':
|
|
||||||
return 'default';
|
|
||||||
case 'completed':
|
|
||||||
return 'default';
|
|
||||||
case 'cancelled':
|
|
||||||
return 'destructive';
|
|
||||||
case 'unpaid':
|
|
||||||
return 'secondary';
|
|
||||||
default:
|
|
||||||
return 'secondary';
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const getStatusStyle = (status: string) => {
|
const getStatusStyle = (status: string) => {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case 'acknowledged':
|
case 'acknowledged':
|
||||||
|
|||||||
Reference in New Issue
Block a user