-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
149 additions
and
42 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
21 changes: 19 additions & 2 deletions
21
components/ui/BoardCard/BoardCardPackage/BoardCardDropdown.tsx
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { addBookmarkBoard } from '@/service/board'; | ||
import Toast from '@/utils/notification'; | ||
import { useMutation } from '@tanstack/react-query'; | ||
|
||
export default function useAddBookmark() { | ||
const { mutate, isLoading } = useMutation({ | ||
mutationFn: addBookmarkBoard, | ||
onSuccess: () => { | ||
Toast.success('북마크가 성공적으로 저장 되었습니다.'); | ||
}, | ||
onError: () => { | ||
Toast.error('북마크를 저장하지 못했습니다. 잠시후 다시 시도해주세요.🥲'); | ||
}, | ||
}); | ||
return { mutate, isLoading }; | ||
} |
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,16 @@ | ||
import { deleteBookmarkBoard } from '@/service/board'; | ||
import Toast from '@/utils/notification'; | ||
import { useMutation } from '@tanstack/react-query'; | ||
|
||
export default function useDeleteBookmark() { | ||
const { mutate, isLoading } = useMutation({ | ||
mutationFn: deleteBookmarkBoard, | ||
onSuccess: () => { | ||
Toast.success('북마크가 성공적으로 삭제 되었습니다.'); | ||
}, | ||
onError: () => { | ||
Toast.error('북마크를 삭제하지 못했습니다. 잠시후 다시 시도해주세요.🥲'); | ||
}, | ||
}); | ||
return { mutate, isLoading }; | ||
} |
File renamed without changes.
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