Sign up reports

This commit is contained in:
2026-05-02 08:52:27 -04:00
parent 21a43b9c21
commit 39c99f68bc
4 changed files with 19 additions and 13 deletions
@@ -86,6 +86,7 @@ export default function RecentPaymentsBar({
<Link <Link
to={item.url} to={item.url}
key={index} key={index}
target="_blank"
className="flex gap-3 items-center" className="flex gap-3 items-center"
> >
<div className="px-4 py-2 bg-[#0E172E] rounded-md"> <div className="px-4 py-2 bg-[#0E172E] rounded-md">
@@ -5,7 +5,7 @@ import queryKeys from "../../services/queryKeys";
import BreadcrumbCom from "../breadcrumb/BreadcrumbCom"; import BreadcrumbCom from "../breadcrumb/BreadcrumbCom";
import TablePaginatedWrapper from "../tableWrapper/TablePaginatedWrapper"; import TablePaginatedWrapper from "../tableWrapper/TablePaginatedWrapper";
import Icons from "../Icons"; import Icons from "../Icons";
import { getRecentSignup } from "../../services/siteServices"; import { getRecentAccount } from "../../services/siteServices";
import getDateTimeFromDateString from "../../helpers/getDateTimeFromDateString"; import getDateTimeFromDateString from "../../helpers/getDateTimeFromDateString";
import {Link} from 'react-router-dom'; import {Link} from 'react-router-dom';
@@ -40,7 +40,7 @@ export default function RecentAccounts() {
page, page,
...filterData, ...filterData,
}; };
return getRecentSignup(reqData); return getRecentAccount(reqData);
}, },
staleTime: 0, //0 mins staleTime: 0, //0 mins
}); });
+11 -11
View File
@@ -51,7 +51,7 @@ export default function RecentSignup() {
return ( return (
<div className="w-full flex flex-col gap-8"> <div className="w-full flex flex-col gap-8">
<BreadcrumbCom <BreadcrumbCom
title="Recent Signup" title="Signup Started Report"
paths={["Dashboard", "Recent Acc"]} paths={["Dashboard", "Recent Acc"]}
/> />
@@ -106,20 +106,20 @@ export default function RecentSignup() {
<thead className="py-2 text-sm text-slate-500 text-left"> <thead className="py-2 text-sm text-slate-500 text-left">
<tr> <tr>
<th scope="col" className="px-2 py-2"> <th scope="col" className="px-2 py-2">
Added Signup Stareted Added
</th> </th>
<th scope="col" className="px-2"> <th scope="col" className="px-2">
User Name /Email Email
</th> </th>
<th scope="col" className="px-2 text-right"> <th scope="col" className="px-2 text-right">
Name Name
</th> </th>
<th scope="col" className="px-2 text-right"> <th scope="col" className="px-2 text-right">
Country Status
</th> </th>
<th scope="col" className="px-2 text-right"> {/* <th scope="col" className="px-2 text-right">
Action Action
</th> </th> */}
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@@ -140,9 +140,9 @@ export default function RecentSignup() {
</td> </td>
<td className="px-2"> <td className="px-2">
<div className="text-left"> <div className="text-left">
<div className="text-base font-semibold"> {/* <div className="text-base font-semibold">
{item?.username} {item?.username}
</div> </div> */}
<div className="text-base font-semibold"> <div className="text-base font-semibold">
{item?.email} {item?.email}
</div> </div>
@@ -159,12 +159,12 @@ export default function RecentSignup() {
<td className="px-2"> <td className="px-2">
<div className="text-right"> <div className="text-right">
<div className="text-base font-semibold"> <div className="text-base font-semibold">
{item?.country} {item?.status}
</div> </div>
</div> </div>
</td> </td>
<td className="px-2 text-right"> {/* <td className="px-2 text-right">
<div className="flex items-center justify-end gap-3 md:gap-4"> <div className="flex items-center justify-end gap-3 md:gap-4">
<div className="p-2 flex justify-center items-center text-slate-500 bg-white-body dark:text-white-body dark:bg-black-body rounded-md"> <div className="p-2 flex justify-center items-center text-slate-500 bg-white-body dark:text-white-body dark:bg-black-body rounded-md">
<Link <Link
@@ -178,7 +178,7 @@ export default function RecentSignup() {
</Link> </Link>
</div> </div>
</div> </div>
</td> </td> */}
</tr> </tr>
)) ))
) : ( ) : (
+5
View File
@@ -112,6 +112,11 @@ export const getRecentSignup = (reqData) => {
return getAuxEnd(`/recent-signup`, postData) return getAuxEnd(`/recent-signup`, postData)
} }
export const getRecentAccount = (reqData) => {
const postData = { ...reqData }
return getAuxEnd(`/recent-account`, postData)
}
// FUNCTION TO GET PRODUCTS DATA // FUNCTION TO GET PRODUCTS DATA
export const getProducts = (reqData) => { export const getProducts = (reqData) => {
const postData = { ...reqData } const postData = { ...reqData }