Skip to content

Commit

Permalink
Change the interface from /user/info to /user/setting
Browse files Browse the repository at this point in the history
LPVS backend and frontend have the same interface, /user/info,
so the frontend interface is changed to /user/setting.
  • Loading branch information
tiokim committed Sep 20, 2023
1 parent 60d2ef4 commit 3af3eae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function App() {
<Route path="/" element={<Home />} />
<Route path="/home" element={<Home />} />
<Route path="/login" element={<Login />} />
<Route path="/user/info" element={<User />} />
<Route path="/user/setting" element={<User />} />
</Routes>
</div>
</BrowserRouter>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const Home = () => {
{isLoggedIn ? (
<span style={{ color: "black", textDecoration: "none" }}>
<Link
to={"/user/info"}
to={"/user/setting"}
style={{ color: "black", textDecoration: "none" }}
>
{username?.name ? (
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/User.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export const User = () => {

if (!userInfo?.nickname) {
alert('To use service, You must enter a GitHub ID.');
navigate('/user/info');
navigate('/user/setting');
} else {
navigate('/home');
}
Expand Down Expand Up @@ -261,7 +261,7 @@ export const User = () => {
<div className="text-wrapper-16">
<span style={{ color: "black", textDecoration: "none" }}>
<Link
to={"/user/info"}
to={"/user/setting"}
style={{ color: "black", textDecoration: "none" }}
>
{userInfo?.name ? (
Expand Down

0 comments on commit 3af3eae

Please sign in to comment.