implemented ratings, fixes
This commit is contained in:
parent
4801cf3a13
commit
d1da980501
31 changed files with 775 additions and 236 deletions
|
|
@ -4,7 +4,8 @@ import { BookChapterDeleteMutation } from '@generated/types';
|
|||
import { Link } from '@tanstack/react-router';
|
||||
import { bookFragment } from '../fragments';
|
||||
import { useToastMutation } from '../hooks/useToastMutation';
|
||||
import { bookChapterListQuery } from '../pages/work/book/$bookId/overview';
|
||||
import { bookChapterQuery } from '../pages/work/book/$bookId/chapter/$chapterId/view';
|
||||
import { bookChapterListQuery } from '../pages/work/book/$bookId/overview/contents';
|
||||
|
||||
export function BookChapterCard({
|
||||
bookId,
|
||||
|
|
@ -20,7 +21,7 @@ export function BookChapterCard({
|
|||
const { update: chapterDelete } = useToastMutation<BookChapterDeleteMutation>({
|
||||
mutation,
|
||||
successMsg: 'Chapter deleted successfully',
|
||||
refetchQueries: [bookChapterListQuery]
|
||||
refetchQueries: [bookChapterListQuery, bookChapterQuery]
|
||||
});
|
||||
return (
|
||||
<Card.Root width="100%" variant="elevated">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue