side menu display bug fixed

This commit was merged in pull request #119.
This commit is contained in:
victorAnumudu
2023-05-29 22:41:29 +01:00
parent e9271e649f
commit 4d9f0adf0c
3 changed files with 9 additions and 7 deletions
+3 -1
View File
@@ -36,7 +36,7 @@ export default function Layout({ children }) {
//---------------------------------------
/* LET U DEAL WITH JOB LIST - we need to centralize this list */
const {jobListTable} = useSelector((state) => state.tableReload)
const [MyJobList, setMyJobList] = useState({loading: true, data:[]});
const [myJobList, setMyJobList] = useState({loading: true, data:[]});
const api = new usersService();
const getMyJobList = async () => {
@@ -75,6 +75,7 @@ export default function Layout({ children }) {
logoutModalHandler={logoutModalHandler}
sidebar={drawer}
action={() => dispatch(drawerToggle())}
myJobList={myJobList}
/>
</div>
{MobileSideBar && (
@@ -92,6 +93,7 @@ export default function Layout({ children }) {
logoutModalHandler={logoutModalHandler}
sidebar={MobileSideBar}
action={() => setMobileSidebar.toggle()}
myJobList={myJobList}
/>
</div>
{/* end sidebar */}