mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-08-04 09:37:42 +00:00
feat(agreements): implement agreement fetching and display with error handling
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 13m34s
All checks were successful
Build and Push Docker Images / Build and Push Docker Images (push) Successful in 13m34s
feat(agreement-card): create AgreementCard component for displaying user agreements fix(devices-table): update no devices message for clarity based on parental control fix(payments-table): update no payments message for consistency fix(topups-table): update no topups message for consistency feat(user): add agreement field to User interface
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
"use client";
|
||||
import { useAtom } from "jotai";
|
||||
import { CircleDollarSign, Loader2, Wallet2 } from "lucide-react";
|
||||
import millify from "millify";
|
||||
import { usePathname, useRouter } from "next/navigation";
|
||||
import { useState } from "react";
|
||||
import { toast } from "sonner";
|
||||
@ -40,10 +39,7 @@ export function Wallet({ walletBalance }: { walletBalance: number }) {
|
||||
<Drawer open={isOpen} onOpenChange={setIsOpen}>
|
||||
<DrawerTrigger asChild>
|
||||
<Button onClick={() => setIsOpen(!isOpen)} variant="outline">
|
||||
{millify(walletBalance, {
|
||||
precision: 2,
|
||||
lowercase: true,
|
||||
})}{" "}
|
||||
{walletBalance}{" "}
|
||||
MVR
|
||||
<Wallet2 />
|
||||
</Button>
|
||||
|
Reference in New Issue
Block a user