diff --git a/src/Admin/Pages/Pages/Admin.js b/src/Admin/Pages/Pages/Admin.js index fd612e97bcffca9b54b4bef7d9258c819c9a9793..c08631bb31485ccb7efaa70935660c9f079d6d85 100644 --- a/src/Admin/Pages/Pages/Admin.js +++ b/src/Admin/Pages/Pages/Admin.js @@ -95,62 +95,62 @@ export default function Admin() { </div> ); - // return ( - // <div> - // {/**************** Begin of the Drawer ****************/} - // <React.Fragment> - // <Drawer anchor={'left'} open={State['left']} onClose={toggleDrawer('left', false)}> - // {list('left')} - // </Drawer> - // </React.Fragment> - // {/**************** End of the Drawer****************/} - - // {/**************** Begin of the Content ****************/} - // <div style={{ paddingTop: '2em', paddingLeft: '2em', paddingRight: '2em', paddingBottom: '2em', backgroundColor: ' #D3D3D3' }}> - // <DisplayContent i={IndexIcon} /> - // </div> - // {/**************** End of the Content ****************/} - - // {/**************** FLoating action Button ****************/} - // <Fab color="primary" aria-label="add" style={fab} onClick={toggleDrawer('left', true)}> - // <MenuIcon /> - // </Fab> - // </div> - // ); + return ( + <div> + {/**************** Begin of the Drawer ****************/} + <React.Fragment> + <Drawer anchor={'left'} open={State['left']} onClose={toggleDrawer('left', false)}> + {list('left')} + </Drawer> + </React.Fragment> + {/**************** End of the Drawer****************/} + + {/**************** Begin of the Content ****************/} + <div style={{ paddingTop: '2em', paddingLeft: '2em', paddingRight: '2em', paddingBottom: '2em', backgroundColor: ' #D3D3D3' }}> + <DisplayContent i={IndexIcon} /> + </div> + {/**************** End of the Content ****************/} + + {/**************** FLoating action Button ****************/} + <Fab color="primary" aria-label="add" style={fab} onClick={toggleDrawer('left', true)}> + <MenuIcon /> + </Fab> + </div> + ); - if (state.userIsLoggedIn) { - var obj = { ...(state.currentUser.roles)[0] } - if (obj.id === 3 || obj.id === 7) { - return ( - <div> - {/**************** Begin of the Drawer ****************/} - <React.Fragment> - <Drawer anchor={'left'} open={State['left']} onClose={toggleDrawer('left', false)}> - {list('left')} - </Drawer> - </React.Fragment> - {/**************** End of the Drawer****************/} - - {/**************** Begin of the Content ****************/} - <div style={{ paddingTop: '2em', paddingLeft: '2em', paddingRight: '2em', paddingBottom: '2em', backgroundColor: ' #D3D3D3' }}> - <DisplayContent i={IndexIcon} /> - </div> - {/**************** End of the Content ****************/} - - {/**************** FLoating action Button ****************/} - <Fab color="primary" aria-label="add" style={fab} onClick={toggleDrawer('left', true)}> - <MenuIcon /> - </Fab> - </div> - ); - } else { - return ( - <Unauthorized/> - ) - } - } else { - return ( - <Unauthorized/> - ) - } + // if (state.userIsLoggedIn) { + // var obj = { ...(state.currentUser.roles)[0] } + // if (obj.id === 3 || obj.id === 7) { + // return ( + // <div> + // {/**************** Begin of the Drawer ****************/} + // <React.Fragment> + // <Drawer anchor={'left'} open={State['left']} onClose={toggleDrawer('left', false)}> + // {list('left')} + // </Drawer> + // </React.Fragment> + // {/**************** End of the Drawer****************/} + + // {/**************** Begin of the Content ****************/} + // <div style={{ paddingTop: '2em', paddingLeft: '2em', paddingRight: '2em', paddingBottom: '2em', backgroundColor: ' #D3D3D3' }}> + // <DisplayContent i={IndexIcon} /> + // </div> + // {/**************** End of the Content ****************/} + + // {/**************** FLoating action Button ****************/} + // <Fab color="primary" aria-label="add" style={fab} onClick={toggleDrawer('left', true)}> + // <MenuIcon /> + // </Fab> + // </div> + // ); + // } else { + // return ( + // <Unauthorized/> + // ) + // } + // } else { + // return ( + // <Unauthorized/> + // ) + // } }