mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-07-01 21:28:23 +00:00
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
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 9m3s
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user