Skip to content

Commit

Permalink
๐Ÿ“ Chore(#47): ์ฃผ์„ ์‚ญ์ œ
Browse files Browse the repository at this point in the history
  • Loading branch information
JIY00N2 committed Dec 4, 2023
1 parent 280510a commit a301950
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/components/_common/Modal/LoginModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const LoginModal = ({ trigger }: PropsWithChildren<{ trigger: ReactNode }>) => {
const { isOpen, setIsOpen } = useLoginModalOpenStore();
const { setIsOpen: setIsWelcomeModalOpen } = useWelcomeModalOpenStore();
const searchParams = useSearchParams();
// const pathname = usePathname();
const router = useRouter();
const { setIsAuth } = useAuthStore();
const { toast } = useToast();
Expand All @@ -39,17 +38,6 @@ const LoginModal = ({ trigger }: PropsWithChildren<{ trigger: ReactNode }>) => {
setSteps(1);
setIsOpen(true);
} else {
// axios
// .post("https://steady-client.vercel.app/api/login", {
// token: {
// access: token.accessToken,
// refresh: token.refreshToken,
// },
// })
// .then(() => {
// setIsAuth(true);
// router.replace("/");
// });
setCookie("access_token", token.accessToken, {
path: "/",
domain: ".steadies.kr",
Expand All @@ -61,9 +49,6 @@ const LoginModal = ({ trigger }: PropsWithChildren<{ trigger: ReactNode }>) => {
setIsAuth(true);
router.replace("/");
setIsWelcomeModalOpen(true);
// if (pathname === "/" && steps === 6) {
// setIsOpen(true);
// }
}
}
});
Expand All @@ -84,7 +69,6 @@ const LoginModal = ({ trigger }: PropsWithChildren<{ trigger: ReactNode }>) => {
variant: "green",
});
useNewUserInfoStore.persist.clearStorage();
//useLoginStepsStore.persist.clearStorage();
router.push(`${userProfileCreated.headers.location}`);
}
} catch (error) {
Expand Down

0 comments on commit a301950

Please sign in to comment.