-
+
+
I understand the task
{requestStatus.loading && requestStatus.trigger == "offer" ? (
) : (
@@ -190,9 +203,9 @@ function OfferJobPopout({ details, onClose, situation }) {
name="accept"
onClick={handleOffer}
disabled={requestStatus.loading}
- className="px-2 h-11 flex justify-center items-center btn-gradient text-base rounded-full text-white"
+ className="px-2 h-28 flex justify-center items-center btn-gradient text-2xl rounded-xl text-white"
>
- Accept Offer
+ Start Now
)}
@@ -205,9 +218,10 @@ function OfferJobPopout({ details, onClose, situation }) {
name="reject"
onClick={handleOffer}
disabled={requestStatus.loading}
- className="px-2 h-11 flex justify-center items-center btn-gradient text-base rounded-full text-white"
+ className="group relative px-2 h-11 flex justify-center items-center text-base text-black dark:text-white"
>
Reject Offer
+
)}
diff --git a/src/middleware/AuthRoute.jsx b/src/middleware/AuthRoute.jsx
index 86b409d..241535c 100644
--- a/src/middleware/AuthRoute.jsx
+++ b/src/middleware/AuthRoute.jsx
@@ -111,8 +111,8 @@ const AuthRoute = ({ redirectPath = "/login", children }) => {
}
}, []);
- useEffect(() => {
- const getNotifications = () => {
+ useEffect(() => { // FUNCTION TO GET NOTIFICATIONS LIST
+ const notifications = () => {
// function to load user notification
dispatch(updateNotifications({ loading: true }));
apiCall
@@ -168,7 +168,9 @@ const AuthRoute = ({ redirectPath = "/login", children }) => {
dispatch(updateNotifications({ loading: false, data: null }));
});
};
- getNotifications();
+ // delay verify requests by 10000ms
+ const delay15secs = setTimeout(notifications, 15000)
+ return ()=> clearTimeout(delay15secs)
}, []);
useEffect(() => {
@@ -248,23 +250,23 @@ const AuthRoute = ({ redirectPath = "/login", children }) => {
}, [isLogin.status]);
//FUNCTION TO GET COMMON HEAD DATA
- useEffect(() => {
- if((!loggedIn && !isLogin.status) || account_type == 'FAMILY'){ // DO NOT CALL THIS, IF USER ACCOUNT TYPE IS FAMILY
- return
- }
- apiCall
- .getRecentActivitiedData()
- .then((res) => {
- // debugger;
- if (res?.data?.internal_return < 0) {
- return;
- }
- dispatch(recentActivitiesData(res.data));
- })
- .catch((error) => {
- console.log("ERROR ", error);
- });
- }, [isLogin.status]);
+ // useEffect(() => {
+ // if((!loggedIn && !isLogin.status) || account_type == 'FAMILY'){ // DO NOT CALL THIS, IF USER ACCOUNT TYPE IS FAMILY
+ // return
+ // }
+ // apiCall
+ // .getRecentActivitiedData()
+ // .then((res) => {
+ // // debugger;
+ // if (res?.data?.internal_return < 0) {
+ // return;
+ // }
+ // dispatch(recentActivitiesData(res.data));
+ // })
+ // .catch((error) => {
+ // console.log("ERROR ", error);
+ // });
+ // }, [isLogin.status]);
//FUNCTION TO GET FAMILY BANNERS