-
Notifications
You must be signed in to change notification settings - Fork 1
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: 마이페이지 모달 UI #72
The head ref may contain hidden characters: "feat#66/\uB9C8\uC774\uD398\uC774\uC9C0-\uBAA8\uB2EC-ui"
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.
고생하셨습니다!! 이제 얼추 UI 다 완료되어가는거 같아서 기쁘네요 😁😁
src/utils/useLogout.ts
Outdated
|
||
const onLogout = () => { | ||
localStorage.removeItem('accessToken'); | ||
localStorage.removeItem('refreshToken'); |
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.
아마 리프레시토큰은 쿠키에 있어서 client.ts
가 처리해줄거라 localStorage
에는 따로 저장 안될거에요!!
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.
아하 그럼 일단 accessToken
만 localStorage
에서 삭제하고 refreshToken
은 쿠키에서 삭제하는걸로 수정할게요!
src/utils/useWithDraw.ts
Outdated
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.
utils
폴더는 자잘한 작업을 처리하기 위한 (format 같은 로직처리) 함수들을 모아놓는 폴더여서 함수 목적에 조금 더 부합하는 hook
폴더에 위치시키시거나 아니면 그냥 탈퇴하기 사용하는 로직에서 직접적으로 사용해주셔도 무방할 것 같습니다..!! 😁
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.
아항 그럼 hooks
폴더에 위치시키는 걸로 수정하겠습니당 !!
1. 무슨 이유로 코드를 변경했나요?
2. 어떤 위험이나 장애를 발견했나요?
3. 관련 스크린샷을 첨부해주세요.
4. 완료 사항
마이페이지 모달 UI를 구현하였습니다
5. 추가 사항
현재 탈퇴하기
api
는 안나왔지만 로직만 구현해놓은 상태입니다!