File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed
Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 11import 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 }
Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change 11// 라이브러리
2- import React , { useCallback , useState } from 'react' ;
2+ import React , { useCallback } from 'react' ;
33import { 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 = ( ) => {
You can’t perform that action at this time.
0 commit comments