-
Notifications
You must be signed in to change notification settings - Fork 1
[Fix] 여행카드 제목 클릭 시 해당 여행 글로 이동, 여행 글 작성 페이지에서 각 입력 컴포넌트 간의 여백 수정 #237
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
Conversation
- 링크 영역이 아닌 버튼 영역을 클릭 했을 때 화면 이동을 하도록함
Walkthrough이번 PR은 여러 컴포넌트의 UI 렌더링 및 내비게이션 방식을 수정합니다. GrayBack 컴포넌트에서는 제목에 조건부 패딩 설정이 추가되었고, MyTravelCard에서는 기존의 styled 컴포넌트 대신 인라인 JSX와 Emotion을 활용한 스타일링으로 전환되었습니다. 또한 MyTravelContent와 FindGuideList 컴포넌트에서는 react-router-dom의 Link 컴포넌트 대신 useNavigate 훅을 사용해 클릭 이벤트 시 프로그래매틱하게 라우팅하도록 변경되었습니다. Changes
Sequence Diagram(s)sequenceDiagram
participant U as 사용자
participant C as 컴포넌트
participant N as useNavigate
participant R as 라우터
U->>C: 클릭 이벤트 발생
C->>N: navigate(경로) 호출
N->>R: 라우팅 요청 전달
R-->>C: 해당 페이지 렌더링
Possibly related PRs
Suggested labels
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
Visit the preview URL for this PR (updated for commit 1f58f20): https://travely-3eed5--pr237-fix-fix-add-travel-p-68jzvioh.web.app (expires Sun, 16 Feb 2025 02:09:39 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 9fb496bae76f721f53b116c5fd5e62f624b75e68 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/components/myTravel/MyTravelCard.tsx (1)
115-119: 제목에 호버 효과를 추가하면 좋을 것 같습니다.사용자 경험 향상을 위해 제목에 호버 효과를 추가하는 것을 제안드립니다.
const titleStyle = css` font-size: 18px; font-weight: bold; cursor: pointer; + &:hover { + color: #4a95f2; + } `;
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
src/components/GrayBack.tsx(1 hunks)src/components/myTravel/MyTravelCard.tsx(3 hunks)src/components/myTravel/MyTravelContent.tsx(3 hunks)src/pages/FindGuideList.tsx(2 hunks)
🔇 Additional comments (4)
src/components/GrayBack.tsx (1)
13-13: 패딩 조건부 적용이 잘 구현되었습니다!타이틀의 상단 패딩을 props로 제어할 수 있도록 개선한 것이 좋습니다.
src/pages/FindGuideList.tsx (1)
10-10: Link 컴포넌트를 useNavigate로 교체한 것이 적절합니다!프로그래매틱 네비게이션으로 전환하여 더 유연한 라우팅 제어가 가능해졌습니다.
Also applies to: 14-14, 46-48
src/components/myTravel/MyTravelContent.tsx (1)
93-95: 빈 상태 UI의 네비게이션이 개선되었습니다!BorderBtn 컴포넌트를 사용하여 UI 일관성을 유지하면서 네비게이션을 구현한 것이 좋습니다.
src/components/myTravel/MyTravelCard.tsx (1)
49-51: 여행 카드 제목 클릭 시 상세 페이지로 이동하는 기능이 잘 구현되었습니다!제목을 클릭하여 상세 페이지로 이동하는 네비게이션이 직관적으로 구현되었습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
link 에서 useNavigate로 교체하는 이유가 뭘까요?
📋 작업 세부 사항
🔧 변경 사항 요약
Summary by CodeRabbit