-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
QA 이슈 해결 / 공고, 카테고리별 태그 API 추가 (#63)
* comment: delete Console. * feat: ready tab * style: add hover case * feat: selected tags * comment: delete comment * feat: console err fix * feat: ready tab * fix: QA fix * fix(qa) QA에서 발견된 오류 수정 (#58) * fix: 이미지 리소스 파일들 교체 (#64) * fix (#65) * feat(landing): 이미지 수정 (#67) * feat: 사이드바 기능 구현 및 애니메이션 구현 (#66) * feat: ready tab * style: add hover case * feat: ready tab * style: add hover case * feat: ready tab * fix: fixing build err * fix :build err * feat: 카드반영수정
- Loading branch information
Showing
18 changed files
with
336 additions
and
186 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
const getOnboardStatus = () => {}; |
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
24 changes: 24 additions & 0 deletions
24
src/app/(sidebar)/my-recruit/[id]/api/useGetCategoryTags.ts
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 { http } from '@/apis/http'; | ||
import { TagType } from '@/types'; | ||
import { useSuspenseQuery } from '@tanstack/react-query'; | ||
|
||
export const GET_CATEGORY_TAGS = 'get-category-tags'; | ||
|
||
const getCategoryTags = ({ recruitId, type }: { recruitId: string; type: string }) => { | ||
return http.get<TagType[]>({ | ||
url: `recruits/${recruitId}/tags`, | ||
params: { type }, | ||
}); | ||
}; | ||
|
||
export function useGetCategoryTags({ recruitId, type }: { recruitId: string; type: string }) { | ||
const result = useSuspenseQuery({ | ||
queryKey: [GET_CATEGORY_TAGS, recruitId, type], | ||
queryFn: async () => { | ||
const res = await getCategoryTags({ recruitId, type }); | ||
return res.data; | ||
}, | ||
}); | ||
|
||
return result; | ||
} |
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
Oops, something went wrong.