Refactor: Global Theme System and Finance Modules Redesign
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { motion } from 'framer-motion';
|
||||
import { cn } from '@/lib/utils';
|
||||
import { cn, formatAmount } from '@/lib/utils';
|
||||
import { DirhamIcon } from '@/components/ui/custom-icons';
|
||||
import React from 'react';
|
||||
|
||||
interface BudgetRingProps {
|
||||
@@ -53,7 +54,17 @@ export const BudgetRing = ({ spent, total, label, color = "text-primary", size =
|
||||
</div>
|
||||
<div className="mt-2 text-center">
|
||||
<p className="text-sm font-semibold text-slate-700">{label}</p>
|
||||
<p className="text-xs text-slate-400">₹{spent / 1000}k / ₹{total / 1000}k</p>
|
||||
<div className="flex items-center justify-center gap-1 text-xs text-slate-400">
|
||||
<div className="flex items-center gap-0.5">
|
||||
<DirhamIcon className="w-3 h-3" />
|
||||
{formatAmount(spent)}
|
||||
</div>
|
||||
<span>/</span>
|
||||
<div className="flex items-center gap-0.5">
|
||||
<DirhamIcon className="w-3 h-3" />
|
||||
{formatAmount(total)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user