Skip to content

Conversation

@Squarecat-meow
Copy link
Collaborator

@Squarecat-meow Squarecat-meow commented Sep 8, 2025

무엇을 했나요?

  • <내 체험 관리>페이지의 카드 이미지를 subImages[0]에서 bannerImage로 변경했습니다.
  • 예약 현황 페이지의 달력과 모달, 반응형 UI를 작업했습니다.

스크린샷

image image image image image

@vercel
Copy link

vercel bot commented Sep 8, 2025

@Squarecat-meow is attempting to deploy a commit to the Hong's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Collaborator

@LeeTaegyung LeeTaegyung left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다! 코멘트 드렸는데, 코드 취향에 관련된 내용도 있어서 ㅎㅎ 보시구 합당하다 싶으면 적용해주시면 될거 같습니다!

queryFn: getMyExperiences,
});
const { setIsTabOpen } = useContext(TabContext);
const { accessToken } = useTokenStore();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const accessToken = useTokenStore(state => state.accessToken) 으로 수정해주셔야 할거 같아요!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아 그러네요!

<section className='flex flex-col items-center gap-8'>
<div className='w-full flex flex-col gap-2 md:justify-between'>
<div className='flex gap-4'>
<BackBtn />
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

백버튼 위치를 다 합치고 나서 한번에 좀 정리를 해야할거 같네요 😅

Comment on lines 22 to 28
const fn = async () => {
const activitiesList = await getMyExperiences();
if (!activitiesList || activitiesList.totalCount === 0)
setActivities(null);
setActivities(activitiesList);
};
fn();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

제가 보기엔 이 코드에 리액트쿼리를 사용해야할 것 같은 부분인데, 사용하지 않은 이유가 있으신가요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

네 그러네요ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ이것도 팩토리에 넣어두겠습니다!

Comment on lines 63 to 65
) : (
<LoadingSpinner />
)}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

분기처리가 너무 세세해서 한눈에 안들어오는거 같아요.
jsx 문법이 시작하기 전에 if(activities === undefined) return <LoadingSpinner /> 해주는게 좀 더 깔끔할거 같아요.

Comment on lines 82 to 90
Promise.all(
data.map((el) => {
return getMyReservationStatus(
el.id,
format(calendarDisplayDate, 'yyyy'),
format(calendarDisplayDate, 'MM')
);
})
).then((res) => setReservedSchedule(res));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

api 요청을 하나만 하는데, Promise.all이 필요할까 싶습니다.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data로 받아온 모든 체험 일정들을 map으로 순회하면서 API 요청을 동기로 받아오는 부분이에요!

queryOptions({
queryKey: [...queries.myExperiences()],
queryFn: () => getMyExperiences(),
enabled: !!accessToken,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AuthProvider에서 유저가 로그인되지 않은 상황이라면, 리다이렉트로 마이페이지에 접속하지 못하도록 처리가 되어 있어서, accessToken으로 enabled 처리를 해줄 필요가 있나 싶네요.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오... 아예 접근 자체가 안되면 accessToken은 빼도 될 것 같습니다!

@Squarecat-meow Squarecat-meow merged commit 153aa8e into hong0121:dev Sep 12, 2025
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants