part 2
This commit is contained in:
@@ -12,6 +12,7 @@ import * as Yup from 'yup'
|
||||
import { useSingleUpload } from '../../ticket/hooks/useTicketData'
|
||||
import { toast } from 'react-toastify'
|
||||
import { ErrorType } from '../../../helpers/types'
|
||||
import { TickCircle } from 'iconsax-react'
|
||||
|
||||
const CardtoCard: FC = () => {
|
||||
|
||||
@@ -98,11 +99,18 @@ const CardtoCard: FC = () => {
|
||||
|
||||
<div className='mt-10 flex justify-end'>
|
||||
<Button
|
||||
label={t('wallet.submit_slip')}
|
||||
className='w-[180px]'
|
||||
onClick={() => formik.handleSubmit()}
|
||||
isLoading={depositTransfer.isPending || upload.isPending}
|
||||
/>
|
||||
>
|
||||
<div className='flex gap-2 items-center'>
|
||||
<TickCircle
|
||||
size={24}
|
||||
color='white'
|
||||
/>
|
||||
<div>{t('wallet.submit_slip')}</div>
|
||||
</div>
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
</Fragment>
|
||||
|
||||
@@ -7,8 +7,9 @@ import { useGetGetWays, usePayment } from '../hooks/useWalletData'
|
||||
import { toast } from 'react-toastify'
|
||||
import { ErrorType } from '../../../helpers/types'
|
||||
import { GatewayItemType } from '../types/WalletTypes'
|
||||
import { TickCircle } from 'iconsax-react'
|
||||
|
||||
const defaultAmounts = [100000, 200000, 500000, 1000000, 2000000, 5000000, 10000000]
|
||||
const defaultAmounts = [500000, 1000000, 3000000, 5000000, 8000000, 10000000];
|
||||
|
||||
const Online: FC = () => {
|
||||
|
||||
@@ -24,7 +25,7 @@ const Online: FC = () => {
|
||||
toast.error(t('wallet.error_select_price'))
|
||||
} else {
|
||||
const amout = desiredAmount === 0 ? amountSelected : desiredAmount
|
||||
if (amout < 100000) {
|
||||
if (amout < 500000) {
|
||||
toast.error(t('wallet.error_min_price'))
|
||||
return
|
||||
} else {
|
||||
@@ -103,11 +104,20 @@ const Online: FC = () => {
|
||||
|
||||
<div className='mt-10 flex justify-end'>
|
||||
<Button
|
||||
label={t('wallet.pay')}
|
||||
className='w-[180px]'
|
||||
onClick={handlePay}
|
||||
isLoading={payment.isPending}
|
||||
/>
|
||||
>
|
||||
<div className='flex gap-2 items-center'>
|
||||
<TickCircle
|
||||
size={24}
|
||||
color='white'
|
||||
/>
|
||||
<div>{t('wallet.pay')}</div>
|
||||
</div>
|
||||
</Button>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -12,6 +12,7 @@ import * as Yup from 'yup'
|
||||
import { useSingleUpload } from '../../ticket/hooks/useTicketData'
|
||||
import { toast } from 'react-toastify'
|
||||
import { ErrorType } from '../../../helpers/types'
|
||||
import { TickCircle } from 'iconsax-react'
|
||||
|
||||
const CardtoCard: FC = () => {
|
||||
|
||||
@@ -99,11 +100,18 @@ const CardtoCard: FC = () => {
|
||||
|
||||
<div className='mt-10 flex justify-end'>
|
||||
<Button
|
||||
label={t('wallet.submit_slip')}
|
||||
className='w-[180px]'
|
||||
onClick={() => formik.handleSubmit()}
|
||||
isLoading={depositTransfer.isPending || upload.isPending}
|
||||
/>
|
||||
>
|
||||
<div className='flex gap-2 items-center'>
|
||||
<TickCircle
|
||||
size={24}
|
||||
color='white'
|
||||
/>
|
||||
<div>{t('wallet.submit_slip')}</div>
|
||||
</div>
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
</Fragment>
|
||||
|
||||
Reference in New Issue
Block a user