Refactor global currency to UAE standards (AED/Million) and update dummy data

This commit is contained in:
CycroftX
2026-02-15 18:49:13 +05:30
parent a493596ebe
commit 58fe801eab
10 changed files with 457 additions and 562 deletions

View File

@@ -4,3 +4,12 @@ import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
export const formatCurrency = (amount: number) => {
return new Intl.NumberFormat('en-AE', {
style: 'currency',
currency: 'AED',
minimumFractionDigits: 0,
maximumFractionDigits: 0,
}).format(amount);
};