Skip to content

Commit bfa4117

Browse files
authored
Merge pull request #116 from HASH-SQUAD/develop
develop -> main
2 parents fde96de + 27d3e78 commit bfa4117

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

src/assets/image/HARP_LOGO.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import PropTypes from 'prop-types';
22

3-
export const Harp_Logo = ({ width = '200', height = '981' }) => (
3+
export const Harp_Logo = ({ width = '150', height = '123' }) => (
44
<svg
55
width={width}
66
height={height}

src/pages/home/index.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const Home = () => {
8787
</_.Home_Calendar_Content_Day>
8888
<_.Home_Calendar_Content_Date>
8989
{day.date}
90-
<_.Home_Calendar_Content_Point />
90+
{/* <_.Home_Calendar_Content_Point /> */}
9191
</_.Home_Calendar_Content_Date>
9292
</_.Home_Calendar_Content>
9393
))}
@@ -118,7 +118,12 @@ const Home = () => {
118118
<_.Home_ErrorOrNothing>불러오는 중...</_.Home_ErrorOrNothing>
119119
) : userPlans && userPlans.length > 0 ? (
120120
userPlans.map((plan) => (
121-
<_.Home_Plan_Content key={plan.planId}>
121+
<_.Home_Plan_Content
122+
key={plan.planId}
123+
onClick={() => {
124+
navigate(`/plan/info/${plan.planId}`);
125+
}}
126+
>
122127
<_.Home_Plan_Content_Title>
123128
{plan.planName}
124129
</_.Home_Plan_Content_Title>

src/pages/register/surveyMBTI/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// 라이브러리
2-
import React, { useCallback, useState } from 'react';
2+
import React, { useCallback } from 'react';
33
import { useRecoilState } from 'recoil';
44

55
// 파일
@@ -20,15 +20,15 @@ const SurveyMBTI = () => {
2020
const updatedMbti = selectedMbti.mbti.map((item) =>
2121
item.id === id ? { ...item, state: selectedState } : item
2222
);
23-
setSelectedMbti({ mbti: updatedMbti });
23+
setSelectedMbti((prev) => ({ ...prev, mbti: updatedMbti }));
2424

25-
const mbti = updatedMbti
25+
const mbtiString = updatedMbti
2626
.map((item) => (item.state ? item.right : item.left))
2727
.join('');
2828

29-
setStringMbti(mbti);
29+
setStringMbti(mbtiString);
3030
},
31-
[setSelectedMbti]
31+
[selectedMbti, setSelectedMbti, setStringMbti]
3232
);
3333

3434
const handleSkip = () => {

0 commit comments

Comments
 (0)