Skip to content

Commit

Permalink
Merge pull request #55 from team-Ollie/main
Browse files Browse the repository at this point in the history
[deploy] auth 수정
  • Loading branch information
leejin-rho authored Jul 3, 2024
2 parents 73db934 + cad784a commit 24e00ba
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apis/hooks/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function useSignUp(userData: userProps) {
mutationKey: ["signUp"],
mutationFn: () => SignUp(userData),
onSuccess: () => {
router.push("/login");
router.push("/success");
},
onError: (error: Error) => {
window.alert("다시 회원가입해주세요.");
Expand Down
2 changes: 2 additions & 0 deletions pages/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ const Login: NextPage = () => {
ref={idInputRef}
value={userInfo.loginId}
onChange={onChange}
className="w-[19.5rem]"
/>

<AuthInput
Expand All @@ -92,6 +93,7 @@ const Login: NextPage = () => {
ref={pwInputRef}
value={userInfo.password}
onChange={onChange}
className="w-[19.5rem]"
/>
</div>
<button type="submit" className="w-[20rem]">
Expand Down
3 changes: 1 addition & 2 deletions pages/signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@ const SignUp: NextPage = () => {
password: "",
nickname: "",
identifier: "",
centerIdx: 0,
centerIdx: 1,
});

//inputRef설정 함수
const idInputRef = useRef<HTMLInputElement>(null);
const pwInputRef = useRef<HTMLInputElement>(null);
const nicknameInputRef = useRef<HTMLInputElement>(null);
const idfInputRef = useRef<HTMLInputElement>(null);
const cidInputRef = useRef<HTMLInputElement>(null);

//onChange
const onChange = (e: React.ChangeEvent<HTMLInputElement>) => {
Expand Down

0 comments on commit 24e00ba

Please sign in to comment.