Skip to content

Commit

Permalink
fix :: 오류수정
Browse files Browse the repository at this point in the history
  • Loading branch information
KANGYONGSU23 committed Oct 6, 2023
1 parent 5e541ec commit 4d7ef8d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 13 deletions.
3 changes: 1 addition & 2 deletions src/apis/auth/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { useMutation, UseMutationOptions } from "@tanstack/react-query";
import { useToastStore } from "@team-return/design-system";
import axios, { Axios, AxiosError } from "axios";
import { instance } from "../axios";
import axios, { AxiosError } from "axios";
import { AuthCode, IAuthorizationResponse, SendAuthCodeType } from "./type";

const router = "/auth";
Expand Down
6 changes: 1 addition & 5 deletions src/apis/user/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,13 @@ export const Login = (body: RequestBody, checkBoxValue: boolean) => {
const accessExpires = new Date(res.access_expires_at);
const refreshExpires = new Date(res.refresh_expires_at);
setCookie("access_token", res.access_token, {
path: "/",
expires: accessExpires,
});
setCookie("refresh_token", res.refresh_token, {
path: "/",
expires: refreshExpires,
});
if (checkBoxValue) {
setCookie("account_id", body.account_id, {
path: "/",
});
setCookie("account_id", body.account_id);
} else {
removeCookie("account_id");
}
Expand Down
5 changes: 1 addition & 4 deletions src/components/account/login/submitBtn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ function SubmitBtn({
</button>
<p className="mt-[10px] text-caption text-black font-m">
아직 회원이 아니신가요?{" "}
<Link
className="font-b text-subBlue"
href={{ pathname: "/account/signup", query: { page: "1" } }}
>
<Link className="font-b text-subBlue" href="/account/signup">
회원가입
</Link>
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function FirstSignupPage() {
},
{
onSuccess: () => {
navigator.push("signup?page=2");
navigator.push("/account/signup?page=2");
},
}
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default function InputsComponents() {
case "2":
return <SecondSignupPage />;
default:
router.push("signup?page=1");
router.push("/account/signup?page=1");
return <> </>;
}
}

0 comments on commit 4d7ef8d

Please sign in to comment.