-
Notifications
You must be signed in to change notification settings - Fork 0
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
코드리뷰 반영 + 로그아웃 기능 추가 #129
코드리뷰 반영 + 로그아웃 기능 추가 #129
Conversation
|
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.
로그아웃을 진행하고 로그아웃되었다는 알람창이 하나 떴으면 좋겠어요. 바로 첫페이지로 돌아가버리네요
import { useLogout } from '@/shared/api/hooks/useLogout'; | ||
import { BasicButton } from '@/shared/components/common'; |
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.
코드 상으로는 전체적으로 깔끔하게 잘 수정하신 것 같네요.
고생하셨습니다!
type GuidelineInfo = { | ||
id: number; | ||
type: string; | ||
title: string; | ||
content: string; | ||
}; | ||
|
||
type UseGuidelineInfoProps = { | ||
guideline: GuidelineInfo; | ||
seniorId: number; | ||
editMutation: UseMutationResult<string, Error, ModifyGuidelineRequest>; | ||
deleteMutation: UseMutationResult<string, Error, number>; | ||
}; | ||
|
||
type UseGuidelineInfoReturn = { | ||
isMore: boolean; | ||
isEditing: boolean; | ||
guidelineTitle: string; | ||
guidelineContent: string; | ||
toggleContent: () => void; | ||
setIsEditing: (value: boolean) => void; | ||
setGuidelineTitle: (value: string) => void; | ||
setGuidelineContent: (value: string) => void; | ||
editGuideline: () => void; | ||
deleteGuideline: () => void; | ||
}; |
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.
type은 따로 분리하는 것도 괜찮을 것 같아요!
#️⃣ 연관된 이슈
📝 작업 내용
로그아웃 API 연동
회원가입 후 리다이렉트 적용
코드리뷰 반영
스크린샷 (선택)
💬 리뷰 요구사항(선택)
⏰ 현재 버그
✏ Git Close