Skip to content

Commit 3d50893

Browse files
authored
Merge pull request #289 from LellowMellow/refactor/231213-delete-example-page
Refactor(#288): Example 페이지 제거, 불필요한 routing 제거
2 parents 4c1ce3a + a31b17f commit 3d50893

File tree

4 files changed

+13
-121
lines changed

4 files changed

+13
-121
lines changed

frontend/src/App.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@ import Home from "@/pages/Home/Home";
77
import UserAuth from "./pages/UserAuth/UserAuth";
88
import Start from "./pages/Start/Start";
99
import MyPage from "./pages/MyPage/MyPage";
10-
import Test from "./pages/Test/Test";
1110
import Instructor from "./pages/Instructor/Instructor";
1211
import Participant from "./pages/Participant/Participant";
1312
import Review from "./pages/Review/Review";
1413
import LectureEnd from "./pages/LectureEnd/LectureEnd";
15-
import Example from "./pages/Example/Example";
1614
import ErrorPage from "./pages/ErrorPage/ErrorPage";
1715

1816
const App = () => {
@@ -25,12 +23,10 @@ const App = () => {
2523
<Route path="/userauth" element={<UserAuth />} />
2624
<Route path="/start" element={<Start />} />
2725
<Route path="/mypage" element={<MyPage />} />
28-
<Route path="/test" element={<Test />} />
2926
{!Modernizr.touchevents && <Route path="/instructor" element={<Instructor />} />}
3027
<Route path="/participant" element={<Participant />} />
3128
<Route path="/review" element={<Review />} />
3229
<Route path="/lecture-end" element={<LectureEnd />} />
33-
<Route path="/example" element={<Example />} />
3430
<Route path="/error" element={<ErrorPage />} />
3531
<Route path="/*" element={<Navigate to="/error" />} />
3632
</Routes>

frontend/src/components/Header/components/HeaderLoginButton.tsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
1+
import { useToast } from "@/components/Toast/useToast";
2+
import { useNavigate } from "react-router-dom";
3+
14
const HeaderLoginButton = () => {
5+
const navigate = useNavigate();
6+
const showToast = useToast();
7+
const handleButtonClicked = () => {
8+
showToast({ message: "Guest로 시작합니다.", type: "default" });
9+
navigate("/");
10+
};
11+
212
return (
3-
<button type="button" className="medium-16">
4-
Boarlog 체험하기
13+
<button type="button" className="medium-16" onClick={handleButtonClicked}>
14+
Guest로 시작하기
515
</button>
616
);
717
};

frontend/src/components/Header/components/HeaderLogo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const HeaderLogo = ({ type, lectureTitle }: { type: "login" | "normal" | "lectur
55
const navigate = useNavigate();
66

77
const handleLogoClicked = () => {
8-
if (type === "login") navigate("/login");
8+
if (type === "login") navigate("/userauth");
99
else if (type === "normal") navigate("/");
1010
};
1111

frontend/src/pages/Example/Example.tsx

Lines changed: 0 additions & 114 deletions
This file was deleted.

0 commit comments

Comments
 (0)