be-components 3.6.0 → 3.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/Checkout/components/AccountSummaryCard.js +52 -57
- package/lib/commonjs/Checkout/components/AccountSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/components/ItemSummaryCard.js +8 -11
- package/lib/commonjs/Checkout/components/ItemSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/components/OrderSummaryCard.js +21 -25
- package/lib/commonjs/Checkout/components/OrderSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/components/PayPalHtml.js +32 -0
- package/lib/commonjs/Checkout/components/PayPalHtml.js.map +1 -0
- package/lib/commonjs/Checkout/components/PayPalWebview.js +125 -0
- package/lib/commonjs/Checkout/components/PayPalWebview.js.map +1 -0
- package/lib/commonjs/Checkout/components/ShippingSummaryCard.js +11 -15
- package/lib/commonjs/Checkout/components/ShippingSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/index.js +92 -146
- package/lib/commonjs/Checkout/index.js.map +1 -1
- package/lib/commonjs/Components/Checkbox.js +7 -5
- package/lib/commonjs/Components/Checkbox.js.map +1 -1
- package/lib/commonjs/Components/Icons.js +9 -9
- package/lib/commonjs/Components/Icons.js.map +1 -1
- package/lib/commonjs/Components/Pagination.js +37 -0
- package/lib/commonjs/Components/Pagination.js.map +1 -0
- package/lib/commonjs/Wallet/components/ACHAddCard.js +233 -194
- package/lib/commonjs/Wallet/components/ACHAddCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/AccountCard.js +27 -28
- package/lib/commonjs/Wallet/components/AccountCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/AccountLimitManager.js +60 -95
- package/lib/commonjs/Wallet/components/AccountLimitManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/AccountManager.js +209 -158
- package/lib/commonjs/Wallet/components/AccountManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/AccountSnoozeManager.js +53 -66
- package/lib/commonjs/Wallet/components/AccountSnoozeManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/AddressCard.js +19 -17
- package/lib/commonjs/Wallet/components/AddressCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/AddressManager.js +64 -92
- package/lib/commonjs/Wallet/components/AddressManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/DepositCard.js +93 -99
- package/lib/commonjs/Wallet/components/DepositCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/FundAccountCard.js +106 -95
- package/lib/commonjs/Wallet/components/FundAccountCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/ItemOrderCard.js +26 -29
- package/lib/commonjs/Wallet/components/ItemOrderCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/ItemOrderDetailCard.js +43 -46
- package/lib/commonjs/Wallet/components/ItemOrderDetailCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/LinkAccountManager.js +80 -106
- package/lib/commonjs/Wallet/components/LinkAccountManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManageAccountCard.js +85 -60
- package/lib/commonjs/Wallet/components/ManageAccountCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManualACHAdd.js +155 -151
- package/lib/commonjs/Wallet/components/ManualACHAdd.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManualCardAdd.js +207 -204
- package/lib/commonjs/Wallet/components/ManualCardAdd.js.map +1 -1
- package/lib/commonjs/Wallet/components/MyBalance.js +73 -66
- package/lib/commonjs/Wallet/components/MyBalance.js.map +1 -1
- package/lib/commonjs/Wallet/components/OrderManager.js +61 -58
- package/lib/commonjs/Wallet/components/OrderManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/RemoveAccount.js +22 -23
- package/lib/commonjs/Wallet/components/RemoveAccount.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletActionSelector.js +130 -133
- package/lib/commonjs/Wallet/components/WalletActionSelector.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletSettings.js +382 -547
- package/lib/commonjs/Wallet/components/WalletSettings.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletSetup.js +307 -289
- package/lib/commonjs/Wallet/components/WalletSetup.js.map +1 -1
- package/lib/commonjs/Wallet/components/WithdrawCard.js +91 -111
- package/lib/commonjs/Wallet/components/WithdrawCard.js.map +1 -1
- package/lib/commonjs/Wallet/index.js +23 -24
- package/lib/commonjs/Wallet/index.js.map +1 -1
- package/lib/commonjs/constants/styles.js +1 -1
- package/lib/commonjs/constants/styles.js.map +1 -1
- package/lib/commonjs/constants/useColors.js +1 -1
- package/lib/commonjs/constants/useColors.js.map +1 -1
- package/lib/module/Checkout/components/AccountSummaryCard.js +25 -30
- package/lib/module/Checkout/components/AccountSummaryCard.js.map +1 -1
- package/lib/module/Checkout/components/ItemSummaryCard.js +4 -7
- package/lib/module/Checkout/components/ItemSummaryCard.js.map +1 -1
- package/lib/module/Checkout/components/OrderSummaryCard.js +9 -13
- package/lib/module/Checkout/components/OrderSummaryCard.js.map +1 -1
- package/lib/module/Checkout/components/PayPalHtml.js +25 -0
- package/lib/module/Checkout/components/PayPalHtml.js.map +1 -0
- package/lib/module/Checkout/components/PayPalWebview.js +118 -0
- package/lib/module/Checkout/components/PayPalWebview.js.map +1 -0
- package/lib/module/Checkout/components/ShippingSummaryCard.js +5 -9
- package/lib/module/Checkout/components/ShippingSummaryCard.js.map +1 -1
- package/lib/module/Checkout/index.js +58 -112
- package/lib/module/Checkout/index.js.map +1 -1
- package/lib/module/Components/Checkbox.js +6 -4
- package/lib/module/Components/Checkbox.js.map +1 -1
- package/lib/module/Components/Icons.js +10 -10
- package/lib/module/Components/Icons.js.map +1 -1
- package/lib/module/Components/Pagination.js +30 -0
- package/lib/module/Components/Pagination.js.map +1 -0
- package/lib/module/Wallet/components/ACHAddCard.js +233 -194
- package/lib/module/Wallet/components/ACHAddCard.js.map +1 -1
- package/lib/module/Wallet/components/AccountCard.js +23 -24
- package/lib/module/Wallet/components/AccountCard.js.map +1 -1
- package/lib/module/Wallet/components/AccountLimitManager.js +43 -77
- package/lib/module/Wallet/components/AccountLimitManager.js.map +1 -1
- package/lib/module/Wallet/components/AccountManager.js +206 -155
- package/lib/module/Wallet/components/AccountManager.js.map +1 -1
- package/lib/module/Wallet/components/AccountSnoozeManager.js +35 -48
- package/lib/module/Wallet/components/AccountSnoozeManager.js.map +1 -1
- package/lib/module/Wallet/components/AddressCard.js +14 -12
- package/lib/module/Wallet/components/AddressCard.js.map +1 -1
- package/lib/module/Wallet/components/AddressManager.js +29 -57
- package/lib/module/Wallet/components/AddressManager.js.map +1 -1
- package/lib/module/Wallet/components/DepositCard.js +62 -67
- package/lib/module/Wallet/components/DepositCard.js.map +1 -1
- package/lib/module/Wallet/components/FundAccountCard.js +71 -60
- package/lib/module/Wallet/components/FundAccountCard.js.map +1 -1
- package/lib/module/Wallet/components/ItemOrderCard.js +17 -20
- package/lib/module/Wallet/components/ItemOrderCard.js.map +1 -1
- package/lib/module/Wallet/components/ItemOrderDetailCard.js +28 -31
- package/lib/module/Wallet/components/ItemOrderDetailCard.js.map +1 -1
- package/lib/module/Wallet/components/LinkAccountManager.js +55 -81
- package/lib/module/Wallet/components/LinkAccountManager.js.map +1 -1
- package/lib/module/Wallet/components/ManageAccountCard.js +80 -55
- package/lib/module/Wallet/components/ManageAccountCard.js.map +1 -1
- package/lib/module/Wallet/components/ManualACHAdd.js +146 -141
- package/lib/module/Wallet/components/ManualACHAdd.js.map +1 -1
- package/lib/module/Wallet/components/ManualCardAdd.js +204 -201
- package/lib/module/Wallet/components/ManualCardAdd.js.map +1 -1
- package/lib/module/Wallet/components/MyBalance.js +45 -38
- package/lib/module/Wallet/components/MyBalance.js.map +1 -1
- package/lib/module/Wallet/components/OrderManager.js +59 -56
- package/lib/module/Wallet/components/OrderManager.js.map +1 -1
- package/lib/module/Wallet/components/RemoveAccount.js +16 -16
- package/lib/module/Wallet/components/RemoveAccount.js.map +1 -1
- package/lib/module/Wallet/components/WalletActionSelector.js +102 -104
- package/lib/module/Wallet/components/WalletActionSelector.js.map +1 -1
- package/lib/module/Wallet/components/WalletSettings.js +381 -545
- package/lib/module/Wallet/components/WalletSettings.js.map +1 -1
- package/lib/module/Wallet/components/WalletSetup.js +297 -279
- package/lib/module/Wallet/components/WalletSetup.js.map +1 -1
- package/lib/module/Wallet/components/WithdrawCard.js +52 -71
- package/lib/module/Wallet/components/WithdrawCard.js.map +1 -1
- package/lib/module/Wallet/index.js +16 -17
- package/lib/module/Wallet/index.js.map +1 -1
- package/lib/module/constants/styles.js +1 -1
- package/lib/module/constants/styles.js.map +1 -1
- package/lib/module/constants/useColors.js +1 -1
- package/lib/module/constants/useColors.js.map +1 -1
- package/lib/typescript/lib/commonjs/Checkout/components/AccountSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Checkout/components/ItemSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Checkout/components/OrderSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Checkout/components/PayPalHtml.d.ts +3 -0
- package/lib/typescript/lib/commonjs/Checkout/components/PayPalHtml.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Checkout/components/PayPalWebview.d.ts +4 -0
- package/lib/typescript/lib/commonjs/Checkout/components/PayPalWebview.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Checkout/components/ShippingSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Checkout/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Checkbox.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Pagination.d.ts +11 -0
- package/lib/typescript/lib/commonjs/Components/Pagination.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Wallet/components/ACHAddCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/AccountCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/AccountLimitManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/AccountManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/AccountSnoozeManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/AddressCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/AddressManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/DepositCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/FundAccountCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/ItemOrderCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/ItemOrderDetailCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/LinkAccountManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/ManageAccountCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/ManualACHAdd.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/ManualCardAdd.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/MyBalance.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/OrderManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/RemoveAccount.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/WalletActionSelector.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/WalletSettings.d.ts +1 -2
- package/lib/typescript/lib/commonjs/Wallet/components/WalletSettings.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/WalletSetup.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/WithdrawCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/constants/styles.d.ts +1 -1
- package/lib/typescript/lib/module/Checkout/components/AccountSummaryCard.d.ts +1 -2
- package/lib/typescript/lib/module/Checkout/components/AccountSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Checkout/components/ItemSummaryCard.d.ts +1 -2
- package/lib/typescript/lib/module/Checkout/components/ItemSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Checkout/components/OrderSummaryCard.d.ts +1 -2
- package/lib/typescript/lib/module/Checkout/components/OrderSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Checkout/components/PayPalHtml.d.ts +2 -0
- package/lib/typescript/lib/module/Checkout/components/PayPalHtml.d.ts.map +1 -0
- package/lib/typescript/lib/module/Checkout/components/PayPalWebview.d.ts +5 -0
- package/lib/typescript/lib/module/Checkout/components/PayPalWebview.d.ts.map +1 -0
- package/lib/typescript/lib/module/Checkout/components/ShippingSummaryCard.d.ts +1 -2
- package/lib/typescript/lib/module/Checkout/components/ShippingSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Checkout/index.d.ts +1 -2
- package/lib/typescript/lib/module/Checkout/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Checkbox.d.ts +1 -2
- package/lib/typescript/lib/module/Components/Checkbox.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Pagination.d.ts +11 -0
- package/lib/typescript/lib/module/Components/Pagination.d.ts.map +1 -0
- package/lib/typescript/lib/module/Wallet/components/ACHAddCard.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/ACHAddCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/AccountCard.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/AccountCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/AccountLimitManager.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/AccountLimitManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/AccountManager.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/AccountManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/AccountSnoozeManager.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/AccountSnoozeManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/AddressCard.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/AddressCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/AddressManager.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/AddressManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/DepositCard.d.ts +2 -2
- package/lib/typescript/lib/module/Wallet/components/DepositCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/FundAccountCard.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/FundAccountCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/ItemOrderCard.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/ItemOrderCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/ItemOrderDetailCard.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/ItemOrderDetailCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/LinkAccountManager.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/LinkAccountManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/ManageAccountCard.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/ManageAccountCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/ManualACHAdd.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/ManualACHAdd.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/ManualCardAdd.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/ManualCardAdd.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/MyBalance.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/MyBalance.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/OrderManager.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/OrderManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/RemoveAccount.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/RemoveAccount.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/WalletActionSelector.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/WalletActionSelector.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/WalletSettings.d.ts +2 -4
- package/lib/typescript/lib/module/Wallet/components/WalletSettings.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/WalletSetup.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/WalletSetup.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/WithdrawCard.d.ts +2 -2
- package/lib/typescript/lib/module/Wallet/components/WithdrawCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/index.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/index.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/AccountSummaryCard.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/ItemSummaryCard.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/OrderSummaryCard.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/PayPalHtml.d.ts +2 -0
- package/lib/typescript/src/Checkout/components/PayPalHtml.d.ts.map +1 -0
- package/lib/typescript/src/Checkout/components/PayPalWebview.d.ts +4 -0
- package/lib/typescript/src/Checkout/components/PayPalWebview.d.ts.map +1 -0
- package/lib/typescript/src/Checkout/components/ShippingSummaryCard.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/index.d.ts.map +1 -1
- package/lib/typescript/src/Components/Checkbox.d.ts.map +1 -1
- package/lib/typescript/src/Components/Pagination.d.ts +12 -0
- package/lib/typescript/src/Components/Pagination.d.ts.map +1 -0
- package/lib/typescript/src/Wallet/components/ACHAddCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AccountCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AccountLimitManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AccountManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AccountSnoozeManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AddressCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AddressManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/DepositCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/FundAccountCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ItemOrderCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ItemOrderDetailCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/LinkAccountManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ManageAccountCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ManualACHAdd.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ManualCardAdd.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/MyBalance.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/OrderManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/RemoveAccount.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WalletActionSelector.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WalletSettings.d.ts +1 -1
- package/lib/typescript/src/Wallet/components/WalletSettings.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WalletSetup.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WithdrawCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/index.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/Checkout/components/AccountSummaryCard.tsx +25 -27
- package/src/Checkout/components/ItemSummaryCard.tsx +4 -6
- package/src/Checkout/components/OrderSummaryCard.tsx +9 -11
- package/src/Checkout/components/PayPalHtml.ts +26 -0
- package/src/Checkout/components/PayPalOrderCapture.tsx +1 -1
- package/src/Checkout/components/PayPalWebview.tsx +118 -0
- package/src/Checkout/components/ShippingSummaryCard.tsx +5 -8
- package/src/Checkout/index.tsx +68 -96
- package/src/Components/Checkbox.tsx +7 -6
- package/src/Components/Icons.tsx +10 -10
- package/src/Components/Pagination.tsx +33 -0
- package/src/Wallet/components/ACHAddCard.tsx +90 -60
- package/src/Wallet/components/AccountCard.tsx +22 -21
- package/src/Wallet/components/AccountLimitManager.tsx +36 -54
- package/src/Wallet/components/AccountManager.tsx +95 -61
- package/src/Wallet/components/AccountSnoozeManager.tsx +39 -37
- package/src/Wallet/components/AddressCard.tsx +11 -11
- package/src/Wallet/components/AddressManager.tsx +33 -44
- package/src/Wallet/components/DepositCard.tsx +55 -53
- package/src/Wallet/components/FundAccountCard.tsx +52 -51
- package/src/Wallet/components/ItemOrderCard.tsx +13 -12
- package/src/Wallet/components/ItemOrderDetailCard.tsx +23 -22
- package/src/Wallet/components/LinkAccountManager.tsx +49 -59
- package/src/Wallet/components/ManageAccountCard.tsx +78 -47
- package/src/Wallet/components/ManualACHAdd.tsx +99 -79
- package/src/Wallet/components/ManualCardAdd.tsx +119 -95
- package/src/Wallet/components/MyBalance.tsx +38 -40
- package/src/Wallet/components/OrderManager.tsx +47 -37
- package/src/Wallet/components/RemoveAccount.tsx +12 -15
- package/src/Wallet/components/WalletActionSelector.tsx +70 -69
- package/src/Wallet/components/WalletSettings.tsx +137 -139
- package/src/Wallet/components/WalletSetup.tsx +150 -135
- package/src/Wallet/components/WithdrawCard.tsx +56 -56
- package/src/Wallet/index.tsx +23 -22
- package/src/constants/styles.ts +1 -1
- package/src/constants/useColors.tsx +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
import React, { useState } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import Colors from '../../constants/colors';
|
|
3
|
+
import { FlatList, TouchableOpacity, Image } from "react-native"
|
|
4
|
+
import { Icons } from '../../Components';
|
|
6
5
|
import type { AccountProps, MyPlayerProps, PlayerBalanceProps } from '../../types';
|
|
7
6
|
import { WalletHelpers } from '../api';
|
|
7
|
+
import { Button, Text, View } from '../../Components/Themed';
|
|
8
|
+
import { useColors } from '../../constants/useColors';
|
|
8
9
|
|
|
9
10
|
type WalletActionSelectorProps ={
|
|
10
11
|
player:MyPlayerProps,
|
|
@@ -16,38 +17,41 @@ type WalletActionSelectorProps ={
|
|
|
16
17
|
onStartWalkthrough:(walkthrough:any, account?:AccountProps) => void
|
|
17
18
|
}
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
{
|
|
21
|
-
section: 'accounts', label:'Account Actions', actions : [
|
|
22
|
-
{
|
|
23
|
-
action :'my_accounts', label: "View My Accounts", icon:<Icons.ListIcon color={Colors.brand.midnight} size={12}/>, description: 'Manage your connected accounts. Transact, snooze, set limits or remove an existing account.'
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
action :'wallet_settings', label: "View My Settings", icon:<Icons.SettingsIcon color={Colors.brand.midnight} size={20}/>, description: 'View your current settings including your deposit and withdraw limits.'
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
]
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
section: 'transact', label:'Transact', actions : [
|
|
33
|
-
{
|
|
34
|
-
action :'order_history', label: "View Order History", icon:<Icons.TransactionIcon size={20} color={Colors.brand.midnight} />, description: 'View and manage past orders made on BettorEdge'
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
action :'deposit', label: "Make A Deposit", icon:<Icons.DepositIcon size={20} color={Colors.brand.midnight} />, description: 'Fund your BettorEdge real-money balance by making a deposit from an existing account or new one.'
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
action :'withdraw', label: "Make A Withdrawal", icon:<Icons.WithdrawIcon size={20} color={Colors.brand.midnight} />, description: 'Move funds from your BettorEdge real-money balance to a connected ACH account.'
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
]
|
|
20
|
+
|
|
46
21
|
|
|
47
22
|
const WalletActionSelector = ({ player, walkthrough_steps, player_balance, accounts, onClose, onActionSelect, onStartWalkthrough }: WalletActionSelectorProps) => {
|
|
23
|
+
const Colors = useColors();
|
|
48
24
|
const [ show_steps, setShowSteps ] = useState(false);
|
|
49
25
|
const [ width, setWidth ] = useState(0);
|
|
50
26
|
|
|
27
|
+
const sections = [
|
|
28
|
+
{
|
|
29
|
+
section: 'accounts', label:'Account Actions', actions : [
|
|
30
|
+
{
|
|
31
|
+
action :'my_accounts', label: "View My Accounts", icon:<Icons.ListIcon color={Colors.text.h1} size={12}/>, description: 'Manage your connected accounts. Transact, snooze, set limits or remove an existing account.'
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
action :'wallet_settings', label: "View My Settings", icon:<Icons.SettingsIcon color={Colors.text.h1} size={20}/>, description: 'View your current settings including your deposit and withdraw limits.'
|
|
35
|
+
},
|
|
36
|
+
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
section: 'transact', label:'Transact', actions : [
|
|
41
|
+
{
|
|
42
|
+
action :'order_history', label: "View Order History", icon:<Icons.TransactionIcon size={20} color={Colors.text.h1} />, description: 'View and manage past orders made on BettorEdge'
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
action :'deposit', label: "Make A Deposit", icon:<Icons.DepositIcon size={20} color={Colors.text.h1} />, description: 'Fund your BettorEdge real-money balance by making a deposit from an existing account or new one.'
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
action :'withdraw', label: "Make A Withdrawal", icon:<Icons.WithdrawIcon size={20} color={Colors.text.h1} />, description: 'Move funds from your BettorEdge real-money balance to a connected ACH account.'
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
|
|
51
55
|
const handleActionSelect = (action:any) => {
|
|
52
56
|
switch(action.action){
|
|
53
57
|
case 'deposit':
|
|
@@ -64,7 +68,7 @@ const WalletActionSelector = ({ player, walkthrough_steps, player_balance, accou
|
|
|
64
68
|
|
|
65
69
|
const renderActions = (data:{ item:any, index:number }) => {
|
|
66
70
|
return (
|
|
67
|
-
<
|
|
71
|
+
<Button style={{ padding:10, flexDirection:'row', alignItems:'center', borderBottomWidth:1, borderBottomColor:Colors.borders.light }}
|
|
68
72
|
onPress={() => handleActionSelect(data.item)}>
|
|
69
73
|
|
|
70
74
|
<View style={{ flex:1, marginRight:10 }}>
|
|
@@ -72,19 +76,21 @@ const WalletActionSelector = ({ player, walkthrough_steps, player_balance, accou
|
|
|
72
76
|
{data.item.icon?
|
|
73
77
|
data.item.icon
|
|
74
78
|
:<></>}
|
|
75
|
-
<Text style={{ marginLeft:5 }} size={16}
|
|
79
|
+
<Text style={{ marginLeft:5 }} size={16} theme='h1'>{data.item.label}</Text>
|
|
76
80
|
</View>
|
|
77
|
-
<Text style={{ padding:5 }} size={14}
|
|
81
|
+
<Text style={{ padding:5 }} size={14} theme='description'>{data.item.description}</Text>
|
|
78
82
|
</View>
|
|
79
|
-
<Icons.ChevronIcon direction='right' color={Colors.
|
|
80
|
-
</
|
|
83
|
+
<Icons.ChevronIcon direction='right' color={Colors.text.h1} size={12} />
|
|
84
|
+
</Button>
|
|
81
85
|
)
|
|
82
86
|
}
|
|
83
87
|
|
|
84
88
|
const renderSections = (data: { item:any, index:number }) => {
|
|
85
89
|
return (
|
|
86
|
-
<View style={{
|
|
87
|
-
<
|
|
90
|
+
<View style={{ marginTop:10 }}>
|
|
91
|
+
<View type='header' style={{ padding:15 }}>
|
|
92
|
+
<Text theme='h1'>{data.item.label.toUpperCase()}</Text>
|
|
93
|
+
</View>
|
|
88
94
|
<View style={{ padding:5 }}>
|
|
89
95
|
<FlatList
|
|
90
96
|
key='actions'
|
|
@@ -99,7 +105,6 @@ const WalletActionSelector = ({ player, walkthrough_steps, player_balance, accou
|
|
|
99
105
|
}
|
|
100
106
|
|
|
101
107
|
const handleStepSelect = (step:any, index:number) => {
|
|
102
|
-
console.log(step)
|
|
103
108
|
switch(step.step){
|
|
104
109
|
case 'deposit':
|
|
105
110
|
let default_account = accounts.find(a => a.default_account)
|
|
@@ -115,11 +120,11 @@ const WalletActionSelector = ({ player, walkthrough_steps, player_balance, accou
|
|
|
115
120
|
const renderSteps = (data: { item:any, index:number }) => {
|
|
116
121
|
return (
|
|
117
122
|
<TouchableOpacity
|
|
118
|
-
style={{ margin:5, padding:10, flexDirection:'row', alignItems:'center', borderWidth:1, borderColor:Colors.
|
|
123
|
+
style={{ margin:5, padding:10, flexDirection:'row', alignItems:'center', borderWidth:1, borderColor:Colors.borders.light, borderRadius:8 }}
|
|
119
124
|
onPress={() => handleStepSelect(data.item, data.index)}>
|
|
120
|
-
<Icons.CheckCirlceIcon size={14} color={data.item.complete?Colors.
|
|
121
|
-
<Text style={{ flex:1, marginLeft:10 }}
|
|
122
|
-
<Icons.ChevronIcon direction='right' size={8} color={Colors.
|
|
125
|
+
<Icons.CheckCirlceIcon size={14} color={data.item.complete?Colors.text.success:Colors.text.success}/>
|
|
126
|
+
<Text style={{ flex:1, marginLeft:10 }} theme='description'>{data.item.label}</Text>
|
|
127
|
+
<Icons.ChevronIcon direction='right' size={8} color={Colors.text.h1} />
|
|
123
128
|
</TouchableOpacity>
|
|
124
129
|
)
|
|
125
130
|
}
|
|
@@ -131,48 +136,47 @@ const WalletActionSelector = ({ player, walkthrough_steps, player_balance, accou
|
|
|
131
136
|
const { width } = ev.nativeEvent.layout
|
|
132
137
|
setWidth(width)
|
|
133
138
|
}}>
|
|
134
|
-
<View style={{ padding:10, flexDirection:'row', alignItems:'center' }}>
|
|
139
|
+
<View type='header' style={{ padding:10, flexDirection:'row', alignItems:'center' }}>
|
|
135
140
|
<Image
|
|
136
141
|
source={{ uri: player.profile_pic }}
|
|
137
142
|
style={{ height:60, width:60, borderRadius:4 }}
|
|
138
143
|
resizeMode='cover'
|
|
139
144
|
/>
|
|
140
|
-
<View style={{ flex:1, marginLeft:
|
|
141
|
-
<Text size={20}
|
|
142
|
-
<View style={{ flexDirection:'row' }}>
|
|
143
|
-
<View style={{ margin:3,
|
|
144
|
-
<Text size={14}
|
|
145
|
+
<View transparent style={{ flex:1, marginLeft:15 }}>
|
|
146
|
+
<Text size={20} theme='h1'>My Wallet Balances</Text>
|
|
147
|
+
<View transparent style={{ flexDirection:'row', marginTop:5 }}>
|
|
148
|
+
<View float style={{ margin:3, padding:8, borderRadius:8 }}>
|
|
149
|
+
<Text size={14} theme='h1'>${WalletHelpers.formatBalance(player_balance.balance)}</Text>
|
|
145
150
|
</View>
|
|
146
|
-
<View style={{ margin:3,
|
|
147
|
-
<Text size={14}
|
|
151
|
+
<View float style={{ margin:3, padding:8, borderRadius:8 }}>
|
|
152
|
+
<Text size={14} theme='h1'>P{WalletHelpers.formatBalance(player_balance.promo_balance)}</Text>
|
|
148
153
|
</View>
|
|
149
|
-
<View style={{ margin:3,
|
|
150
|
-
|
|
154
|
+
<View float style={{ margin:3, padding:8, borderRadius:8 }}>
|
|
155
|
+
<Text size={14} theme='h1'>E{WalletHelpers.formatBalance(player_balance.free_market_balance)}</Text>
|
|
151
156
|
</View>
|
|
152
157
|
</View>
|
|
153
158
|
</View>
|
|
154
159
|
</View>
|
|
155
|
-
<
|
|
156
|
-
|
|
160
|
+
<View style={{ flex:1 }}>
|
|
157
161
|
{pct_complete < 1 ?
|
|
158
|
-
<View style={{
|
|
162
|
+
<View style={{ padding:10 }}>
|
|
159
163
|
<View>
|
|
160
164
|
<TouchableOpacity style={{ flexDirection:'row', alignItems:'center', padding:10 }} onPress={() => setShowSteps(!show_steps)}>
|
|
161
165
|
<View style={{ flex:1, marginRight:10 }}>
|
|
162
|
-
<Text
|
|
163
|
-
<Text style={{ marginTop:3 }}
|
|
166
|
+
<Text theme='h1'>Setup your wallet</Text>
|
|
167
|
+
<Text style={{ marginTop:3 }} theme='description'>Complete all the steps below to have full access to move funds in and out of BettorEdge</Text>
|
|
164
168
|
</View>
|
|
165
|
-
<Icons.ChevronIcon direction={show_steps ? 'up' : 'down'} color={Colors.
|
|
169
|
+
<Icons.ChevronIcon direction={show_steps ? 'up' : 'down'} color={Colors.text.h1} size={10} />
|
|
166
170
|
</TouchableOpacity>
|
|
167
171
|
<View style={{ flexDirection:'row', justifyContent:'center', alignItems:'center', }}>
|
|
168
172
|
<Text size={14} weight='bold'>{(pct_complete * 100).toFixed()}%</Text>
|
|
169
|
-
<View style={{ marginLeft:20, height:10, width:width - 100,
|
|
170
|
-
<View style={{ position:'absolute', top:0, left:0, bottom:0, width: (width-100)*pct_complete, backgroundColor:Colors.
|
|
173
|
+
<View style={{ marginLeft:20, height:10, width:width - 100, borderRadius:15 }}>
|
|
174
|
+
<View style={{ position:'absolute', top:0, left:0, bottom:0, width: (width-100)*pct_complete, backgroundColor:Colors.text.success, borderRadius:15 }} />
|
|
171
175
|
</View>
|
|
172
176
|
</View>
|
|
173
177
|
</View>
|
|
174
178
|
{show_steps ?
|
|
175
|
-
<View style={{marginTop:5, borderTopWidth:1, borderColor:Colors.
|
|
179
|
+
<View style={{marginTop:5, borderTopWidth:1, borderColor:Colors.borders.light }}>
|
|
176
180
|
<FlatList
|
|
177
181
|
data={walkthrough_steps}
|
|
178
182
|
renderItem={renderSteps}
|
|
@@ -182,7 +186,7 @@ const WalletActionSelector = ({ player, walkthrough_steps, player_balance, accou
|
|
|
182
186
|
:<></>}
|
|
183
187
|
</View>
|
|
184
188
|
:<></>}
|
|
185
|
-
<View style={{
|
|
189
|
+
<View type='body' style={{ marginTop:5 }}>
|
|
186
190
|
<FlatList
|
|
187
191
|
key={'wallet_sections'}
|
|
188
192
|
data={sections}
|
|
@@ -190,18 +194,15 @@ const WalletActionSelector = ({ player, walkthrough_steps, player_balance, accou
|
|
|
190
194
|
keyExtractor={(item) => item.section}
|
|
191
195
|
/>
|
|
192
196
|
</View>
|
|
193
|
-
</
|
|
194
|
-
<View nativeID='action_row' style={{ padding:20 }}>
|
|
197
|
+
</View>
|
|
198
|
+
<View nativeID='action_row' style={{ flexDirection:'row', alignItems:'center', padding:20 }}>
|
|
195
199
|
<Button
|
|
196
200
|
title='CLOSE'
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
borderColor={Colors.brand.electric}
|
|
200
|
-
padding={15}
|
|
201
|
+
style={{ flex:1 }}
|
|
202
|
+
type='close'
|
|
201
203
|
onPress={() => onClose()}
|
|
202
204
|
/>
|
|
203
205
|
</View>
|
|
204
|
-
|
|
205
206
|
</View>
|
|
206
207
|
)
|
|
207
208
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React, { useState } from "react"
|
|
2
2
|
import type { MyPlayerProps, PlayerDepositLimitProps, PlayerReferralProps, PlayerWithdrawLimitProps, PromoProps } from '../../types';
|
|
3
|
-
import {
|
|
4
|
-
import { Button, Icons, Text } from '../../Components';
|
|
5
|
-
import Colors from '../../constants/colors';
|
|
3
|
+
import { Toggle } from '../../Components';
|
|
6
4
|
import { WalletHelpers } from '../api';
|
|
5
|
+
import { Button, Text, View } from "../../Components/Themed";
|
|
6
|
+
import { useColors } from "../../constants/useColors";
|
|
7
|
+
import { FlatList } from "react-native";
|
|
7
8
|
|
|
8
9
|
type BEWalletProps = {
|
|
9
10
|
player:MyPlayerProps,
|
|
@@ -17,200 +18,197 @@ type BEWalletProps = {
|
|
|
17
18
|
onClose:() => void
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
const
|
|
21
|
+
const sections = ['header', 'toggle', 'deposit','withdraw','referral']
|
|
22
|
+
const WalletSettings = ({ player, my_referral, deposit_limit, withdraw_limit, onClose }:BEWalletProps) => {
|
|
21
23
|
const [ active_tab, setActiveTab ] = useState('deposit');
|
|
22
|
-
|
|
24
|
+
const Colors = useColors();
|
|
23
25
|
//const promo = useSelector((state:RootState) => state.wallet.promo, (left, right) => left?.promo_id == right?.promo_id);
|
|
24
26
|
//const player_referral = useSelector((state:RootState) => state.wallet.player_referral, (left, right) => left?.last_update_datetime == right?.last_update_datetime);
|
|
25
27
|
|
|
26
28
|
const { player_referral, promo } = my_referral
|
|
27
29
|
//const tabs = ['referral','deposit','withdraw']
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
<View style={{ flexDirection: 'row', paddingLeft:10, paddingRight:10 }}>
|
|
39
|
-
<TouchableOpacity
|
|
40
|
-
style={{ flex:1, borderWidth:1,borderColor:Colors.shades.shade600, padding:10, borderTopRightRadius:8, borderTopLeftRadius:8, backgroundColor:active_tab=='deposit'?Colors.brand.midnight:undefined }}
|
|
41
|
-
onPress={() => setActiveTab('deposit')}
|
|
42
|
-
>
|
|
43
|
-
<Text weight={active_tab == 'deposit'?'bold':'regular'} textAlign="center" size={14} color={active_tab=='deposit'?Colors.shades.white:Colors.brand.midnight}>Deposit</Text>
|
|
44
|
-
</TouchableOpacity>
|
|
45
|
-
<TouchableOpacity
|
|
46
|
-
style={{ flex:1, borderWidth:1, borderColor:Colors.shades.shade600, padding:10, borderTopRightRadius:8, borderTopLeftRadius:8, backgroundColor:active_tab=='withdraw'?Colors.brand.midnight:undefined }}
|
|
47
|
-
onPress={() => setActiveTab('withdraw')}
|
|
48
|
-
>
|
|
49
|
-
<Text weight={active_tab == 'withdraw'?'bold':'regular'} textAlign="center" size={14} color={active_tab=='withdraw'?Colors.shades.white:Colors.brand.midnight}>Withdraw</Text>
|
|
50
|
-
</TouchableOpacity>
|
|
51
|
-
<TouchableOpacity
|
|
52
|
-
style={{ flex:1, borderWidth:1, borderColor:Colors.shades.shade600, padding:10, borderTopRightRadius:8, borderTopLeftRadius:8, backgroundColor:active_tab=='referral'?Colors.brand.midnight:undefined }}
|
|
53
|
-
onPress={() => setActiveTab('referral')}
|
|
54
|
-
>
|
|
55
|
-
<Text weight={active_tab == 'referral'?'bold':'regular'} textAlign="center" size={14} color={active_tab=='referral'?Colors.shades.white:Colors.brand.midnight}>Referral</Text>
|
|
56
|
-
</TouchableOpacity>
|
|
57
|
-
</View>
|
|
58
|
-
<ScrollView nativeID="settings" style={{ flex:1, marginLeft:10, marginRight:10, borderRightWidth:1, borderLeftWidth:1, borderBottomWidth:1, borderColor:Colors.shades.shade600 }}>
|
|
59
|
-
{active_tab == 'deposit' ?
|
|
60
|
-
<View>
|
|
61
|
-
{deposit_limit ?
|
|
62
|
-
<View nativeID="deposit_limit">
|
|
63
|
-
<View style={{ backgroundColor:Colors.shades.shade100, padding:10 }}>
|
|
64
|
-
<Text size={14} color={Colors.brand.midnight} weight='semibold'>Deposit Settings</Text>
|
|
65
|
-
<Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>Below are your current deposit limits. These may change based on historical transaction results.</Text>
|
|
30
|
+
console.log(active_tab)
|
|
31
|
+
console.log(deposit_limit)
|
|
32
|
+
const renderSections = (data:{item:string, index:number}) => {
|
|
33
|
+
switch(data.item){
|
|
34
|
+
case 'header':
|
|
35
|
+
return (
|
|
36
|
+
<View type='header' style={{ flexDirection:'row', alignItems:'center', padding:15 }}>
|
|
37
|
+
<View transparent style={{flex:1}}>
|
|
38
|
+
<Text size={20} theme='h1'>MY WALLET SETTINGS / LIMITS</Text>
|
|
39
|
+
<Text style={{ marginTop:5}} theme='description'>Below are your overall wallet settings & configurations. These are set based on account type and past transaction history</Text>
|
|
66
40
|
</View>
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
41
|
+
</View>
|
|
42
|
+
)
|
|
43
|
+
case 'toggle':
|
|
44
|
+
return (
|
|
45
|
+
<View style={{ padding:10 }}>
|
|
46
|
+
<Toggle
|
|
47
|
+
options={[
|
|
48
|
+
{key: 'deposit', label:'Deposit' },
|
|
49
|
+
{key: 'withdraw', label:'Withdraw' },
|
|
50
|
+
{key: 'referral', label:'Referral' }
|
|
51
|
+
]}
|
|
52
|
+
selected_option={active_tab}
|
|
53
|
+
onSelectOption={(option) => setActiveTab(option)}
|
|
54
|
+
/>
|
|
55
|
+
</View>
|
|
56
|
+
)
|
|
57
|
+
case 'deposit':
|
|
58
|
+
if(active_tab != 'deposit'){ return <></> }
|
|
59
|
+
if(!deposit_limit){ return <></> }
|
|
60
|
+
return (
|
|
61
|
+
<View nativeID="deposit_limit">
|
|
62
|
+
<View type='header' style={{ flexDirection:'row', alignItems:'center', padding:15 }}>
|
|
63
|
+
<View transparent style={{flex:1}}>
|
|
64
|
+
<Text theme='h1'>DEPOSIT SETTINGS</Text>
|
|
65
|
+
<Text style={{ marginTop:3}} theme='description'>Below are your current deposit limits. These may change based on historical transaction results.</Text>
|
|
76
66
|
</View>
|
|
77
67
|
</View>
|
|
78
|
-
<View style={{
|
|
79
|
-
<View style={{ flex:1 }}>
|
|
80
|
-
<
|
|
81
|
-
|
|
68
|
+
<View type='body' style={{ padding:10 }}>
|
|
69
|
+
<View type='row' style={{ flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
|
|
70
|
+
<View style={{ flex:1 }}>
|
|
71
|
+
<Text theme="h2">ACH Daily Limit</Text>
|
|
72
|
+
<Text style={{ marginTop:5 }} theme="description">The maximum deposit amount allowed per day from an ACH account</Text>
|
|
73
|
+
</View>
|
|
74
|
+
<View>
|
|
75
|
+
<Text theme="h2">${deposit_limit.ach_daily_limit}</Text>
|
|
76
|
+
</View>
|
|
82
77
|
</View>
|
|
83
|
-
<View style={{
|
|
84
|
-
<
|
|
78
|
+
<View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
|
|
79
|
+
<View style={{ flex:1 }}>
|
|
80
|
+
<Text theme="h2">Card / Paypal Daily Limit</Text>
|
|
81
|
+
<Text style={{ marginTop:5 }} theme="description">The maximum deposit amount allowed per day from a card account</Text>
|
|
82
|
+
</View>
|
|
83
|
+
<View>
|
|
84
|
+
<Text theme="h2">${deposit_limit.card_daily_limit}</Text>
|
|
85
|
+
</View>
|
|
85
86
|
</View>
|
|
86
|
-
|
|
87
|
-
<View style={{ flexDirection:'row', alignItems:'flex-start', marginTop:10, padding:5, borderBottomWidth:1, borderColor:Colors.shades.shade100 }}>
|
|
87
|
+
<View style={{ flexDirection:'row', alignItems:'flex-start', marginTop:10, padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
|
|
88
88
|
<View style={{ flex:1 }}>
|
|
89
|
-
<Text
|
|
90
|
-
<Text style={{ marginTop:5 }}
|
|
89
|
+
<Text theme="h2">Instant Deposit Limit</Text>
|
|
90
|
+
<Text style={{ marginTop:5 }} theme="description">The total amount of unsettled deposits that will be instantly added to your wallet. Any deposit over this amount will be held until it settles.</Text>
|
|
91
91
|
</View>
|
|
92
|
-
<View
|
|
93
|
-
<Text
|
|
92
|
+
<View>
|
|
93
|
+
<Text theme="h2">${deposit_limit.instant_limit}</Text>
|
|
94
94
|
</View>
|
|
95
95
|
</View>
|
|
96
|
-
<View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.
|
|
96
|
+
<View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
|
|
97
97
|
<View style={{ flex:1 }}>
|
|
98
|
-
<Text
|
|
99
|
-
<Text style={{ marginTop:5 }}
|
|
98
|
+
<Text theme='h2'>Hold Days</Text>
|
|
99
|
+
<Text style={{ marginTop:5 }} theme="description">The number of days a deposit transaction will be held (not settled) before it can be withdrawn</Text>
|
|
100
100
|
</View>
|
|
101
|
-
<View
|
|
102
|
-
<Text
|
|
101
|
+
<View>
|
|
102
|
+
<Text theme="h2">{deposit_limit.hold_days}</Text>
|
|
103
103
|
</View>
|
|
104
104
|
</View>
|
|
105
|
-
<View style={{ flexDirection:'row', alignItems:'flex-start', marginTop:10, padding:5, borderBottomWidth:1, borderColor:Colors.
|
|
105
|
+
<View style={{ flexDirection:'row', alignItems:'flex-start', marginTop:10, padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
|
|
106
106
|
<View style={{ flex:1 }}>
|
|
107
|
-
<Text
|
|
108
|
-
<Text style={{ marginTop:5 }}
|
|
107
|
+
<Text theme="h2">Instant Deposit Available</Text>
|
|
108
|
+
<Text style={{ marginTop:5 }} theme="description">Your instant deposit limit minus your unsettled deposits</Text>
|
|
109
109
|
</View>
|
|
110
|
-
<View
|
|
111
|
-
<Text size={14} color={deposit_limit.instant_available > 0 ? Colors.
|
|
110
|
+
<View>
|
|
111
|
+
<Text size={14} color={deposit_limit.instant_available > 0 ? Colors.text.success : Colors.text.error} weight="bold">${deposit_limit.instant_available.toFixed(2)}</Text>
|
|
112
112
|
</View>
|
|
113
113
|
</View>
|
|
114
114
|
</View>
|
|
115
115
|
</View>
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
{withdraw_limit ?
|
|
116
|
+
)
|
|
117
|
+
case 'withdraw':
|
|
118
|
+
if(active_tab != 'withdraw' || !withdraw_limit){ return <></> }
|
|
119
|
+
return (
|
|
121
120
|
<View nativeID="withdraw_settings">
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
121
|
+
<View type='header' style={{ flexDirection:'row', alignItems:'center', padding:15 }}>
|
|
122
|
+
<View transparent style={{flex:1}}>
|
|
123
|
+
<Text theme='h1'>WITHDRAW SETTINGS</Text>
|
|
124
|
+
<Text style={{ marginTop:3}} theme='description'>Below are your current withdraw settings and limits. These may change based on historical transaction results.</Text>
|
|
125
|
+
</View>
|
|
126
|
+
</View>
|
|
127
|
+
<View type='body' style={{ padding:10 }}>
|
|
128
|
+
<View style={{ flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
|
|
128
129
|
<View style={{ flex:1 }}>
|
|
129
|
-
<Text
|
|
130
|
-
<Text style={{ marginTop:5 }}
|
|
130
|
+
<Text theme="h2">Weekly Withdraw Transaction Limit</Text>
|
|
131
|
+
<Text style={{ marginTop:5 }} theme="description">The number of withdraws allowed per rolling week.</Text>
|
|
131
132
|
</View>
|
|
132
|
-
<View
|
|
133
|
-
<Text
|
|
133
|
+
<View>
|
|
134
|
+
<Text theme="h2">{withdraw_limit.withdraws_per_week}</Text>
|
|
134
135
|
</View>
|
|
135
136
|
</View>
|
|
136
137
|
{withdraw_limit?.week_withdraw_count ?
|
|
137
|
-
<View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.
|
|
138
|
+
<View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
|
|
138
139
|
<View style={{ flex:1 }}>
|
|
139
|
-
<Text
|
|
140
|
-
<Text style={{ marginTop:5 }}
|
|
140
|
+
<Text theme="h2">Withdraws Remaining</Text>
|
|
141
|
+
<Text style={{ marginTop:5 }} theme="description">Withdraw transaction limit minus the number of withdraws already processed in the last 7 days</Text>
|
|
141
142
|
</View>
|
|
142
|
-
<View
|
|
143
|
-
<Text
|
|
143
|
+
<View>
|
|
144
|
+
<Text theme="h2">{withdraw_limit.withdraws_per_week - withdraw_limit.week_withdraw_count}</Text>
|
|
144
145
|
</View>
|
|
145
146
|
</View>
|
|
146
147
|
:<></>}
|
|
147
|
-
<View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.
|
|
148
|
+
<View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
|
|
148
149
|
<View style={{ flex:1 }}>
|
|
149
|
-
<Text
|
|
150
|
-
<Text style={{ marginTop:5 }}
|
|
150
|
+
<Text theme="h2">ACH Withdraw Daily Limit</Text>
|
|
151
|
+
<Text style={{ marginTop:5 }} theme="description">Maximum amount of withdraws that can be made per rolling 24 hours to an ACH account.</Text>
|
|
151
152
|
</View>
|
|
152
|
-
<View
|
|
153
|
-
<Text
|
|
153
|
+
<View>
|
|
154
|
+
<Text theme="h2">{withdraw_limit.ach_daily_limit}</Text>
|
|
154
155
|
</View>
|
|
155
156
|
</View>
|
|
156
|
-
<View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.
|
|
157
|
+
<View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
|
|
157
158
|
<View style={{ flex:1 }}>
|
|
158
|
-
<Text
|
|
159
|
-
<Text style={{ marginTop:5 }}
|
|
159
|
+
<Text theme="h2">Card Withdraw Daily Limit</Text>
|
|
160
|
+
<Text style={{ marginTop:5 }} theme="description">Maximum amount of withdraws that can be made per rolling 24 hours to a card account.</Text>
|
|
160
161
|
</View>
|
|
161
|
-
<View
|
|
162
|
-
<Text
|
|
162
|
+
<View>
|
|
163
|
+
<Text theme="h2">{withdraw_limit.card_daily_limit}</Text>
|
|
163
164
|
</View>
|
|
164
165
|
</View>
|
|
165
166
|
</View>
|
|
166
167
|
</View>
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
{player_referral && promo ?
|
|
168
|
+
)
|
|
169
|
+
case 'referral':
|
|
170
|
+
if(active_tab != 'referral' || !player_referral || !promo){ return <></> }
|
|
171
|
+
return (
|
|
172
172
|
<View nativeID="referral_settings">
|
|
173
|
-
<View style={{
|
|
174
|
-
<
|
|
175
|
-
|
|
173
|
+
<View type='header' style={{ flexDirection:'row', alignItems:'center', padding:15 }}>
|
|
174
|
+
<View transparent style={{flex:1}}>
|
|
175
|
+
<Text theme='h1'>REFERRAL SETTINGS</Text>
|
|
176
|
+
<Text style={{ marginTop:3}} theme='description'>Below are your current referral settings. Share your code with others to earn cash from referrals.</Text>
|
|
177
|
+
</View>
|
|
176
178
|
</View>
|
|
177
179
|
<View style={{ padding:10 }}>
|
|
178
|
-
{
|
|
179
|
-
<TouchableOpacity style={{ flexDirection:'row', alignItems:'center', padding:10, borderRadius:8, backgroundColor:Colors.brand.electric }}>
|
|
180
|
-
<Icons.ShareIcon color={Colors.shades.white} size={8}/>
|
|
181
|
-
<Text style={{ marginLeft:5 }} size={10} color={Colors.shades.white} weight='regular'>Share Code</Text>
|
|
182
|
-
</TouchableOpacity>
|
|
183
|
-
:<></>}
|
|
184
|
-
<View style={{ flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.shades.shade100 }}>
|
|
180
|
+
<View style={{ flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
|
|
185
181
|
<View style={{ flex:1 }}>
|
|
186
|
-
<Text
|
|
187
|
-
<Text style={{ marginTop:5 }}
|
|
182
|
+
<Text theme="h2">My Referral Code</Text>
|
|
183
|
+
<Text style={{ marginTop:5 }} theme="description">{WalletHelpers.getReferralDescription(promo)}</Text>
|
|
188
184
|
</View>
|
|
189
|
-
<View
|
|
190
|
-
<Text
|
|
185
|
+
<View>
|
|
186
|
+
<Text theme="h2">{player_referral.referral_code}</Text>
|
|
191
187
|
</View>
|
|
192
188
|
</View>
|
|
193
189
|
</View>
|
|
194
190
|
</View>
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
191
|
+
)
|
|
192
|
+
default: return <></>
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
if(!player){ return <></> }
|
|
197
|
+
return (
|
|
198
|
+
<View style={{ flex:1 }}>
|
|
199
|
+
<View style={{ flex:1 }}>
|
|
200
|
+
<FlatList
|
|
201
|
+
data={sections}
|
|
202
|
+
key={`setting_sections`}
|
|
203
|
+
renderItem={renderSections}
|
|
204
|
+
keyExtractor={(item) => item}
|
|
205
|
+
/>
|
|
205
206
|
</View>
|
|
206
|
-
|
|
207
|
-
<View style={{ padding:20 }}>
|
|
207
|
+
<View type='footer' style={{ flexDirection:'row', alignItems:'center', padding:20 }}>
|
|
208
208
|
<Button
|
|
209
209
|
title='BACK'
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
borderColor={Colors.brand.electric}
|
|
213
|
-
padding={15}
|
|
210
|
+
type='close'
|
|
211
|
+
style={{ flex:1 }}
|
|
214
212
|
onPress={() => onClose()}
|
|
215
213
|
/>
|
|
216
214
|
</View>
|