From a24300b62920112ae1ffcf1c77e94a98124b8acf Mon Sep 17 00:00:00 2001
From: sayyyho <323psh@naver.com>
Date: Sat, 16 Nov 2024 02:47:58 +0900
Subject: [PATCH 1/2] =?UTF-8?q?[Fix]=20-=20=EC=9D=B8=EC=8A=A4=ED=83=80?=
=?UTF-8?q?=EA=B7=B8=EB=9E=A8=20=EC=97=90=EB=9F=AC=20=ED=95=B4=EA=B2=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/nugu/Nugu.jsx | 4 +++-
src/pages/nuguPatch/_hooks/useNuguPatch.js | 4 +---
src/pages/signUp/_hooks/useSignUp.js | 8 ++++----
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/pages/nugu/Nugu.jsx b/src/pages/nugu/Nugu.jsx
index 3b74a89..9ed5970 100644
--- a/src/pages/nugu/Nugu.jsx
+++ b/src/pages/nugu/Nugu.jsx
@@ -43,7 +43,9 @@ export const Nugu = () => {
{data.nickname}의 누구
(window.location.href = data.instaUrl)}
+ onClick={() =>
+ (window.location.href = `https://instagram.com/${data.instaUrl}`)
+ }
/>
{data.mbti}
diff --git a/src/pages/nuguPatch/_hooks/useNuguPatch.js b/src/pages/nuguPatch/_hooks/useNuguPatch.js
index 7a70b68..66e2616 100644
--- a/src/pages/nuguPatch/_hooks/useNuguPatch.js
+++ b/src/pages/nuguPatch/_hooks/useNuguPatch.js
@@ -37,9 +37,7 @@ export const useNuguPatch = () => {
nickname: updateData.nickname,
mbti: updateData.mbti,
org: updateData.org,
- insta_url: insta_url
- ? `https://www.instagram.com/${updateData.insta_url}`
- : "",
+ insta_url: updateData.insta_url,
intro: updateData.intro,
keyword1: updateData.keyword1,
keyword2: updateData.keyword2,
diff --git a/src/pages/signUp/_hooks/useSignUp.js b/src/pages/signUp/_hooks/useSignUp.js
index fb13de3..6d8d1af 100644
--- a/src/pages/signUp/_hooks/useSignUp.js
+++ b/src/pages/signUp/_hooks/useSignUp.js
@@ -69,10 +69,10 @@ export const useSignUp = (page) => {
}
if (Number(page) === 3) {
- setSignUpData((prevData) => ({
- ...prevData,
- insta_url: `https://instagram.com/${signUpData.insta_url}`,
- }));
+ // setSignUpData((prevData) => ({
+ // ...prevData,
+ // insta_url: `https://instagram.com/${signUpData.insta_url}`,
+ // }));
navigate("/signUp/submit");
} else {
navigate(nextPath);
From 1b3968b93e182f0c6976a07fb90d27fd772d7b5e Mon Sep 17 00:00:00 2001
From: sayyyho <323psh@naver.com>
Date: Sat, 16 Nov 2024 02:56:24 +0900
Subject: [PATCH 2/2] =?UTF-8?q?[Fix]=20-=20=EC=9D=B8=EC=8A=A4=ED=83=80?=
=?UTF-8?q?=EA=B7=B8=EB=9E=A8=20=EC=97=90=EB=9F=AC=20=ED=95=B4=EA=B2=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/nugu/Nugu.jsx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/pages/nugu/Nugu.jsx b/src/pages/nugu/Nugu.jsx
index 9ed5970..3b74a89 100644
--- a/src/pages/nugu/Nugu.jsx
+++ b/src/pages/nugu/Nugu.jsx
@@ -43,9 +43,7 @@ export const Nugu = () => {
{data.nickname}의 누구
- (window.location.href = `https://instagram.com/${data.instaUrl}`)
- }
+ onClick={() => (window.location.href = data.instaUrl)}
/>
{data.mbti}