@@ -17,7 +17,7 @@ import AdbIcon from "@mui/icons-material/Adb";
17
17
import { useAuth } from "../auth/auth.context" ;
18
18
import { useNavigate } from "react-router-dom" ;
19
19
20
- const pages = [ "Products" , "Pricing" , "Blog "] ;
20
+ const pages = [ "Questions " ] ;
21
21
const authPages = [
22
22
{
23
23
name : "Login" ,
@@ -67,7 +67,7 @@ export default function Navbar() {
67
67
variant = "h6"
68
68
noWrap
69
69
component = "a"
70
- href = "/"
70
+ href = "/home "
71
71
sx = { {
72
72
mr : 2 ,
73
73
display : { xs : "none" , md : "flex" } ,
@@ -78,7 +78,7 @@ export default function Navbar() {
78
78
textDecoration : "none" ,
79
79
} }
80
80
>
81
- LOGO
81
+ PeerPrep
82
82
</ Typography >
83
83
84
84
< Box sx = { { flexGrow : 1 , display : { xs : "flex" , md : "none" } } } >
@@ -110,12 +110,12 @@ export default function Navbar() {
110
110
display : { xs : "block" , md : "none" } ,
111
111
} }
112
112
>
113
- { pages . map ( ( page ) => (
113
+ { user && pages . map ( ( page ) => (
114
114
< MenuItem key = { page } onClick = { handleCloseNavMenu } >
115
115
< Typography textAlign = "center" > { page } </ Typography >
116
116
</ MenuItem >
117
117
) ) }
118
- { authPages . map ( ( page ) => (
118
+ { ! user && authPages . map ( ( page ) => (
119
119
< MenuItem key = { page . name } onClick = { ( ) => navigate ( page . link ) } >
120
120
< Typography textAlign = "center" > { page . name } </ Typography >
121
121
</ MenuItem >
@@ -127,7 +127,7 @@ export default function Navbar() {
127
127
variant = "h5"
128
128
noWrap
129
129
component = "a"
130
- href = "/"
130
+ href = "/home "
131
131
sx = { {
132
132
mr : 2 ,
133
133
display : { xs : "flex" , md : "none" } ,
@@ -139,10 +139,10 @@ export default function Navbar() {
139
139
textDecoration : "none" ,
140
140
} }
141
141
>
142
- LOGO
142
+ PeerPrep
143
143
</ Typography >
144
144
< Box sx = { { flexGrow : 1 , display : { xs : "none" , md : "flex" } } } >
145
- { pages . map ( ( page ) => (
145
+ { user && pages . map ( ( page ) => (
146
146
< Button
147
147
key = { page }
148
148
onClick = { handleCloseNavMenu }
0 commit comments