-
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
[feat] 채팅방 생성하기 API 연동 #218
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.
수고하셨습니다~
src/hooks/api/chat/index.ts
Outdated
toastSuccess({ message }); | ||
}, | ||
onError: (error) => { | ||
if (isAxiosError<res.AuthError>(error) && !!error.response) { |
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.
요거 아마 res.Error로 바뀌었을 겁니다!~
return useCoreMutation(createChatRoom, { | ||
onSuccess: (data) => { | ||
const message = | ||
'미팅 신청을 수락했습니다. 채팅방에서 자유롭게 대화해보세요!'; |
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.
채팅방으로 이동하는 navigate만 추가하심 될 것 같아요~
💡 이슈
resolve #160
🤩 개요
채팅방 생성하기 API 연동하기 작업입니다
🧑💻 작업 사항
📖 참고 사항
아직 서버가 안돼서 테스트는 못했습니다 완료되면 머지하겠습니다~