From 938bf3ef8c6f6679431a76d162027c9b81485178 Mon Sep 17 00:00:00 2001 From: leehyewon0531 Date: Thu, 18 Apr 2024 13:27:15 +0900 Subject: [PATCH 1/2] =?UTF-8?q?RAC-333=20feat:=20=EB=A6=AC=EB=B7=B0=20?= =?UTF-8?q?=ED=8F=BC=20=EC=97=B0=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Bar/TapBar/JuniorTab/JTabBar.tsx | 7 +++++++ src/constants/form/reviewForm.ts | 1 + 2 files changed, 8 insertions(+) create mode 100644 src/constants/form/reviewForm.ts diff --git a/src/components/Bar/TapBar/JuniorTab/JTabBar.tsx b/src/components/Bar/TapBar/JuniorTab/JTabBar.tsx index 87fa1109..959a184e 100644 --- a/src/components/Bar/TapBar/JuniorTab/JTabBar.tsx +++ b/src/components/Bar/TapBar/JuniorTab/JTabBar.tsx @@ -26,6 +26,7 @@ import FullModal from '@/components/Modal/FullModal'; import { useRouter } from 'next/navigation'; import findExCode from '@/utils/findExCode'; import { JMCancelAtom } from '@/stores/condition'; +import { REVIEW_FORM_URL } from '@/constants/form/reviewForm'; function convertDateType(date: string) { if (!date) return new Date(); @@ -185,6 +186,12 @@ function TabBar() { onClick={() => { setModalType('junior'); setSelectedMentoringId(el.mentoringId); + if (typeof window !== undefined) + window.open( + REVIEW_FORM_URL, + '_blank', + 'noopener, noreferrer', + ); }} /> )} diff --git a/src/constants/form/reviewForm.ts b/src/constants/form/reviewForm.ts new file mode 100644 index 00000000..73f3efc8 --- /dev/null +++ b/src/constants/form/reviewForm.ts @@ -0,0 +1 @@ +export const REVIEW_FORM_URL = 'https://tally.so/r/wa6WW9'; \ No newline at end of file From 487eed283896ac5d40bd6fe7eda65c647daf6268 Mon Sep 17 00:00:00 2001 From: leehyewon0531 Date: Thu, 18 Apr 2024 13:28:12 +0900 Subject: [PATCH 2/2] =?UTF-8?q?RAC-333=20chore:=20Prettier=20format=20fix?= =?UTF-8?q?=20=EC=8B=A4=ED=96=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/senior/edit-profile/page.tsx | 4 ++-- src/components/Bar/TapBar/JuniorTab/JTabBar.tsx | 10 +++++----- src/components/GA/GA.jsx | 4 ++-- src/constants/form/reviewForm.ts | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/app/senior/edit-profile/page.tsx b/src/app/senior/edit-profile/page.tsx index 8da765da..4233f20c 100644 --- a/src/app/senior/edit-profile/page.tsx +++ b/src/app/senior/edit-profile/page.tsx @@ -176,7 +176,7 @@ function EditProfilePage() { if (!tempFields.includes(el)) tempFields.push(el); }); - setTimeData(res.data.times ? res.data.times: []); + setTimeData(res.data.times ? res.data.times : []); setTotalField(tempFields); setSelectedField(res.data.field); setTotalKeyword(res.data.keyword); @@ -419,7 +419,7 @@ function EditProfilePage() { )} - {(timeData && timeData.length > 0) ? ( + {timeData && timeData.length > 0 ? ( <> {timeData && timeData.map((el, idx) => ( diff --git a/src/components/Bar/TapBar/JuniorTab/JTabBar.tsx b/src/components/Bar/TapBar/JuniorTab/JTabBar.tsx index 959a184e..ac6e4b3f 100644 --- a/src/components/Bar/TapBar/JuniorTab/JTabBar.tsx +++ b/src/components/Bar/TapBar/JuniorTab/JTabBar.tsx @@ -187,11 +187,11 @@ function TabBar() { setModalType('junior'); setSelectedMentoringId(el.mentoringId); if (typeof window !== undefined) - window.open( - REVIEW_FORM_URL, - '_blank', - 'noopener, noreferrer', - ); + window.open( + REVIEW_FORM_URL, + '_blank', + 'noopener, noreferrer', + ); }} /> )} diff --git a/src/components/GA/GA.jsx b/src/components/GA/GA.jsx index 07abdf2c..5e569c5d 100644 --- a/src/components/GA/GA.jsx +++ b/src/components/GA/GA.jsx @@ -1,4 +1,4 @@ -import Script from "next/script"; +import Script from 'next/script'; const GoogleAnalytics = () => ( <> @@ -21,4 +21,4 @@ const GoogleAnalytics = () => ( > ); -export default GoogleAnalytics; \ No newline at end of file +export default GoogleAnalytics; diff --git a/src/constants/form/reviewForm.ts b/src/constants/form/reviewForm.ts index 73f3efc8..36fc9521 100644 --- a/src/constants/form/reviewForm.ts +++ b/src/constants/form/reviewForm.ts @@ -1 +1 @@ -export const REVIEW_FORM_URL = 'https://tally.so/r/wa6WW9'; \ No newline at end of file +export const REVIEW_FORM_URL = 'https://tally.so/r/wa6WW9';