File tree Expand file tree Collapse file tree 4 files changed +13
-121
lines changed Expand file tree Collapse file tree 4 files changed +13
-121
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,10 @@ import Home from "@/pages/Home/Home";
7
7
import UserAuth from "./pages/UserAuth/UserAuth" ;
8
8
import Start from "./pages/Start/Start" ;
9
9
import MyPage from "./pages/MyPage/MyPage" ;
10
- import Test from "./pages/Test/Test" ;
11
10
import Instructor from "./pages/Instructor/Instructor" ;
12
11
import Participant from "./pages/Participant/Participant" ;
13
12
import Review from "./pages/Review/Review" ;
14
13
import LectureEnd from "./pages/LectureEnd/LectureEnd" ;
15
- import Example from "./pages/Example/Example" ;
16
14
import ErrorPage from "./pages/ErrorPage/ErrorPage" ;
17
15
18
16
const App = ( ) => {
@@ -25,12 +23,10 @@ const App = () => {
25
23
< Route path = "/userauth" element = { < UserAuth /> } />
26
24
< Route path = "/start" element = { < Start /> } />
27
25
< Route path = "/mypage" element = { < MyPage /> } />
28
- < Route path = "/test" element = { < Test /> } />
29
26
{ ! Modernizr . touchevents && < Route path = "/instructor" element = { < Instructor /> } /> }
30
27
< Route path = "/participant" element = { < Participant /> } />
31
28
< Route path = "/review" element = { < Review /> } />
32
29
< Route path = "/lecture-end" element = { < LectureEnd /> } />
33
- < Route path = "/example" element = { < Example /> } />
34
30
< Route path = "/error" element = { < ErrorPage /> } />
35
31
< Route path = "/*" element = { < Navigate to = "/error" /> } />
36
32
</ Routes >
Original file line number Diff line number Diff line change
1
+ import { useToast } from "@/components/Toast/useToast" ;
2
+ import { useNavigate } from "react-router-dom" ;
3
+
1
4
const HeaderLoginButton = ( ) => {
5
+ const navigate = useNavigate ( ) ;
6
+ const showToast = useToast ( ) ;
7
+ const handleButtonClicked = ( ) => {
8
+ showToast ( { message : "Guest로 시작합니다." , type : "default" } ) ;
9
+ navigate ( "/" ) ;
10
+ } ;
11
+
2
12
return (
3
- < button type = "button" className = "medium-16" >
4
- Boarlog 체험하기
13
+ < button type = "button" className = "medium-16" onClick = { handleButtonClicked } >
14
+ Guest로 시작하기
5
15
</ button >
6
16
) ;
7
17
} ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const HeaderLogo = ({ type, lectureTitle }: { type: "login" | "normal" | "lectur
5
5
const navigate = useNavigate ( ) ;
6
6
7
7
const handleLogoClicked = ( ) => {
8
- if ( type === "login" ) navigate ( "/login " ) ;
8
+ if ( type === "login" ) navigate ( "/userauth " ) ;
9
9
else if ( type === "normal" ) navigate ( "/" ) ;
10
10
} ;
11
11
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments