fix: addteam페이지에서 사이드바 프로필 보이게 수정#80
Conversation
Summary of ChangesHello @Jieunsse, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! 이 PR은 addteam 페이지에서 사이드바 하단에 사용자 프로필이 올바르게 표시되지 않던 UI 버그를 해결합니다. 현재 사용자 데이터를 가져와 Sidebar 컴포넌트에 필요한 프로필 정보를 전달함으로써, 애플리케이션 전반에 걸쳐 일관된 사용자 경험을 제공하도록 개선되었습니다. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
| isLoggedIn={!!currentUser} | ||
| profileImage={ | ||
| <ProfileImage src={currentUser?.image} size="sm" variant="profile" showBorder={false} /> | ||
| } | ||
| profileName={currentUser?.nickname} | ||
| profileTeam={currentUser?.email} |
There was a problem hiding this comment.
이 페이지가 인증된 사용자 전용이라고 가정하면, useSuspenseCurrentUserQuery를 사용하는 것이 더 적절해 보입니다. 이렇게 하면 currentUser 데이터가 렌더링 전에 항상 존재함을 보장하여, '로그인' 버튼이 잠깐 나타났다 사라지는 UI 깜빡임 현상을 방지할 수 있습니다. 또한, 옵셔널 체이닝(?.) 없이 코드를 단순화할 수 있습니다.
이 변경사항을 적용하려면 9행에서 useCurrentUserQuery를 useSuspenseCurrentUserQuery로 교체하고, 6행의 import 구문도 함께 수정해주세요.
| isLoggedIn={!!currentUser} | |
| profileImage={ | |
| <ProfileImage src={currentUser?.image} size="sm" variant="profile" showBorder={false} /> | |
| } | |
| profileName={currentUser?.nickname} | |
| profileTeam={currentUser?.email} | |
| isLoggedIn | |
| profileImage={ | |
| <ProfileImage src={currentUser.image} size="sm" variant="profile" showBorder={false} /> | |
| } | |
| profileName={currentUser.nickname} | |
| profileTeam={currentUser.email} |
Summary