amenpunk 2 yıl önce
ebeveyn
işleme
01a88fda89
1 değiştirilmiş dosya ile 7 ekleme ve 5 silme
  1. 7 5
      src/Components/User.jsx

+ 7 - 5
src/Components/User.jsx

@@ -5,17 +5,20 @@ import {
5 5
     MoveToInbox as InboxIcon
6 6
 } from '@mui/icons-material'
7 7
 
8
-import { Outlet, useNavigate } from "react-router-dom";
8
+import { 
9
+    Outlet, 
10
+    // useNavigate 
11
+} from "react-router-dom";
9 12
 
10 13
 import { 
11 14
     AppBar, Box, CssBaseline, Divider, Drawer,
12 15
     IconButton,List, ListItem, ListItemButton, ListItemIcon, ListItemText,
13
-    Button,Toolbar, Typography, Container
16
+    Toolbar, Typography, Container
14 17
 } from '@mui/material'
15 18
 
16 19
 import Footer from "../Components/Footer.js";
17 20
 
18
-import useAuth from '../Auth/useAuth';
21
+// import useAuth from '../Auth/useAuth';
19 22
 
20 23
 
21 24
 const drawerWidth = 240;
@@ -29,7 +32,7 @@ export function User(props) {
29 32
         setMobileOpen(!mobileOpen);
30 33
     };
31 34
 
32
-    const auth = useAuth();
35
+    // const auth = useAuth();
33 36
 
34 37
     const drawer = (
35 38
         <div>
@@ -132,7 +135,6 @@ export function User(props) {
132 135
                 </Container>
133 136
 
134 137
 
135
-
136 138
             </Box>
137 139
         </Box>
138 140
     );