Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix :: 피드백 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
ftery0 committed Aug 26, 2024
1 parent 9793ec8 commit 8c81c63
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 19 deletions.
4 changes: 2 additions & 2 deletions web/src/components/auth/default/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Default= () => {
username,
password
}));
navigate("/sign/number");
navigate("/sign/number/");
};

return (
Expand Down Expand Up @@ -47,7 +47,7 @@ const Default= () => {
<S.bottomWarp>
<S.startButton onClick={handleNext}>다음</S.startButton>
<S.navText>
<span onClick={() => navigate("/sign")}>로그인 하러 가기</span>
<span onClick={() => navigate("/sign/")}>로그인 하러 가기</span>
</S.navText>
</S.bottomWarp>
</S.buttonMain>
Expand Down
6 changes: 3 additions & 3 deletions web/src/components/auth/login/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as Auth from "../start/style";
import Polygon from "../../../assets/Polygon 2.png";
import logo from "../../../assets/logo.svg";

const Login: React.FC = () => {
const Login = () => {
const navigate = useNavigate();
const [users] = useAtom(usersAtom);
const [, setCurrentUser] = useAtom(currentUserAtom);
Expand All @@ -20,7 +20,7 @@ const Login: React.FC = () => {
);
if (user) {
setCurrentUser(user);
navigate("/home");
navigate("/home/");
} else {
alert("아이디 또는 비밀번호가 틀렸습니다.");
}
Expand Down Expand Up @@ -51,7 +51,7 @@ const Login: React.FC = () => {
<S.bottomWarp>
<S.startButton onClick={handleLogin}>시작</S.startButton>
<S.navText>
<span onClick={() => navigate("/sign/name")}>회원가입 하러 가기</span>
<span onClick={() => navigate("/sign/name/")}>회원가입 하러 가기</span>
</S.navText>
</S.bottomWarp>
</S.buttonMain>
Expand Down
4 changes: 2 additions & 2 deletions web/src/components/auth/number/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const Number = () => {
setUsers([...users, newUser]);
setCurrentUser(null);

navigate("/login");
navigate("/login/");
};

return (
Expand All @@ -42,7 +42,7 @@ const Number = () => {
<S.bottomWarp>
<S.startButton onClick={handleSignUp}>회원가입</S.startButton>
<S.navText>
<span onClick={() => navigate("/sign")}>로그인 하러 가기</span>
<span onClick={() => navigate("/sign/")}>로그인 하러 가기</span>
</S.navText>
</S.bottomWarp>
</S.buttonMain>
Expand Down
4 changes: 2 additions & 2 deletions web/src/components/auth/start/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ const Auth = ()=>{

const consumerAuth = ()=>{
setAuthValid(true);
navigate("/login");
navigate("/login/");
}
const guideAuth = ()=>{
setAuthValid(false);
navigate("/login");
navigate("/login/");

}
return(
Expand Down
21 changes: 11 additions & 10 deletions web/src/components/routers/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@ const Router=()=>{
<HostHeader/>
<Routes>
<Route path="/sign/" element={<Auth />}/>
<Route path = "/hosthome" element = {<HostHome/>}/>
<Route path = "/hostmake" element = {<HostMake/>}/>
<Route path="/signup" element={<Default/>}/>
<Route path="/login" element={<Login/>}/>
<Route path="/sign/name" element={<Name/>}/>
<Route path = "hostmain" element = {<HostHome/>}/>
<Route path="/home" element={<Home />}/>
<Route path="/profile" element={<Profile />}/>
<Route path="/search" element={<Search />}/>
<Route path="/search/question" element={<SearchQuestion />}/>
<Route path = "/hosthome/" element = {<HostHome/>}/>
<Route path = "/hostmake/" element = {<HostMake/>}/>
<Route path="/signup/" element={<Default/>}/>
<Route path="/login/" element={<Login/>}/>
<Route path="/sign/name/" element={<Name/>}/>
<Route path="/sign/number/" element={<Number/>}/>
<Route path = "hostmain/" element = {<HostHome/>}/>
<Route path="/home/" element={<Home />}/>
<Route path="/profile/" element={<Profile />}/>
<Route path="/search/" element={<Search />}/>
<Route path="/search/question/" element={<SearchQuestion />}/>
</Routes>
</BrowserRouter>
)
Expand Down

0 comments on commit 8c81c63

Please sign in to comment.