Compare commits

...

1 Commits

Author SHA1 Message Date
victorAnumudu f4de95ae86 removed unused common banner 2024-11-25 12:43:12 +01:00
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ import LoadingSpinner from '../../components/Spinners/LoadingSpinner'
export default function Home(props) {
// console.log("PROPS IN HOME->", props);
// const userApi = new usersService();
const { commonHeadBanner } = useSelector((state) => state.commonHeadBanner);
// const { commonHeadBanner } = useSelector((state) => state.commonHeadBanner);
const { userDetails } = useSelector((state) => state?.userDetails);
return (
@@ -26,7 +26,7 @@ export default function Home(props) {
/>
) : userDetails && userDetails?.account_type == "FULL" ? (
<>
{Object.keys(commonHeadBanner).length < 1 ?
{props?.bannerList?.length < 1 ?
<LoadingSpinner height='h-48' size='16' />
:
<FullAccountDash
+2
View File
@@ -326,7 +326,9 @@ const AuthRoute = ({ redirectPath = "/login", children }) => {
}, [isLogin.status]);
useEffect(()=>{ // sends an event to the socket to enable user join a room to be able to receive update when jobs enters the market
if(loggedIn || isLogin.status){
joinRoom('full-markets-jobs')
}
},[isLogin.status])
useEffect(()=>{ // sends an event to the socket to enable user join a room to be able to receive update for parent child job assign