Update EnhancedMetricCard.tsx
This commit is contained in:
@@ -9,7 +9,7 @@ export interface MetricCardProps {
|
|||||||
subtitle?: string;
|
subtitle?: string;
|
||||||
trend?: number; // Positive or negative trend value
|
trend?: number; // Positive or negative trend value
|
||||||
icon: ReactNode;
|
icon: ReactNode;
|
||||||
accentColor: "blue" | "green" | "orange" | "purple" | "red";
|
accentColor: "blue" | "green" | "orange" | "purple" | "red" | "success";
|
||||||
href?: string;
|
href?: string;
|
||||||
onClick?: () => void;
|
onClick?: () => void;
|
||||||
tooltip?: string | ReactNode; // Enhanced tooltip content
|
tooltip?: string | ReactNode; // Enhanced tooltip content
|
||||||
@@ -48,6 +48,12 @@ const accentColors = {
|
|||||||
border: "bg-error-500",
|
border: "bg-error-500",
|
||||||
icon: "text-error-500",
|
icon: "text-error-500",
|
||||||
},
|
},
|
||||||
|
success: {
|
||||||
|
bg: "bg-green-50 dark:bg-green-500/10",
|
||||||
|
hover: "hover:bg-green-100 dark:hover:bg-green-500/20",
|
||||||
|
border: "bg-success-500",
|
||||||
|
icon: "text-success-500",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function EnhancedMetricCard({
|
export default function EnhancedMetricCard({
|
||||||
|
|||||||
Reference in New Issue
Block a user