This commit is contained in:
hamid zarghami
2025-02-23 15:43:04 +03:30
parent 5916ab100d
commit bc3d068dfd
24 changed files with 278 additions and 121 deletions
@@ -11,6 +11,7 @@ import { DepositTransferType } from '../types/WalletTypes'
import * as Yup from 'yup'
import { useSingleUpload } from '../../ticket/hooks/useTicketData'
import { toast } from 'react-toastify'
import { ErrorType } from '../../../helpers/types'
const CardtoCard: FC = () => {
@@ -42,6 +43,9 @@ const CardtoCard: FC = () => {
formik.resetForm()
setFile(undefined)
toast.success(t('wallet.successful_transfer'))
},
onError: (error: ErrorType) => {
toast.error(error.response?.data?.error.message[0])
}
})
}