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

[#21] 헤더 유저 프로필 클릭 시 모달 생성 #41

Merged
merged 13 commits into from
Jan 17, 2024
Merged

Conversation

JitHoon
Copy link
Collaborator

@JitHoon JitHoon commented Jan 16, 2024

close #21

Description

아래 영상을 확인해 주세요!

  • 모달 레이아웃 작업
  • cooki에서 user 정보 불러와 화면에 보여주기 (로그인 API 구현 이후에 작업)
  • 로그아웃 버튼 (로그인 API 구현 이후에 작업)

스크린샷 (Optional)

2024-01-16.6.23.33.mov

Copy link

vercel bot commented Jan 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cool-peace ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 17, 2024 7:27am
cool-peace-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 17, 2024 7:27am

@JitHoon JitHoon added feat 기능 구현 design 스타일 labels Jan 16, 2024
Copy link
Collaborator

@turkey-kim turkey-kim left a comment

Choose a reason for hiding this comment

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

참 빠르신 것 같습니다! 고생많으셨습니다👍

Copy link
Collaborator

@dabin-Hailey dabin-Hailey left a comment

Choose a reason for hiding this comment

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

수고하셨습니당~!!

<UserIcon
src={user}
alt="사용자 프로필"
onClick={() => setIsUserModalOpen(prev => !prev)}
Copy link
Collaborator

Choose a reason for hiding this comment

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

매개변수가 없으니 handleModalOpen 등의 이름으로 함수로 만들신 후에 onClick={}에 함수명만 넣으셔도 좋을 것같습니다!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

동작이 setIsUserModalOpen 이전 불리안 값 반전만 있어서, 이런 경우 함수명을 추가로 지정하여 사용하지 않고 작성해 왔습니다...!

다른 예시
image

혹시 따로 함수를 빼서 사용해야하는 이유가 있는지 궁금합니다!

Copy link
Member

@jiohjung98 jiohjung98 left a comment

Choose a reason for hiding this comment

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

고생 많으셨습니다 !

@@ -31,6 +29,10 @@ const Header = () => {
export default Header;

const Container = styled.header`
Copy link
Member

Choose a reason for hiding this comment

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

고생많으셨습니다 ~ 해당 코드 받아서 사용하니까 헤더 고정 잘 됩니다!

@JitHoon JitHoon merged commit b427a0c into dev Jan 17, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design 스타일 feat 기능 구현
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat] 헤더 유저 프로필 클릭 시 모달 생성
4 participants