fix: add dark prop to OrderStatus component
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
interface OrderStatusProps {
|
interface OrderStatusProps {
|
||||||
status: string;
|
status: string;
|
||||||
onBack: () => void;
|
onBack: () => void;
|
||||||
|
dark?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
const STATUS_CONFIG: Record<string, { label: string; color: string; icon: string; message: string }> = {
|
const STATUS_CONFIG: Record<string, { label: string; color: string; icon: string; message: string }> = {
|
||||||
@@ -44,7 +45,7 @@ const STATUS_CONFIG: Record<string, { label: string; color: string; icon: string
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function OrderStatus({ status, onBack }: OrderStatusProps) {
|
export default function OrderStatus({ status, onBack, dark = false }: OrderStatusProps) {
|
||||||
const config = STATUS_CONFIG[status] || {
|
const config = STATUS_CONFIG[status] || {
|
||||||
label: status,
|
label: status,
|
||||||
color: 'text-gray-600',
|
color: 'text-gray-600',
|
||||||
|
|||||||
Reference in New Issue
Block a user