Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
shopping-mall
Commits
78491956
Commit
78491956
authored
Jan 25, 2021
by
이재연
Browse files
z
parent
9e604666
Changes
1
Show whitespace changes
Inline
Side-by-side
client/src/Components/MainNav.js
View file @
78491956
import
React
from
'
react
'
;
import
{
Navbar
,
Nav
}
from
'
react-bootstrap
'
;
import
{
handleLogout
,
isA
uthenticated
,
isAuthenticated
Admin
}
from
'
../utils/auth
'
;
import
{
handleLogout
,
isA
dmin
,
isAuthenticated
}
from
'
../utils/auth
'
;
function
MainNav
()
{
const
user
=
isAuthenticated
()
const
admin
=
isA
uthenticatedA
dmin
()
const
admin
=
isAdmin
()
return
(
<
Navbar
sticky
=
"
top
"
style
=
{{
background
:
"
#CDC5C2
"
}}
>
...
...
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