chore: update package.json to add millify dependency and remove unnecessary newline
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 9m3s

This commit is contained in:
2025-04-20 12:03:52 +05:00
parent 6a078d918e
commit f7122cb252
4 changed files with 8242 additions and 8070 deletions

View File

@ -1,5 +1,4 @@
"use client";
import { Button } from "@/components/ui/button";
import {
Drawer,
@ -15,6 +14,7 @@ import { WalletDrawerOpenAtom, walletTopUpValue } from "@/lib/atoms";
import type { TopupType } from "@/lib/types";
import { useAtom } from "jotai";
import { CircleDollarSign, Loader2, Wallet2 } from "lucide-react";
import millify from "millify";
import { useSession } from "next-auth/react";
import { usePathname } from "next/navigation";
import { useState } from "react";
@ -46,10 +46,10 @@ export function Wallet({
<Drawer open={isOpen} onOpenChange={setIsOpen}>
<DrawerTrigger asChild>
<Button onClick={() => setIsOpen(!isOpen)} variant="outline">
{new Intl.NumberFormat("en-US", {
minimumFractionDigits: 2,
maximumFractionDigits: 2,
}).format(walletBalance)}{" "}
{millify(walletBalance, {
precision: 2,
lowercase: true,
})}{" "}
MVR
<Wallet2 />
</Button>