support plan

This commit is contained in:
hamid zarghami
2025-05-05 16:59:48 +03:30
parent b945ffb0a3
commit f45273fc96
25 changed files with 552 additions and 9 deletions
+4 -1
View File
@@ -15,7 +15,7 @@ import { toast } from '../../components/Toast';
import { useGetDashboardSummary } from '../home/hooks/useHomeData';
import { useNavigate } from 'react-router-dom';
import { Pages } from '../../config/Pages';
import { ErrorType } from '../../helpers/types';
const Notifications: FC = () => {
const navigate = useNavigate()
const { t } = useTranslation('global');
@@ -33,6 +33,9 @@ const Notifications: FC = () => {
getDashboard.refetch()
refetch()
toast(t('success'), 'success')
},
onError: (error: ErrorType) => {
toast(error.response?.data?.error?.message[0], 'error')
}
})
}