SubNav.js 1.1 KB
Newer Older
한규민's avatar
context    
한규민 committed
1

Jiwon Yoon's avatar
Jiwon Yoon committed
2
const SubNav = () => {
한규민's avatar
context    
한규민 committed
3
4
5
6
7
8
9
10
11
12
    
    const handleOnClick = () => {
    }

        return (
            <nav class="nav justify-content-end py-1">
                <a class="nav-link text-white" href="/login">로그인</a>
                <a class="nav-link text-white" href="/signup">회원가입</a>
            </nav>
        )
Jiwon Yoon's avatar
Jiwon Yoon committed
13
}
한규민's avatar
push    
한규민 committed
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
    // else if (store.role === "member") {
    //     return (
    //         <nav class="nav justify-content-end py-1">
    //             <a class="nav-link text-white" href="/">마이페이지</a>
    //             <a class="nav-link text-white" onClick={handleOnClick}>로그아웃</a>
    //         </nav>


    //     )
    // } else if (store.role === "admin") {
    //     <nav class="nav justify-content-end py-1">
    //         <a class="nav-link text-white" href="/admin">관리자페이지</a>
    //         <a class="nav-link text-white" href="/">로그아웃</a>
    //     </nav>
    // } else {
    //     <nav class="nav justify-content-end py-1">
    //         <a class="nav-link text-white" href="/">로그인 오류</a>
    //     </nav>
    // }

Jiwon Yoon's avatar
Jiwon Yoon committed
34
35

export default SubNav