Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8aa1e06592 | |||
| edf8f2ba8d | |||
| f06be4b178 | |||
| 4e5cd7a40c | |||
| 4202941d43 | |||
| bd40a4c7c0 |
@@ -21,6 +21,11 @@ export default function FamilyAcc() {
|
|||||||
|
|
||||||
const apiCall = useMemo(() => new SiteService(), []);
|
const apiCall = useMemo(() => new SiteService(), []);
|
||||||
|
|
||||||
|
// This is to make sure it's called once and used everywhere
|
||||||
|
let memberId = localStorage.getItem("member_id");
|
||||||
|
let uid = localStorage.getItem("uid");
|
||||||
|
let sessionId = localStorage.getItem("session_token");
|
||||||
|
|
||||||
const popUpHandler = () => {
|
const popUpHandler = () => {
|
||||||
setPopUp(!popUp);
|
setPopUp(!popUp);
|
||||||
};
|
};
|
||||||
@@ -56,9 +61,9 @@ export default function FamilyAcc() {
|
|||||||
try {
|
try {
|
||||||
if (first_name !== "" && last_name !== "") {
|
if (first_name !== "" && last_name !== "") {
|
||||||
let reqData = {
|
let reqData = {
|
||||||
member_id: localStorage.getItem("member_id"),
|
member_id: memberId,
|
||||||
uid: localStorage.getItem("uid"),
|
uid: uid,
|
||||||
session_id: localStorage.getItem("session_token"),
|
session_id: sessionId,
|
||||||
firstname: first_name,
|
firstname: first_name,
|
||||||
lastname: last_name,
|
lastname: last_name,
|
||||||
age: selectedAge,
|
age: selectedAge,
|
||||||
@@ -98,11 +103,11 @@ export default function FamilyAcc() {
|
|||||||
setLoader(true);
|
setLoader(true);
|
||||||
try {
|
try {
|
||||||
let reqData = {
|
let reqData = {
|
||||||
member_id: localStorage.getItem("member_id"),
|
member_id: memberId,
|
||||||
uid: localStorage.getItem("uid"),
|
uid: uid,
|
||||||
sessionid: localStorage.getItem("session_token"),
|
session_id: sessionId,
|
||||||
limit: 20,
|
limit: 20,
|
||||||
offset: 1,
|
offset: 0,
|
||||||
action: 22010,
|
action: 22010,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -117,7 +122,7 @@ export default function FamilyAcc() {
|
|||||||
setLoader(false);
|
setLoader(false);
|
||||||
throw new Error(error);
|
throw new Error(error);
|
||||||
}
|
}
|
||||||
}, [apiCall]);
|
}, [apiCall, memberId, sessionId, uid]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
memberList();
|
memberList();
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -34,7 +34,7 @@ export default function MyActiveJobTable({MyJobList, className }) {
|
|||||||
<div className="relative w-full overflow-x-auto sm:rounded-lg flex flex-col justify-between h-full">
|
<div className="relative w-full overflow-x-auto sm:rounded-lg flex flex-col justify-between h-full">
|
||||||
<table className="w-full text-sm text-left text-gray-500 dark:text-gray-400">
|
<table className="w-full text-sm text-left text-gray-500 dark:text-gray-400">
|
||||||
<tbody>
|
<tbody>
|
||||||
{/*<tr className="text-base text-thin-light-gray whitespace-nowrap border-b dark:border-[#5356fb29] default-border-b dark:border-[#5356fb29] ottom ">*/}
|
{/*<tr className="text-base text-thin-light-gray border-b dark:border-[#5356fb29] default-border-b dark:border-[#5356fb29] ottom ">*/}
|
||||||
{/* <td className="py-4">All Product</td>*/}
|
{/* <td className="py-4">All Product</td>*/}
|
||||||
{/* <td className="py-4 text-right">.</td>*/}
|
{/* <td className="py-4 text-right">.</td>*/}
|
||||||
{/*</tr>*/}
|
{/*</tr>*/}
|
||||||
@@ -55,7 +55,7 @@ export default function MyActiveJobTable({MyJobList, className }) {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
<h1 className="font-bold text-xl text-dark-gray dark:text-white whitespace-nowrap">
|
<h1 className="font-bold text-xl text-dark-gray dark:text-white">
|
||||||
{value.title}
|
{value.title}
|
||||||
</h1>
|
</h1>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -45,9 +45,9 @@ export default function MyJobTable({MyJobList, className }) {
|
|||||||
</div>
|
</div>
|
||||||
{MyJobList && MyJobList?.result_list &&
|
{MyJobList && MyJobList?.result_list &&
|
||||||
<div className="relative w-full overflow-x-auto sm:rounded-lg flex flex-col justify-between h-full">
|
<div className="relative w-full overflow-x-auto sm:rounded-lg flex flex-col justify-between h-full">
|
||||||
<table className="w-full text-sm text-left text-gray-500 dark:text-gray-400">
|
<table className="table-auto min-w-full text-sm text-left text-gray-500 dark:text-gray-400">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr className="text-base text-thin-light-gray whitespace-nowrap border-b default-border-b dark:border-[#5356fb29] ottom ">
|
<tr className="text-base text-thin-light-gray border-b default-border-b dark:border-[#5356fb29] ottom ">
|
||||||
<td className="py-4">All Product</td>
|
<td className="py-4">All Product</td>
|
||||||
<td className="py-4 text-right">.</td>
|
<td className="py-4 text-right">.</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -58,7 +58,7 @@ export default function MyJobTable({MyJobList, className }) {
|
|||||||
MyJobList.result_list.length > 0 &&
|
MyJobList.result_list.length > 0 &&
|
||||||
currentJobList.map((value, index) => (
|
currentJobList.map((value, index) => (
|
||||||
<tr key={index} className="bg-white dark:bg-dark-white border-b dark:border-[#5356fb29] hover:bg-gray-50">
|
<tr key={index} className="bg-white dark:bg-dark-white border-b dark:border-[#5356fb29] hover:bg-gray-50">
|
||||||
<td className=" py-4">
|
<td className="py-4">
|
||||||
<div className="flex space-x-2 items-center">
|
<div className="flex space-x-2 items-center">
|
||||||
<div className="w-[60px] h-[60px] rounded-full overflow-hidden flex justify-center items-center">
|
<div className="w-[60px] h-[60px] rounded-full overflow-hidden flex justify-center items-center">
|
||||||
<img
|
<img
|
||||||
@@ -68,7 +68,7 @@ export default function MyJobTable({MyJobList, className }) {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
<h1 className="font-bold text-xl text-dark-gray dark:text-white whitespace-nowrap">
|
<h1 className="font-bold text-xl text-dark-gray dark:text-white">
|
||||||
{value.title}
|
{value.title}
|
||||||
</h1>
|
</h1>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -71,14 +71,14 @@ function JobListPopout({details, onClose, situation}) {
|
|||||||
<div className='my-3 md:flex'>
|
<div className='my-3 md:flex'>
|
||||||
<Detail
|
<Detail
|
||||||
label='Timeline'
|
label='Timeline'
|
||||||
value={`Dummy, no value found for created!`}
|
value={`${details.timeline_days} day(s)`}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className='my-3 md:flex'>
|
<div className='my-3 md:flex'>
|
||||||
<Detail
|
<Detail
|
||||||
label='Created'
|
label='Created'
|
||||||
value={`${details.timeline_days} day(s)`}
|
value={`Dummy, no value found for created!`}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user