Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/TripPlace_Accommodation: 페이지 동적 경로 설정 및 storage 재수정 사항 반영 #75

Merged
merged 9 commits into from
Mar 11, 2024

Conversation

uniS2
Copy link
Contributor

@uniS2 uniS2 commented Mar 11, 2024

Overview

related #55 #57 #59

작업 내용

  • (관광)장소 / 숙소 storage state 재수정 사항 반영 및 reset action 삭제 (불필요)

    [ {'1': [{데이터}, {데이터}, ... ]}, {...}, ...] -> [ [{데이터}, {데이터}, ...], [...], .. ]

  • TripPlace, TripAccommodation 페이지 동적 경로 적용: [tripdate]

  • useParams() 이용 하여 tripDate, index 값 하위 컴포넌트에 전달

달성도

TripPlace 페이지 TripEdit 페이지
TripPlace 페이지 TripEdit
  • Storage 관련 기능 구현 완료하였습니다.
  • 지도 기능 및 UX 보완할 예정입니다.

😀 To. @hyeonjuuu 님 storage 맞게 title 값 렌더링되고 있는거 확인했습니다.
세부적으로 페이지 맞게 렌더링되도록 수정만 하면 될 거 같아요! 파이팅 😎
state 구조

PR 체크리스트

  • 다음 사항을 읽고 포함하였습니다.
  1. 코드 스타일은 프로젝트 규칙을 따릅니다.
  2. 기능 구현의 경우, 코드는 문제없이 빌드 및 실행됩니다.
  3. 새로운 기능을 테스트한 경우, 기존 기능에 영향을 미치지 않습니다.
  4. 필요한 관련사항을 이슈템플릿에 추가하였습니다.

uniS2 added 9 commits March 11, 2024 17:40
- 변경 전 state: `[ {'1': [{데이터}, {데이터}, ... ]}, {...}, ...]`
- 변경 후 state: `[ [{데이터}, {데이터}, ...], [...], .. ]`
- `setSelctedPlaces` action 수정
- `resetSelectedPlaces` action 삭제

Github issue WeonTrip-WonT#59
- 동적 경로 적용: `[tripdate]`
- `useParams()` 이용하여 tripDate, index 값 하위 컴포넌트에 전달
- 각 컴포넌트에서 `useParams()`를 불러와 관리할지 고민입니다.

Github issue WeonTrip-WonT#59
- `isSelected` state: `useState()` 훅으로 상태 관리

Github issue WeonTrip-WonT#59
- 동적 경로 적용: `[tripdate]`

Github issue WeonTrip-WonT#55
- 변경 전 state: `[ {'1': [{데이터}, {데이터}, ... ]}, {...}, ...]`
- 변경 후 state: `[ [{데이터}, {데이터}, ...], [...], .. ]`
- `setSelctedAccommodations` action 수정
- `resetSelectedAccommodations` action 삭제

Github issue WeonTrip-WonT#59
- `useParams()` 이용하여 tripDate, index 값 하위 컴포넌트에 전달
- 각 컴포넌트에서 `useParams()`를 불러와 관리할지 고민입니다.

Github issue WeonTrip-WonT#59
@uniS2 uniS2 added ✅Feat 기능 추가, 삭제, 변경 💻Next Next 프레임워크 작업 🗝️Fix 버그, 오류 수정 💻TypeScript 사용언어 🐻Zustand labels Mar 11, 2024
@uniS2 uniS2 requested a review from hyeonjuuu March 11, 2024 09:18
@uniS2 uniS2 self-assigned this Mar 11, 2024
Copy link
Contributor

@hyeonjuuu hyeonjuuu left a comment

Choose a reason for hiding this comment

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

소이님 정말 고생 많으셨습니다..ㅠㅠ 저도 나머지 로직 구현해보겠습니다! 감사합니다!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅Feat 기능 추가, 삭제, 변경 🗝️Fix 버그, 오류 수정 💻Next Next 프레임워크 작업 💻TypeScript 사용언어 🐻Zustand
Projects
None yet
2 participants