Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 91bb18e4c9 |
@@ -7,7 +7,7 @@ INSTAGRAM_URL=https://www.instagram.com
|
|||||||
|
|
||||||
# BACKEND END POINTS
|
# BACKEND END POINTS
|
||||||
REACT_APP_MAIN_API="https://devapi.mermsemr.com"
|
REACT_APP_MAIN_API="https://devapi.mermsemr.com"
|
||||||
#REACT_APP_MAIN_API="http://localhost:14700"
|
# REACT_APP_MAIN_API="http://localhost:14700"
|
||||||
|
|
||||||
# ENQUIRIES CONTACTS
|
# ENQUIRIES CONTACTS
|
||||||
VITE_CALL_ENDPOINT='09099000000'
|
VITE_CALL_ENDPOINT='09099000000'
|
||||||
@@ -20,6 +20,4 @@ VITE_BANK_NAME_SHORT='FCMB'
|
|||||||
# Inactivity timeout/logout AT 10MINS
|
# Inactivity timeout/logout AT 10MINS
|
||||||
REACT_APP_TIMEOUT=600000
|
REACT_APP_TIMEOUT=600000
|
||||||
|
|
||||||
#CLOUDFLARE
|
|
||||||
REACT_APP_TURNSTILE_SITE_KEY=0x4AAAAAADQV82wuocFR-u5O
|
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,3 @@ VITE_BANK_NAME_SHORT='FCMB'
|
|||||||
|
|
||||||
# Inactivity timeout/logout AT 10MINS
|
# Inactivity timeout/logout AT 10MINS
|
||||||
REACT_APP_TIMEOUT=600000
|
REACT_APP_TIMEOUT=600000
|
||||||
|
|
||||||
#CLOUDFLARE
|
|
||||||
REACT_APP_TURNSTILE_SITE_KEY=0x4AAAAAADQV82wuocFR-u5O
|
|
||||||
|
|||||||
+1
-4
@@ -7,7 +7,7 @@ INSTAGRAM_URL=https://www.instagram.com
|
|||||||
|
|
||||||
# BACKEND END POINTS
|
# BACKEND END POINTS
|
||||||
REACT_APP_MAIN_API="https://api.mermsemr.com"
|
REACT_APP_MAIN_API="https://api.mermsemr.com"
|
||||||
# REACT_APP_MAIN_API="http://localhost:14700"
|
#REACT_APP_MAIN_API="http://localhost:14700"
|
||||||
|
|
||||||
# ENQUIRIES CONTACTS
|
# ENQUIRIES CONTACTS
|
||||||
VITE_CALL_ENDPOINT='09099000000'
|
VITE_CALL_ENDPOINT='09099000000'
|
||||||
@@ -19,6 +19,3 @@ VITE_BANK_NAME_SHORT='FCMB'
|
|||||||
|
|
||||||
# Inactivity timeout/logout AT 10MINS
|
# Inactivity timeout/logout AT 10MINS
|
||||||
REACT_APP_TIMEOUT=600000
|
REACT_APP_TIMEOUT=600000
|
||||||
|
|
||||||
#CLOUDFLARE
|
|
||||||
REACT_APP_TURNSTILE_SITE_KEY=0x4AAAAAADQV82wuocFR-u5O
|
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@reduxjs/toolkit": "^2.5.1",
|
"@reduxjs/toolkit": "^2.5.1",
|
||||||
"@tanstack/react-query": "^5.66.0",
|
"@tanstack/react-query": "^5.66.0",
|
||||||
"@marsidev/react-turnstile": "^1.5.2",
|
|
||||||
"apexcharts": "^4.5.0",
|
"apexcharts": "^4.5.0",
|
||||||
"axios": "^1.7.9",
|
"axios": "^1.7.9",
|
||||||
"cra-template": "1.2.0",
|
"cra-template": "1.2.0",
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ const RouteLinks = {
|
|||||||
billings: '/billings',
|
billings: '/billings',
|
||||||
files_uploads: '/files-uploads',
|
files_uploads: '/files-uploads',
|
||||||
recentSignup: '/recent-signup',
|
recentSignup: '/recent-signup',
|
||||||
recentAccount: '/recent-account',
|
|
||||||
loansPage: '/loans',
|
loansPage: '/loans',
|
||||||
transactionsPage: '/transactions',
|
transactionsPage: '/transactions',
|
||||||
countrySettings: '/country',
|
countrySettings: '/country',
|
||||||
|
|||||||
@@ -25,7 +25,6 @@ import CountrySettingsPage from "./pages/CountrySettingsPage";
|
|||||||
import ProductViewPage from "./pages/ProductViewPage";
|
import ProductViewPage from "./pages/ProductViewPage";
|
||||||
import FilesUploadPage from "./pages/FilesUploadPage"; // TRANSACTION DETAILS PAGE
|
import FilesUploadPage from "./pages/FilesUploadPage"; // TRANSACTION DETAILS PAGE
|
||||||
import AccountEditpage from "./pages/AccountEditPage";
|
import AccountEditpage from "./pages/AccountEditPage";
|
||||||
import RecentAccountsPage from "./pages/RecentAccountsPage";
|
|
||||||
|
|
||||||
// const Home = lazy(() => import('./pages/Home'));
|
// const Home = lazy(() => import('./pages/Home'));
|
||||||
|
|
||||||
@@ -36,8 +35,6 @@ export default function SiteRoutes() {
|
|||||||
|
|
||||||
<Route element={<UserExist/>}>
|
<Route element={<UserExist/>}>
|
||||||
<Route path={RouteLinks.homePage} element={<HomePage/>}/> {`*/HOME PAGE*/`}
|
<Route path={RouteLinks.homePage} element={<HomePage/>}/> {`*/HOME PAGE*/`}
|
||||||
|
|
||||||
<Route path={RouteLinks.recentAccount} element={<RecentAccountsPage/>}/> {`*/RECENT SIGNUP PAGE*/`}
|
|
||||||
<Route path={RouteLinks.recentSignup} element={<RecentSignupPage/>}/> {`*/RECENT SIGNUP PAGE*/`}
|
<Route path={RouteLinks.recentSignup} element={<RecentSignupPage/>}/> {`*/RECENT SIGNUP PAGE*/`}
|
||||||
<Route path={RouteLinks.subscriptions} element={<SubscriptionsPage/>}/> {`*/SUBSCRIPTIONS PAGE*/`}
|
<Route path={RouteLinks.subscriptions} element={<SubscriptionsPage/>}/> {`*/SUBSCRIPTIONS PAGE*/`}
|
||||||
<Route path={RouteLinks.customerPage} element={<CustomerPage/>}/> {`*/CUSTOMER PAGE*/`}
|
<Route path={RouteLinks.customerPage} element={<CustomerPage/>}/> {`*/CUSTOMER PAGE*/`}
|
||||||
|
|||||||
@@ -30,6 +30,9 @@ export default function AccountBannerCom({accountInfo}) {
|
|||||||
<th scope="col" className="px-2">
|
<th scope="col" className="px-2">
|
||||||
Country
|
Country
|
||||||
</th>
|
</th>
|
||||||
|
<th scope="col" className="px-2 text-right">
|
||||||
|
Action
|
||||||
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|||||||
@@ -44,6 +44,7 @@ export default function UpdateProfile({accountInfo}) {
|
|||||||
console.log(error)
|
console.log(error)
|
||||||
},
|
},
|
||||||
onSuccess: (res) => {
|
onSuccess: (res) => {
|
||||||
|
console.log('res', res)
|
||||||
// if(res?.data?.resultCode != '0') {
|
// if(res?.data?.resultCode != '0') {
|
||||||
// throw new Error(res?.data?.message || res?.data?.resultDescription || 'An error occurred while updating profile')
|
// throw new Error(res?.data?.message || res?.data?.resultDescription || 'An error occurred while updating profile')
|
||||||
// }
|
// }
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import {useNavigate} from 'react-router-dom'
|
|||||||
import {useMutation} from '@tanstack/react-query'
|
import {useMutation} from '@tanstack/react-query'
|
||||||
import {Formik, Form} from 'formik'
|
import {Formik, Form} from 'formik'
|
||||||
import * as Yup from "yup";
|
import * as Yup from "yup";
|
||||||
import {Turnstile} from '@marsidev/react-turnstile'
|
|
||||||
|
|
||||||
import InputText from '../InputText'
|
import InputText from '../InputText'
|
||||||
import {updateUserDetails} from "../../store/UserDetails";
|
import {updateUserDetails} from "../../store/UserDetails";
|
||||||
@@ -31,7 +30,6 @@ export default function LoginCom() {
|
|||||||
const navigate = useNavigate()
|
const navigate = useNavigate()
|
||||||
|
|
||||||
const [loading, setLoading] = useState(false)
|
const [loading, setLoading] = useState(false)
|
||||||
const [turnstileToken, setTurnstileToken] = useState(null)
|
|
||||||
|
|
||||||
const login = useMutation({
|
const login = useMutation({
|
||||||
mutationFn: (fields) => {
|
mutationFn: (fields) => {
|
||||||
@@ -55,9 +53,9 @@ export default function LoginCom() {
|
|||||||
})
|
})
|
||||||
|
|
||||||
//FUNCTION TO HANDLE LOGIN
|
//FUNCTION TO HANDLE LOGIN
|
||||||
const handleSubmit = (values) => {
|
const handleSubmit = (values, helper) => {
|
||||||
if (!turnstileToken) return
|
login.mutate(values)
|
||||||
login.mutate({...values, cf_turnstile_response: turnstileToken})
|
// handleLogin()
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -109,17 +107,9 @@ export default function LoginCom() {
|
|||||||
/>
|
/>
|
||||||
{/* <p className='text-sm text-end font-medium text-primary'>Forget password ?</p> */}
|
{/* <p className='text-sm text-end font-medium text-primary'>Forget password ?</p> */}
|
||||||
</div>
|
</div>
|
||||||
<div className="text-center col-12 mt-3">
|
|
||||||
<Turnstile
|
|
||||||
siteKey={process.env.REACT_APP_TURNSTILE_SITE_KEY}
|
|
||||||
onSuccess={setTurnstileToken}
|
|
||||||
onExpire={() => setTurnstileToken(null)}
|
|
||||||
onError={() => setTurnstileToken(null)}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div className='h-10 mb-10'>
|
<div className='h-10 mb-10'>
|
||||||
<button type='submit' disabled={login.isPending || !turnstileToken}
|
<button type='submit' disabled={login.isPending}
|
||||||
className='w-full h-full bg-primary text-white font-bold rounded-md disabled:opacity-50 disabled:cursor-not-allowed'>{login.isPending || loading ? 'loading...' : 'Login'}</button>
|
className='w-full h-full bg-primary text-white font-bold rounded-md'>{login.isPending || loading ? 'loading...' : 'Login'}</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{login.error &&
|
{login.error &&
|
||||||
|
|||||||
@@ -151,9 +151,8 @@ export default function DashboardAside() {
|
|||||||
const asideNavLinks = [
|
const asideNavLinks = [
|
||||||
{name: 'Dashboard', status: 1, icon: 'dashboard', to: RouteLinks.homePage},
|
{name: 'Dashboard', status: 1, icon: 'dashboard', to: RouteLinks.homePage},
|
||||||
{
|
{
|
||||||
name: 'Front Office', title: 'Activities', status: 1, icon: 'arrow-right', subLinks: [
|
name: 'Deployments', title: 'Activities', status: 1, icon: 'arrow-right', subLinks: [
|
||||||
{name: 'Recent Signup', status: 1, icon: 'dot', to: RouteLinks.recentSignup},
|
{name: 'Recent Signup', status: 1, icon: 'dot', to: RouteLinks.recentSignup},
|
||||||
{name: 'Recent Accounts(30)', status: 1, icon: 'dot', to: RouteLinks.recentAccount},
|
|
||||||
{name: 'Provisions', status: 1, icon: 'dot', to: RouteLinks.subscriptions},
|
{name: 'Provisions', status: 1, icon: 'dot', to: RouteLinks.subscriptions},
|
||||||
{name: 'Customers', status: 1, icon: 'dot', to: RouteLinks.customerPage},
|
{name: 'Customers', status: 1, icon: 'dot', to: RouteLinks.customerPage},
|
||||||
{name: 'Billings', status: 1, icon: 'dot', to: RouteLinks.billings},
|
{name: 'Billings', status: 1, icon: 'dot', to: RouteLinks.billings},
|
||||||
|
|||||||
@@ -86,7 +86,6 @@ 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">
|
||||||
|
|||||||
@@ -1,203 +0,0 @@
|
|||||||
import { useState } from "react";
|
|
||||||
import { useQuery } from "@tanstack/react-query";
|
|
||||||
import queryKeys from "../../services/queryKeys";
|
|
||||||
|
|
||||||
import BreadcrumbCom from "../breadcrumb/BreadcrumbCom";
|
|
||||||
import TablePaginatedWrapper from "../tableWrapper/TablePaginatedWrapper";
|
|
||||||
import Icons from "../Icons";
|
|
||||||
import { getRecentAccount } from "../../services/siteServices";
|
|
||||||
import getDateTimeFromDateString from "../../helpers/getDateTimeFromDateString";
|
|
||||||
import {Link} from 'react-router-dom';
|
|
||||||
|
|
||||||
|
|
||||||
export default function RecentAccounts() {
|
|
||||||
const [page, setPage] = useState(1);
|
|
||||||
const [filter, setFilter] = useState({ type: "", id: "" });
|
|
||||||
const [willFilter, setWillFilter] = useState(false);
|
|
||||||
|
|
||||||
const handleFilter = ({ target: { name, value } }) => {
|
|
||||||
setFilter((prev) => ({ ...prev, [name]: value }));
|
|
||||||
};
|
|
||||||
|
|
||||||
const handleFilterByParams = () => {
|
|
||||||
if (filter.type && !filter.id) {
|
|
||||||
return;
|
|
||||||
} else if (!filter.type) {
|
|
||||||
setPage(1);
|
|
||||||
setWillFilter((prev) => !prev);
|
|
||||||
setFilter({ type: "", id: "" });
|
|
||||||
} else {
|
|
||||||
setPage(1);
|
|
||||||
setWillFilter((prev) => !prev);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const { data, isFetching, isError, error } = useQuery({
|
|
||||||
queryKey: [...queryKeys.recent_account, page, willFilter],
|
|
||||||
queryFn: () => {
|
|
||||||
const filterData = filter?.type ? { [filter?.type]: filter.id } : {};
|
|
||||||
const reqData = {
|
|
||||||
page,
|
|
||||||
...filterData,
|
|
||||||
};
|
|
||||||
return getRecentAccount(reqData);
|
|
||||||
},
|
|
||||||
staleTime: 0, //0 mins
|
|
||||||
});
|
|
||||||
const recentSignupData = data?.data?.members; // BILLINGS LIST
|
|
||||||
const pagination = data?.data?.pagination;
|
|
||||||
// console.log('DATA', data?.data)
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div className="w-full flex flex-col gap-8">
|
|
||||||
<BreadcrumbCom
|
|
||||||
title="Recent Accounts"
|
|
||||||
paths={["Dashboard", "Recent Acc"]}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<div className="box bg-white dark:bg-black-box text-black-body dark:text-white-body">
|
|
||||||
{isError ? (
|
|
||||||
<p className="text-red-500">{error?.message}</p>
|
|
||||||
) : (
|
|
||||||
<>
|
|
||||||
{/* filter section */}
|
|
||||||
<div className="px-2 py-2 mb-4 flex flex-col sm:flex-row flex-wrap sm:items-center gap-2">
|
|
||||||
<Icons name="filter" className="text-3xl" />
|
|
||||||
<div className="w-full sm:max-w-48">
|
|
||||||
<select
|
|
||||||
name="type"
|
|
||||||
value={filter?.type}
|
|
||||||
className="h-10 w-full p-2 rounded-md"
|
|
||||||
onChange={handleFilter}
|
|
||||||
>
|
|
||||||
<option value="">All</option>
|
|
||||||
<option value="username">Username</option>
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
<div className="w-full sm:max-w-48">
|
|
||||||
<input
|
|
||||||
name="id"
|
|
||||||
value={filter?.id}
|
|
||||||
disabled={!filter.type}
|
|
||||||
className={`h-10 w-full p-2 rounded-md outline-none border border-black-aside ${!filter.type && "opacity-30"}`}
|
|
||||||
onChange={handleFilter}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<button
|
|
||||||
onClick={handleFilterByParams}
|
|
||||||
disabled={filter.type && !filter.id}
|
|
||||||
className={`h-10 bg-primary px-2 py-1 rounded-md text-white font-medium sm:self-end ${filter.type && !filter.id && "opacity-50"}`}
|
|
||||||
>
|
|
||||||
Submit
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
{/* end of filter section */}
|
|
||||||
|
|
||||||
<TablePaginatedWrapper
|
|
||||||
data={recentSignupData}
|
|
||||||
isFetching={isFetching}
|
|
||||||
setPage={setPage}
|
|
||||||
itemsPerPage={pagination?.limit}
|
|
||||||
pagination={pagination}
|
|
||||||
>
|
|
||||||
{({ data }) => (
|
|
||||||
<>
|
|
||||||
<table className="py-2 w-full text-sm">
|
|
||||||
<thead className="py-2 text-sm text-slate-500 text-left">
|
|
||||||
<tr>
|
|
||||||
<th scope="col" className="px-2 py-2">
|
|
||||||
Added
|
|
||||||
</th>
|
|
||||||
<th scope="col" className="px-2">
|
|
||||||
User Name /Email
|
|
||||||
</th>
|
|
||||||
<th scope="col" className="px-2 text-right">
|
|
||||||
Name
|
|
||||||
</th>
|
|
||||||
<th scope="col" className="px-2 text-right">
|
|
||||||
Country
|
|
||||||
</th>
|
|
||||||
<th scope="col" className="px-2 text-right">
|
|
||||||
Action
|
|
||||||
</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{data && data.length > 0 ? (
|
|
||||||
data?.map((item, index) => (
|
|
||||||
<tr
|
|
||||||
key={index}
|
|
||||||
className="py-2 border-t border-dashed border-slate-300"
|
|
||||||
>
|
|
||||||
<td className="px-2 py-2">
|
|
||||||
<div className="w-full min-w-48 flex items-center gap-2 whitespace-nowrap">
|
|
||||||
<div className="text-left">
|
|
||||||
<div className="text-base font-semibold">
|
|
||||||
{getDateTimeFromDateString(item?.added)}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td className="px-2">
|
|
||||||
<div className="text-left">
|
|
||||||
<div className="text-base font-semibold">
|
|
||||||
{item?.username}
|
|
||||||
</div>
|
|
||||||
<div className="text-base font-semibold">
|
|
||||||
{item?.email}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td className="px-2">
|
|
||||||
<div className="text-right">
|
|
||||||
<div className="text-base font-semibold">
|
|
||||||
{item?.firstname} {item?.lastname}
|
|
||||||
</div>
|
|
||||||
{/* <div className="font-normal text-gray-500">{item?.external_url}</div> */}
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td className="px-2">
|
|
||||||
<div className="text-right">
|
|
||||||
<div className="text-base font-semibold">
|
|
||||||
{item?.country}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td className="px-2 text-right">
|
|
||||||
<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">
|
|
||||||
<Link
|
|
||||||
to={`/account-view/${item?.member_uid}`}
|
|
||||||
state={{
|
|
||||||
customerID: item?.id,
|
|
||||||
memberUID: item?.member_uid,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<Icons name="eye" />
|
|
||||||
</Link>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
))
|
|
||||||
) : (
|
|
||||||
<tr className="py-2 border-t border-dashed border-slate-300">
|
|
||||||
<td className="px-3 py-2" colSpan={4}>
|
|
||||||
<div className="flex justify-center items-center">
|
|
||||||
No Record Found
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
)}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</TablePaginatedWrapper>
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
@@ -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="Signup Started Report"
|
title="Recent Signup"
|
||||||
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">
|
||||||
Signup Stareted Added
|
Added
|
||||||
</th>
|
</th>
|
||||||
<th scope="col" className="px-2">
|
<th scope="col" className="px-2">
|
||||||
Email
|
User Name /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">
|
||||||
Status
|
Country
|
||||||
</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?.status}
|
{item?.country}
|
||||||
</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>
|
||||||
))
|
))
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
import React from 'react'
|
|
||||||
import RecentAccounts from "../components/recent_accounts/RecentAccounts";
|
|
||||||
|
|
||||||
export default function RecentAccountsPage() {
|
|
||||||
return (
|
|
||||||
<RecentAccounts />
|
|
||||||
)
|
|
||||||
}
|
|
||||||
@@ -16,7 +16,6 @@ const queryKeys = {
|
|||||||
billings: ['billings'],
|
billings: ['billings'],
|
||||||
right_sidebar: ['right_sidebar'],
|
right_sidebar: ['right_sidebar'],
|
||||||
recent_signup: ['recent_signup'],
|
recent_signup: ['recent_signup'],
|
||||||
recent_account: ['recent_account'],
|
|
||||||
products: ['products'],
|
products: ['products'],
|
||||||
products_template: ['products_template'],
|
products_template: ['products_template'],
|
||||||
custom_template: ['custom_template'],
|
custom_template: ['custom_template'],
|
||||||
|
|||||||
@@ -112,11 +112,6 @@ 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 }
|
||||||
@@ -134,7 +129,7 @@ export const updateUserProfile = (reqData) => {
|
|||||||
let postData = {
|
let postData = {
|
||||||
...reqData
|
...reqData
|
||||||
}
|
}
|
||||||
return postAuxEnd('/office/update-profile', postData, false)
|
return postAuxEnd('/update-profile', postData, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION TO GET PRODUCTS TEMPLATE DATA
|
// FUNCTION TO GET PRODUCTS TEMPLATE DATA
|
||||||
|
|||||||
Reference in New Issue
Block a user