Skip to content

Commit

Permalink
feat: 설정뷰 msw get까지 연결 (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
seueooo committed Jan 13, 2025
1 parent eb48d11 commit f80d4a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions src/mocks/modal/responses/settingModalResponses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@ export const SETTING_MODAL_RES = {
},
},
};

export const SETTING_MODIFY_RES = {
PUT_PROFILE: {
status: 200,
message: '요청이 성공했습니다.',
},
};
4 changes: 2 additions & 2 deletions src/shared/apisV2/modal/queries/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { useSuspenseQuery } from '@tanstack/react-query';
import { useQuery } from '@tanstack/react-query';

import { getUserProfile } from '@/shared/apisV2/modal/axios';

Expand All @@ -11,7 +11,7 @@ export interface UserProfile {
}

export const useGetUserProfile = () => {
return useSuspenseQuery<UserProfile>({
return useQuery<UserProfile>({
queryKey: ['UserProfile'],
queryFn: () => getUserProfile(),
});
Expand Down

0 comments on commit f80d4a4

Please sign in to comment.