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 : NavBar 마이그레이션 #266

Merged
merged 1 commit into from
Oct 9, 2023
Merged

feat : NavBar 마이그레이션 #266

merged 1 commit into from
Oct 9, 2023

Conversation

Mayreeel
Copy link
Collaborator

@Mayreeel Mayreeel commented Oct 6, 2023

🛠️ 변경사항

최상위 layout.tsx에서 children을 wrapping하는 방식으로 구현
pathname으로 예외처리 및 useEffect 의존성 배열 변수 할당

☝️ 유의사항



👀 참고자료



❗체크리스트

  • 하나의 메소드는 최소의 기능만 하도록 설정했나요?
  • 수정 가능하도록 유연하게 작성했나요?
  • 필요 없는 import문이나 setter 등을 삭제했나요?
  • 기존의 코드에 영향이 없는 것을 확인하였나요?

Layout.tsx를 Wrapping하는 방식으로 구현
PathName으로 예외처리 및 useEffect 의존성 배열 변수 할당
@Mayreeel Mayreeel self-assigned this Oct 6, 2023
@Mayreeel Mayreeel linked an issue Oct 6, 2023 that may be closed by this pull request
2 tasks
@github-actions
Copy link

github-actions bot commented Oct 6, 2023

Unit Test Results

86 tests  ±0   86 ✔️ ±0   4s ⏱️ -1s
17 suites ±0     0 💤 ±0 
17 files   ±0     0 ±0 

Results for commit 8e4fc8a. ± Comparison against base commit 5551cf1.

Copy link
Member

@Yujin-Baek Yujin-Baek left a comment

Choose a reason for hiding this comment

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

NavBar 컴포넌트를 최상위 layout 파일에 추가하셨네요
NavBar는 대부분의 페이지에서 사용되니까 그렇게 하는 게 좋을 것 같네요
NavBar를 사용하지 않는 페이지에서는 props를 이용해서 사용하지 않도록 하면 될 거 같아요 좋습니당 😄
코드 모두 확인했습니다! ✅
수고하셨습니다 🙌

@Mayreeel
Copy link
Collaborator Author

Mayreeel commented Oct 9, 2023

NavBar 컴포넌트를 최상위 layout 파일에 추가하셨네요 NavBar는 대부분의 페이지에서 사용되니까 그렇게 하는 게 좋을 것 같네요 NavBar를 사용하지 않는 페이지에서는 props를 이용해서 사용하지 않도록 하면 될 거 같아요 좋습니당 😄 코드 모두 확인했습니다! ✅ 수고하셨습니다 🙌

Props로 Setter 함수를 내리지 않는 한 NavBar 컴포넌트 안의 값을 변경할 수 없어서 대신 usePathname으로 현재 주소 값이 NavBar를 사용하지 않는 주소면 NavBar가 보이지 않게 하도록 설계했습니다!

@Mayreeel Mayreeel merged commit 6bb0308 into FE/#207 Oct 9, 2023
3 checks passed
@Mayreeel Mayreeel deleted the FE/#265 branch October 9, 2023 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] NavBar 마이그레이션
2 participants