|
|
@@ -184,17 +184,9 @@ const WPayoutInfo = ({ pixType, onChange }) => {
|
|
|
return (
|
|
|
<div className={styles.payout_box}>
|
|
|
<div className={styles.toggles}>
|
|
|
- {renderToggle(PaymentGears.cashapp, WithdrawType.CashApp)}
|
|
|
{renderToggle(PaymentGears.paypal, WithdrawType.Paypal)}
|
|
|
</div>
|
|
|
|
|
|
- {
|
|
|
- pixType === WithdrawType.CashApp && <div className={`${styles.info_box} ${cashAppTag ? styles.active : ""}`}>
|
|
|
- <TagIcon />
|
|
|
- <span>{cashAppTag || i18n.t("withdrawInfo.cash_app.cash_tag")}</span>
|
|
|
- </div>
|
|
|
- }
|
|
|
-
|
|
|
{
|
|
|
pixType === WithdrawType.Paypal && <div className={`${styles.info_box} ${paypalEmail ? styles.active : ""}`}>
|
|
|
<EmailIcon />
|
|
|
@@ -207,13 +199,11 @@ const WPayoutInfo = ({ pixType, onChange }) => {
|
|
|
|
|
|
const WPayoutEdit = ({ pixType }) => {
|
|
|
const { paypalEditCd, cashAppEditCd, getCooldownSec } = useWithdrawInfo();
|
|
|
- const cashapp = pixType === WithdrawType.CashApp;
|
|
|
const paypal = pixType === WithdrawType.Paypal;
|
|
|
- const sec = getCooldownSec(cashapp ? 1 : 2);
|
|
|
- const ts = cashapp ? cashAppEditCd : paypalEditCd;
|
|
|
+ const sec = getCooldownSec(2);
|
|
|
+ const ts = paypalEditCd;
|
|
|
const onClick = () => {
|
|
|
if (sec > 0) return;
|
|
|
- if (cashapp) global.showEditBindCashapp();
|
|
|
if (paypal) global.showEditBindPaypal();
|
|
|
}
|
|
|
return (
|
|
|
@@ -242,7 +232,7 @@ const WWithdraw = ({ close }) => {
|
|
|
const [amount, setAmount] = useState("");
|
|
|
const [minAmount, setMinAmount] = useState(0);
|
|
|
const [balance, setBalance] = useState(0);
|
|
|
- const [walletType, setWalletType] = useState(Number(info?.PixType || "1") || WithdrawType.CashApp);
|
|
|
+ const [walletType, setWalletType] = useState(WithdrawType.Paypal);
|
|
|
const dispatch = useDispatch();
|
|
|
const navigator = useNavigate();
|
|
|
|
|
|
@@ -267,17 +257,8 @@ const WWithdraw = ({ close }) => {
|
|
|
var max = Math.floor(info.MaxExchange / global.CASH_BASE);
|
|
|
var max_config = max;
|
|
|
var min_config = min;
|
|
|
- // if (outLimit) {
|
|
|
- // if (type === 0) limit = outLimit.cashapp;
|
|
|
- // if (type === 1) limit = outLimit.paypal;
|
|
|
- // }
|
|
|
|
|
|
if (withdrawChannel) {
|
|
|
- if (type === WithdrawType.CashApp && withdrawChannel.cashapp) {
|
|
|
- max_config = withdrawChannel.cashapp.max;
|
|
|
- min_config = withdrawChannel.cashapp.min;
|
|
|
- }
|
|
|
-
|
|
|
if (type === WithdrawType.Paypal && withdrawChannel.paypal) {
|
|
|
max_config = withdrawChannel.paypal.max;
|
|
|
min_config = withdrawChannel.paypal.min;
|