From d9fd460dc6af8c809b1acd800ef7c42365bf6afd Mon Sep 17 00:00:00 2001 From: Innei Date: Wed, 3 Apr 2024 14:43:54 +0800 Subject: [PATCH] fix: comment toast Signed-off-by: Innei --- src/components/modules/comment/CommentBox/hooks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/modules/comment/CommentBox/hooks.tsx b/src/components/modules/comment/CommentBox/hooks.tsx index b7af60e3a4..391e6b987e 100644 --- a/src/components/modules/comment/CommentBox/hooks.tsx +++ b/src/components/modules/comment/CommentBox/hooks.tsx @@ -2,7 +2,6 @@ import { useMutation, useQueryClient } from '@tanstack/react-query' import { useCallback, useContext } from 'react' -import { toast } from 'react-toastify' import { produce } from 'immer' import { atom, useAtomValue } from 'jotai' import { atomWithStorage, selectAtom } from 'jotai/utils' @@ -20,6 +19,7 @@ import type { createInitialValue } from './providers' import { useIsLogged } from '~/atoms/hooks' import { apiClient, getErrorMessageFromRequestError } from '~/lib/request' import { jotaiStore } from '~/lib/store' +import { toast } from '~/lib/toast' import { buildQueryKey } from '../Comments' import { MAX_COMMENT_TEXT_LENGTH } from './constants'