unused common banner removal #854

Closed
victor.ebuka wants to merge 1 commits from unused-common-banner into master
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