This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { Edit } from "iconsax-react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { toast } from "react-toastify";
|
||||
import { toast } from '../../../../../components/Toast';
|
||||
import ProgressBar from "../../../../../components/ProgressBar";
|
||||
import TrashWithConfrim from "../../../../../components/TrashWithConfrim";
|
||||
import { ErrorType } from "../../../../../helpers/types";
|
||||
@@ -39,7 +39,7 @@ const CheckLists = ({
|
||||
{ id, params: { isDone: !checked }, taskId },
|
||||
{
|
||||
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