-
Notifications
You must be signed in to change notification settings - Fork 6
fix:로그아웃 시 로그인 페이지로 리다이렉트 #90
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
components/Dropdown.tsx
Outdated
| item.href ? ( | ||
| <Link key={index} href={item.href} className={buttonStyle}> | ||
| <Link | ||
| key={index} |
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.
key=new Date() 로 하는게 좋을것같아요!
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.
new Date() 도 컴포넌트가 생성될때마다 달라지니 고유성이 보장되지 않는거같아요 ㅠ_ㅠ
item.label은 고유할테니 이값으로 key를 설정할게요 !
components/HeaderMenu.tsx
Outdated
| }, | ||
| { | ||
| label: "로그아웃", | ||
| href: "/login", |
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.
저의 개인적인 의견으로는 랜딩페이지로 이동 시키는게 낫지않을까 싶습니닷
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.
옙 알겠습니당
hongggyelim
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.
수고하셨습니닷!
junjeeong
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.
확인했습니다
로그아웃 시 로그인 페이지로 리다이렉트 해놓았습니다.