Skip to content

Commit 53b33b8

Browse files
committed
refactor: Updated currency formatter variable name from 'formatter' to 'dollarFormatter' for better clarity and consistency in formatter utility function
1 parent ed63b40 commit 53b33b8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/utils.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import { type ClassValue, clsx } from "clsx";
2-
import { twMerge } from "tailwind-merge";
1+
import { type ClassValue, clsx } from 'clsx';
2+
import { twMerge } from 'tailwind-merge';
33

44
export function cn(...inputs: ClassValue[]) {
55
return twMerge(clsx(inputs));
66
}
77

8-
export const rupeeFormatter = new Intl.NumberFormat("en-IN", {
9-
style: "currency",
10-
currency: "INR",
8+
export const rupeeFormatter = new Intl.NumberFormat('en-IN', {
9+
style: 'currency',
10+
currency: 'INR',
1111
});
1212

1313
// Create a currency formatter for US dollars (USD)
14-
export const formatter = new Intl.NumberFormat("en-US", {
15-
style: "currency", // Format the number as currency
16-
currency: "USD", // Use US dollars as the currency symbol
14+
export const dollarFormatter = new Intl.NumberFormat('en-US', {
15+
style: 'currency', // Format the number as currency
16+
currency: 'USD', // Use US dollars as the currency symbol
1717
});

0 commit comments

Comments
 (0)