-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
컴포넌트 사용성 개선 및 라우팅 제한 추가, github action worflow 오류 해결 등 버그 5건 수정 (#524)
* fix: (#518) pr 코멘트 메시지 수정, 채널톡 컴포넌트 경로 수정 * feat: (#477) 개인정보 업데이트 쿼리 및 통신 실패에 대한 toast 띄우기 구현 * fix: (#478) UpButton, AddButton 고정 및 width 조정 * refactor: (#476) 뒤로가기 버튼을 누르면 이전 url로 이동하도록 수정 * design: (#474) 토스트 외부에서 상호작용 가능하도록 style 수정 * fix: (#518) path 수정 * fix: (#518) working directory 삭제 * fix: (#477) path 수정 * chore: (#474) 코드 복구
- Loading branch information
1 parent
54fc1da
commit 7e324b0
Showing
12 changed files
with
88 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Storybook-Deploy | ||
name: Deploy | ||
|
||
on: | ||
pull_request: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { useMutation, useQueryClient } from '@tanstack/react-query'; | ||
|
||
import { UpdateUserInfoRequest } from '@type/user'; | ||
|
||
import { updateUserInfo } from '@api/userInfo'; | ||
|
||
import { QUERY_KEY } from '@constants/queryKey'; | ||
|
||
export const useUpdateUserInfo = () => { | ||
const queryClient = useQueryClient(); | ||
|
||
const LOGGED_IN = true; | ||
const { mutate, isLoading, isSuccess, isError, error } = useMutation({ | ||
mutationFn: async (userInfo: UpdateUserInfoRequest) => await updateUserInfo(userInfo), | ||
onSuccess: () => { | ||
queryClient.invalidateQueries({ queryKey: [QUERY_KEY.USER_INFO, LOGGED_IN] }); | ||
}, | ||
onError: () => { | ||
window.console.error('개인 정보 등록에 실패했습니다.'); | ||
}, | ||
}); | ||
|
||
return { mutate, isLoading, isSuccess, isError, error }; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters