removed unused common banner
This commit is contained in:
@@ -10,7 +10,7 @@ import LoadingSpinner from '../../components/Spinners/LoadingSpinner'
|
|||||||
export default function Home(props) {
|
export default function Home(props) {
|
||||||
// console.log("PROPS IN HOME->", props);
|
// console.log("PROPS IN HOME->", props);
|
||||||
// const userApi = new usersService();
|
// const userApi = new usersService();
|
||||||
const { commonHeadBanner } = useSelector((state) => state.commonHeadBanner);
|
// const { commonHeadBanner } = useSelector((state) => state.commonHeadBanner);
|
||||||
const { userDetails } = useSelector((state) => state?.userDetails);
|
const { userDetails } = useSelector((state) => state?.userDetails);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -26,7 +26,7 @@ export default function Home(props) {
|
|||||||
/>
|
/>
|
||||||
) : userDetails && userDetails?.account_type == "FULL" ? (
|
) : userDetails && userDetails?.account_type == "FULL" ? (
|
||||||
<>
|
<>
|
||||||
{Object.keys(commonHeadBanner).length < 1 ?
|
{props?.bannerList?.length < 1 ?
|
||||||
<LoadingSpinner height='h-48' size='16' />
|
<LoadingSpinner height='h-48' size='16' />
|
||||||
:
|
:
|
||||||
<FullAccountDash
|
<FullAccountDash
|
||||||
|
|||||||
@@ -326,7 +326,9 @@ const AuthRoute = ({ redirectPath = "/login", children }) => {
|
|||||||
}, [isLogin.status]);
|
}, [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
|
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')
|
joinRoom('full-markets-jobs')
|
||||||
|
}
|
||||||
},[isLogin.status])
|
},[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
|
useEffect(()=>{ // sends an event to the socket to enable user join a room to be able to receive update for parent child job assign
|
||||||
|
|||||||
Reference in New Issue
Block a user