This commit is contained in:
hamid zarghami
2025-05-03 11:58:06 +03:30
parent 9a2ea35918
commit 551dfa0a56
20 changed files with 124 additions and 66 deletions
+3 -3
View File
@@ -10,7 +10,7 @@ import { useFormik } from 'formik'
import { DepositTransferType } from '../types/WalletTypes'
import * as Yup from 'yup'
import { useSingleUpload } from '../../ticket/hooks/useTicketData'
import { toast } from 'react-toastify'
import { toast } from '../../../components/Toast'
import { ErrorType } from '../../../helpers/types'
import { TickCircle } from 'iconsax-react'
@@ -44,11 +44,11 @@ const CardtoCard: FC = () => {
onSuccess: () => {
formik.resetForm()
setFile(undefined)
toast.success(t('wallet.successful_transfer'))
toast(t('wallet.successful_transfer'), 'success')
window.location.reload()
},
onError: (error: ErrorType) => {
toast.error(error.response?.data?.error.message[0])
toast(error.response?.data?.error?.message[0], 'error')
}
})
}