|
|
@@ -25,7 +25,6 @@ import Footer from "../Components/Footer";
|
|
|
|
|
|
import { Drawer as MuiDrawer, AppBar as MuiAppBar } from "../Components/Navigation/AppBar"
|
|
|
import { UserListItems, SecondaryListItems } from '../Components/Navigation/listItems';
|
|
|
-import useAuth from '../Auth/useAuth.js'
|
|
|
import ProfilePicture from '../Images/man.png';
|
|
|
|
|
|
const drawerWidth = 240;
|
|
|
@@ -82,13 +81,11 @@ export function User() {
|
|
|
const [open, setOpen] = React.useState(true);
|
|
|
|
|
|
const isMovil = Size('(max-width:1000px)');
|
|
|
- const auth = useAuth();
|
|
|
const navigate = useNavigate()
|
|
|
let dispatch = useDispatch()
|
|
|
|
|
|
const CerrarSession = () => {
|
|
|
dispatch(removeToken())
|
|
|
- auth.logout();
|
|
|
navigate('/logincd')
|
|
|
}
|
|
|
|
|
|
@@ -97,7 +94,6 @@ export function User() {
|
|
|
const handleClick = (event) => setAnchorEl(event.currentTarget);
|
|
|
const handleClose = () => setAnchorEl(null)
|
|
|
const toggleDrawer = () => {
|
|
|
- console.log('toggle drawer')
|
|
|
if(isMovil){
|
|
|
setAnchorElMov(!anchorElMovil)
|
|
|
}else{
|