|
|
@@ -8,7 +8,7 @@ import { Button } from 'reactstrap';
|
|
|
import AppContainer from '~/client/services/AppContainer';
|
|
|
import { toastError } from '~/client/util/apiNotification';
|
|
|
import { apiPost } from '~/client/util/apiv1-client';
|
|
|
-import { useCommentPreviewRenderer } from '~/stores/renderer';
|
|
|
+import { useCommentPreviewOptions } from '~/stores/renderer';
|
|
|
|
|
|
import { ICommentHasId, ICommentHasIdList } from '../interfaces/comment';
|
|
|
import { useSWRxPageComment } from '../stores/comment';
|
|
|
@@ -36,7 +36,7 @@ const PageComment:FC<Props> = memo((props:Props):JSX.Element => {
|
|
|
} = props;
|
|
|
|
|
|
const { data: comments, mutate } = useSWRxPageComment(pageId);
|
|
|
- const { data: growiRenderer } = useCommentPreviewRenderer();
|
|
|
+ const { data: growiRenderer } = useCommentPreviewOptions();
|
|
|
|
|
|
const [commentToBeDeleted, setCommentToBeDeleted] = useState<ICommentHasId | null>(null);
|
|
|
const [isDeleteConfirmModalShown, setIsDeleteConfirmModalShown] = useState<boolean>(false);
|