-
Notifications
You must be signed in to change notification settings - Fork 0
fix: 사용자 로그아웃 이후 상태 초기화 에러 수정 #221
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이번 변경에서는 SecondaryButton 컴포넌트와 스토리에 'full' 사이즈 옵션이 추가되었습니다. 또한, 마이페이지(MyPage)에서 로그인 여부에 따라 UI가 달라지도록 조건부 렌더링이 적용되었고, 이벤트 상세 페이지에서는 오프라인 이벤트에 한해 지도 정보가 노출됩니다. 메인 페이지에서는 로그인 모달이 특정 상태일 때만 열리도록 조건이 개선되었습니다. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant MyPage
participant AuthStore
participant Router
User->>MyPage: 페이지 진입
MyPage->>AuthStore: 로그인 상태 확인
alt 로그인 상태 true
MyPage->>User: 프로필, 북마크 등 원래 내용 렌더링
else 로그인 상태 false
MyPage->>User: 잠금 아이콘, 안내 메시지, 로그인 버튼 표시
User->>MyPage: 로그인 버튼 클릭
MyPage->>Router: 홈으로 이동 (state: openLogin)
end
sequenceDiagram
participant MainPage
participant AuthStore
participant Location
participant Modal
MainPage->>AuthStore: 로그인 상태 확인
MainPage->>Location: location.state?.openLogin 확인
alt 로그인 안 됨 && openLogin true
MainPage->>Modal: openModal()
end
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
🧰 Additional context used🧠 Learnings (1)src/pages/event/ui/EventDetailsPage.tsx (1)🧬 Code Graph Analysis (1)src/pages/menu/ui/MyPage.tsx (1)
🪛 Biome (1.9.4)src/pages/event/ui/EventDetailsPage.tsx[error] 118-118: Avoid passing content using the dangerouslySetInnerHTML prop. Setting content using code can expose users to cross-site scripting (XSS) attacks (lint/security/noDangerouslySetInnerHtml) ⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (11)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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
CodeRabbit Configuration File (
|
hyeeuncho
left a comment
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.
수고하셨습니다
Summary by CodeRabbit
New Features
버그 수정
개선 사항