Commit 067778dd authored by Jiwon Yoon's avatar Jiwon Yoon
Browse files

app.js

parent 64f4cc1b
......@@ -21,7 +21,7 @@ function App() {
return (
<div className="" style={{ backgroundColor: "black" }}>
<AuthProvider>
<Router style={{ backgroundColor: "black" }}>
<Router>
<SubNav />
<Header />
<MainNav />
......
......@@ -7,11 +7,9 @@ const SubNav = () => {
<> {(user) ?
<nav className="nav justify-content-end py-1">
{(user.role === "member")
? <><Link className="nav-link text-white" to="/mypage">마이페이지</Link>
</>
? <Link className="nav-link text-white" to="/mypage">마이페이지</Link>
: <Link className="nav-link text-white" to="/admin">관리자페이지</Link>}
<Link className="nav-link text-white" to="/" onClick={logout}>로그아웃 </Link>
{/* <a className="nav-link text-white" href="/mypage" onClick={logout}>로그아웃</a> */}
</nav> :
<nav className="nav justify-content-end py-1">
<Link className="nav-link text-white" to="/login">로그인</Link>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment