This commit is contained in:
@@ -6,7 +6,7 @@ import { BlogCommentType } from './types/BlogTypes'
|
||||
import moment from 'moment-jalaali'
|
||||
import { CloseCircle, TickCircle } from 'iconsax-react'
|
||||
import { ErrorType } from '../../helpers/types'
|
||||
import { toast } from 'react-toastify'
|
||||
import { toast } from '../../components/Toast';
|
||||
const Comments: FC = () => {
|
||||
const { t } = useTranslation('global')
|
||||
const getBlogComments = useGetBlogComments()
|
||||
@@ -17,7 +17,7 @@ const Comments: FC = () => {
|
||||
getBlogComments.refetch()
|
||||
},
|
||||
onError: (error: ErrorType) => {
|
||||
toast.error(error.response?.data?.error.message[0])
|
||||
toast(error.response?.data?.error.message[0], 'error')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user