Skip to content

Commit cbec570

Browse files
Merge pull request #232 from WE-ARE-RACCOONS/develop
리뷰 폼 연결 main에 반영
2 parents 1608865 + ac7b7e1 commit cbec570

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

src/app/senior/edit-profile/page.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ function EditProfilePage() {
176176
if (!tempFields.includes(el)) tempFields.push(el);
177177
});
178178

179-
setTimeData(res.data.times ? res.data.times: []);
179+
setTimeData(res.data.times ? res.data.times : []);
180180
setTotalField(tempFields);
181181
setSelectedField(res.data.field);
182182
setTotalKeyword(res.data.keyword);
@@ -419,7 +419,7 @@ function EditProfilePage() {
419419
)}
420420
</div>
421421
<SetDataBox>
422-
{(timeData && timeData.length > 0) ? (
422+
{timeData && timeData.length > 0 ? (
423423
<>
424424
{timeData &&
425425
timeData.map((el, idx) => (

src/components/Bar/TapBar/JuniorTab/JTabBar.tsx

+7
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import FullModal from '@/components/Modal/FullModal';
2626
import { useRouter } from 'next/navigation';
2727
import findExCode from '@/utils/findExCode';
2828
import { JMCancelAtom } from '@/stores/condition';
29+
import { REVIEW_FORM_URL } from '@/constants/form/reviewForm';
2930

3031
function convertDateType(date: string) {
3132
if (!date) return new Date();
@@ -185,6 +186,12 @@ function TabBar() {
185186
onClick={() => {
186187
setModalType('junior');
187188
setSelectedMentoringId(el.mentoringId);
189+
if (typeof window !== undefined)
190+
window.open(
191+
REVIEW_FORM_URL,
192+
'_blank',
193+
'noopener, noreferrer',
194+
);
188195
}}
189196
/>
190197
)}

src/components/GA/GA.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Script from "next/script";
1+
import Script from 'next/script';
22

33
const GoogleAnalytics = () => (
44
<>
@@ -21,4 +21,4 @@ const GoogleAnalytics = () => (
2121
></Script>
2222
</>
2323
);
24-
export default GoogleAnalytics;
24+
export default GoogleAnalytics;

src/constants/form/reviewForm.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const REVIEW_FORM_URL = 'https://tally.so/r/wa6WW9';

0 commit comments

Comments
 (0)