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 87fa1109..ac6e4b3f 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/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 new file mode 100644 index 00000000..36fc9521 --- /dev/null +++ b/src/constants/form/reviewForm.ts @@ -0,0 +1 @@ +export const REVIEW_FORM_URL = 'https://tally.so/r/wa6WW9';