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:
i701 2025-04-20 12:03:52 +05:00
parent 6a078d918e
commit f7122cb252
4 changed files with 8242 additions and 8070 deletions

View File

@ -37,12 +37,6 @@ export async function ApplicationLayout({
<div className="flex items-center gap-2 "> <div className="flex items-center gap-2 ">
<SidebarTrigger className="-ml-1" /> <SidebarTrigger className="-ml-1" />
<Separator orientation="vertical" className="mr-2 h-4" /> <Separator orientation="vertical" className="mr-2 h-4" />
<div className="text-xs font-mono px-2 p-1 rounded-md bg-green-500/10 text-green-900 dark:text-green-400">
Welcome,{" "}
<span className="font-semibold">
{session?.user?.first_name} {session?.user?.last_name}
</span>
</div>
</div> </div>
<div className="flex items-center gap-2"> <div className="flex items-center gap-2">
@ -51,6 +45,12 @@ export async function ApplicationLayout({
<AccountPopover /> <AccountPopover />
</div> </div>
</header> </header>
<div className="text-sm font-mono px-2 p-1 bg-green-500/10 text-green-900 dark:text-green-400">
Logged in as,{" "}
<span className="font-semibold">
{session?.user?.first_name} {session?.user?.last_name}
</span>
</div>
<div className="p-4 flex flex-col flex-1">{children}</div> <div className="p-4 flex flex-col flex-1">{children}</div>
</SidebarInset> </SidebarInset>
</SidebarProvider> </SidebarProvider>

View File

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

16288
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -8,7 +8,6 @@
"start": "next start", "start": "next start",
"lint": "next lint" "lint": "next lint"
}, },
"dependencies": { "dependencies": {
"@faker-js/faker": "^9.3.0", "@faker-js/faker": "^9.3.0",
"@hookform/resolvers": "^3.9.1", "@hookform/resolvers": "^3.9.1",
@ -32,6 +31,7 @@
"date-fns": "^4.1.0", "date-fns": "^4.1.0",
"jotai": "2.8.0", "jotai": "2.8.0",
"lucide-react": "^0.460.0", "lucide-react": "^0.460.0",
"millify": "^6.1.0",
"moment": "^2.30.1", "moment": "^2.30.1",
"motion": "^11.15.0", "motion": "^11.15.0",
"next": "15.3.0", "next": "15.3.0",