-
+ {/*
*/}
:
-
+
{(props => {
return (
-
Opps! something went wrong. Try Again Later!
- {requestStatus.message != '' &&
{requestStatus.message}
}
-
-
-
-
- {" "}
- Cancel
-
-
+
- {requestStatus.loading ?
-
- :
-
- }
+
+ {requestStatus.message != '' &&
{requestStatus.message}
}
+
+
+
+
+ {" "}
+ Cancel
+
+
+
+ {requestStatus.loading ?
+
+ :
+
+ }
+
-
)
})}
diff --git a/src/middleware/AuthRoute.jsx b/src/middleware/AuthRoute.jsx
index f57ec6e..7629db3 100644
--- a/src/middleware/AuthRoute.jsx
+++ b/src/middleware/AuthRoute.jsx
@@ -46,13 +46,10 @@ const AuthRoute = ({ redirectPath = "/login", children }) => {
setIsLogin({loading: false, status: false})
})
}
- const getProfile = useCallback(()=>{
- loadProfile() // API CALL TO GET USER PROFILE
- }, [])
useEffect(() => {
if(!isLogin.status){
- getProfile()
+ loadProfile() // LOADS USER PROFILE DETAILS AND CALLS DISPATCH UPDATEUSERDETAILS TO UPDATE USERDETAILS SLICE IN STORE
}
const checkInactivity = setInterval(() => {