Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
final-exam
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nawasan Wisitsingkhon
final-exam
Commits
d8847ff1
Commit
d8847ff1
authored
Sep 29, 2023
by
Nawasan Wisitsingkhon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit navbar menu when doesn't login
parent
968d25ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Navbar.js
src/components/Navbar.js
+5
-4
No files found.
src/components/Navbar.js
View file @
d8847ff1
...
...
@@ -179,10 +179,11 @@ function Navbar(props) {
:
[
{
id
:
0
,
lab
le
:
"Login
"
,
element
:
"Login"
,
link
:
"/
login
"
,
lab
el
:
"Register
"
,
element
:
<
span
className
=
"inline-block mx-3 hover:underline"
>
Register
<
/span>
,
link
:
"/
register
"
,
},
{
id
:
1
,
lable
:
"Login"
,
element
:
<
span
className
=
"inline-block mx-3 hover:underline"
>
Login
<
/span>, link: "/
login
" },
];
const mobileMenuId = "
primary
-
search
-
account
-
menu
-
mobile
";
...
...
@@ -225,7 +226,7 @@ function Navbar(props) {
component="
div
"
sx={{ display: { xs: "
none
", md: "
block
" } }}
>
MUI
<Link href={"
/
"}>MUI</Link>
</Typography>
<Search>
<SearchIconWrapper>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment