loan repay API added

This commit is contained in:
victorAnumudu
2025-03-04 19:12:19 +01:00
parent 0064f5e4c3
commit eab8745468
5 changed files with 54 additions and 53 deletions
+15 -15
View File
@@ -2,15 +2,15 @@
import { useQuery } from "@tanstack/react-query";
import { useNavigate } from 'react-router-dom'
import { CiPhone } from "react-icons/ci"
import { CiBank } from "react-icons/ci";
import { MdOutlineEmail } from "react-icons/md"
import { FaMapPin } from "react-icons/fa";
import { BsCash } from "react-icons/bs";
import { MdUpdate } from "react-icons/md"
import { FaUser, FaMapPin } from "react-icons/fa";
import { demoUsersList } from "../services/siteServices"
import queryKeys from "../services/queryKeys"
import myLinks from "../myLinks";
import TableWrapper from "./TableWrapper";
import formatNumber from "../helpers/formatNumber";
export default function HomeCom() {
@@ -56,27 +56,27 @@ export default function HomeCom() {
<div className="card-body flex flex-col gap-2">
<div className="contact text-slate-700 flex gap-2 items-center">
<span className="min-w-[30px] min-h-[30px] max-w-[30px] max-h-[30px] rounded-full flex flex-col justify-center items-center bg-slate-100/90 text-slate-700">
<CiBank />
<FaUser />
</span>
<span>{user.bvn}</span>
<span>{user.accountid}</span>
</div>
<div className="contact text-slate-700 flex gap-3 items-center">
<span className="min-w-[30px] min-h-[30px] max-w-[30px] max-h-[30px] rounded-full flex flex-col justify-center items-center bg-slate-100/90 text-slate-700">
<CiPhone />
<BsCash />
</span>
<span>{user.mobile}</span>
</div>
<div className="contact text-slate-700 flex gap-3 items-center">
<span className="min-w-[30px] min-h-[30px] max-w-[30px] max-h-[30px] rounded-full flex flex-col justify-center items-center bg-slate-100/90 text-slate-700">
<MdOutlineEmail />
</span>
<span className="break-words">{user.email}</span>
<span>{formatNumber(user.balance)}</span>
</div>
<div className="contact text-slate-700 flex gap-3 items-center">
<span className="min-w-[30px] min-h-[30px] max-w-[30px] max-h-[30px] rounded-full flex flex-col justify-center items-center bg-slate-100/90 text-slate-700">
<FaMapPin />
</span>
<span>{user.pin}</span>
<span className="break-words">{user.pin}</span>
</div>
<div className="contact text-slate-700 flex gap-3 items-center">
<span className="min-w-[30px] min-h-[30px] max-w-[30px] max-h-[30px] rounded-full flex flex-col justify-center items-center bg-slate-100/90 text-slate-700">
<MdUpdate />
</span>
<span>{user.updated}</span>
</div>
</div>
</div>