percantage
This commit is contained in:
@@ -17,10 +17,11 @@ import { TickCircle } from 'iconsax-react'
|
||||
const CardtoCard: FC = () => {
|
||||
|
||||
const { t } = useTranslation('global')
|
||||
const [file, setFile] = useState<File>()
|
||||
const [percent, setPercent] = useState<number>(0)
|
||||
const getBankAccount = useGetBankAccount()
|
||||
const depositTransfer = useDepositTransfer()
|
||||
const upload = useSingleUpload()
|
||||
const [file, setFile] = useState<File>()
|
||||
const upload = useSingleUpload(setPercent)
|
||||
|
||||
const formik = useFormik<DepositTransferType>({
|
||||
initialValues: {
|
||||
@@ -103,6 +104,7 @@ const CardtoCard: FC = () => {
|
||||
className='xl:w-[180px]'
|
||||
onClick={() => formik.handleSubmit()}
|
||||
isLoading={depositTransfer.isPending || upload.isPending}
|
||||
percentage={percent}
|
||||
>
|
||||
<div className='flex gap-2 items-center'>
|
||||
<TickCircle
|
||||
|
||||
Reference in New Issue
Block a user