fix: onClick navigate 대신 Link를 사용해 Ctrl+클릭(새 탭) 동작 지원#66
Open
y00eunji wants to merge 1 commit into
Open
Conversation
사용자 사이트(2025/2026/participant-portal)의 클릭 이동을
component={Link} 기반으로 전환:
- 장바구니 아이콘, 로그인 버튼, 유저 메뉴(주문내역/로그인)
- 프로필 편집/감사/세션 목록, 프로필 메뉴
결제·로그인 완료 후 프로그램 이동과 Router 컨텍스트 밖
스낵바 버튼은 navigate() 유지.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
작업 내용
Ctrl/Cmd+클릭으로 새 탭에서 열기 위해
onClick으로navigate()를 호출을component={Link}기반으로 전환했습니다.변경 (Link로 전환)
navigate() 유지
/이동 → 액션 후 프로그램 이동shop/product.tsx의 스낵바 "장바구니로 가기" →SnackbarProvider가RouterProvider바깥이라 Link 사용 시 Router 컨텍스트 에러 발생하여 유지범위
사용자 사이트(2025/2026/participant-portal)만 작업 진행했습니다.