+
+
+
(
+ // FIXME: 로직 확인 필요 - 멘토님 도움 필요
+ {
+ onChange(checked);
+ setLikeLectureParams((prev) => ({
+ ...prev,
+ mode: !!checked,
+ page: 0,
+ }));
+ }}
+ onBlur={onBlur}
+ ref={ref}
+ />
+ )}
/>
+
- )}
+
+
{renderLikeCardContent()}
diff --git a/src/app/login/callback/page.tsx b/src/app/login/callback/page.tsx
index c4a99e8..918e22f 100755
--- a/src/app/login/callback/page.tsx
+++ b/src/app/login/callback/page.tsx
@@ -5,16 +5,18 @@ import { useRouter, useSearchParams } from "next/navigation";
import { SquareLoader } from "react-spinners";
import { setCookie } from "cookies-next";
-import { toast } from "sonner";
import useGetAccessToken from "@/features/authentication/api/useGetAccessToken";
import useGetLoginUserInfo from "@/entities/user/api/useGetLoginUserInfo";
import useLoginedUserStore from "@/shared/store/user";
+import { useToast } from "@/shared/hooks/useToast";
const LoginCallback = () => {
const router = useRouter();
const searchParams = useSearchParams();
const code = searchParams.get("code");
+ const { toast } = useToast();
+
// Access Token을 가져오는 훅
const {
data: tokenData,
@@ -56,9 +58,16 @@ const LoginCallback = () => {
// 로그인 사용자 정보 요청
if (isLoginUserSuccess) {
setLoginedUser(loginUserData.data.data);
- toast("회원가입 / 로그인 성공", {
- description: "시ː니어를 위한 문화생활 플랫폼에 오신 걸 환영합니다!",
- });
+ if (tokenData.is_new === true) {
+ toast({
+ title: "회원가입이 완료되었습니다.",
+ });
+ }
+ if (tokenData.is_new === false) {
+ toast({
+ title: "로그인 성공!",
+ });
+ }
if (tokenData.is_new) {
router.push("/signup");
@@ -71,8 +80,8 @@ const LoginCallback = () => {
}
if (tokenError) {
- toast("로그인 실패", {
- description: `${tokenError}`,
+ toast({
+ title: "로그인 실패!",
});
}
}, [
diff --git a/src/app/page.tsx b/src/app/page.tsx
index 379addb..b6e2e7f 100755
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -277,7 +277,11 @@ const Home = () => {
);
}
- return
;
+ return (
+
+
+
+ );
};
return (
@@ -339,7 +343,9 @@ const Home = () => {