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,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { FlatList, Image } from 'react-native';
|
|
3
3
|
import type { AccountProps, MyPlayerProps } from '../../types';
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
4
|
+
import { Icons } from '../../Components';
|
|
5
|
+
import { useColors } from '../../constants/useColors';
|
|
6
|
+
import { Button, Text, View } from '../../Components/Themed';
|
|
7
7
|
|
|
8
8
|
type AccountAddProps = {
|
|
9
9
|
player:MyPlayerProps,
|
|
@@ -14,89 +14,119 @@ type AccountAddProps = {
|
|
|
14
14
|
onClose: () => void,
|
|
15
15
|
onNext: (account:AccountProps) => void,
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
const ach_add_sections = ['header', 'sub_header', 'link','manual']
|
|
18
18
|
const ACHAddCard = ({ accounts, onClose, onNext, onManualACH, onLinkACH }:AccountAddProps) => {
|
|
19
|
-
|
|
20
|
-
//const [ add_type, setAddType ] = useState('manual');
|
|
19
|
+
const Colors = useColors();
|
|
21
20
|
const manual_account = accounts.find(a => a.ach_detail && a.ach_detail.ach_type == 'manual');
|
|
22
21
|
const ibt_account = accounts.find(a => a.ach_detail && a.ach_detail.ach_type == 'ibf' && !a.ibt_placeholder);
|
|
23
22
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
<Text style={{ marginTop:3 }} size={12} color={Colors.brand.midnight} weight='regular'>When you link an account you get access to both instant deposits and instant withdraws.</Text>
|
|
38
|
-
</View>
|
|
23
|
+
const renderSections = (data:{item:string,index:number}) => {
|
|
24
|
+
switch(data.item){
|
|
25
|
+
case 'header':
|
|
26
|
+
return (
|
|
27
|
+
<View style={{ padding:20 }}>
|
|
28
|
+
<Text theme='h1'>GET ACCESS TO YOUR WINNINGS</Text>
|
|
29
|
+
<Text style={{ marginTop:5 }} theme='description'>At BettorEdge - we celebrate withdraws! In order to move funds out of your BettorEdge account, you will need to add an eligible bank account.</Text>
|
|
30
|
+
</View>
|
|
31
|
+
)
|
|
32
|
+
case 'sub_header':
|
|
33
|
+
return (
|
|
34
|
+
<View style={{ padding:20 }}>
|
|
35
|
+
<Text theme='h1'>ADD ACH ACCOUNT OPTIONS</Text>
|
|
39
36
|
</View>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
37
|
+
)
|
|
38
|
+
case 'link':
|
|
39
|
+
return (
|
|
40
|
+
<View float style={{ padding:20, borderRadius:8 }}>
|
|
41
|
+
<View transparent style={{ flexDirection:'row' }}>
|
|
42
|
+
<View float style={{ backgroundColor:Colors.text.white, borderRadius:100, height:50, width:50, justifyContent:'center', alignItems:'center' }}>
|
|
43
|
+
<Icons.PlaidIcon size={30}/>
|
|
44
|
+
</View>
|
|
45
|
+
<View transparent style={{ flex:1, marginLeft:10 }}>
|
|
46
|
+
<Text size={14} theme='h1'>Link your account using PLAID</Text>
|
|
47
|
+
<Text style={{ marginTop:3 }} size={12} theme='description'>When you link an account you get access to both instant deposits and instant withdraws.</Text>
|
|
48
|
+
</View>
|
|
49
49
|
</View>
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
{!ibt_account ?
|
|
51
|
+
<Button float style={{ marginTop:20, padding:3, flexDirection:'row', alignItems:'center', borderRadius:30 }}
|
|
52
|
+
onPress={() => onLinkACH()}>
|
|
53
|
+
<View transparent style={{ height:50, width:110, borderRadius:100, justifyContent:'center', alignItems:'center', borderWidth:1, borderColor:Colors.borders.light }}>
|
|
54
|
+
<Image
|
|
55
|
+
source={{ uri: 'https://res.cloudinary.com/hoabts6mc/image/upload/v1695821528/1630344814441_wjq98b.png' }}
|
|
56
|
+
style={{ width:50, height:30 }}
|
|
57
|
+
resizeMode='cover'
|
|
58
|
+
/>
|
|
59
|
+
</View>
|
|
60
|
+
<View transparent style={{ flex:1, marginLeft:10 }}>
|
|
61
|
+
<Text size={14} theme='h1' weight='bold'>LINK ACH ACCOUNT</Text>
|
|
62
|
+
</View>
|
|
63
|
+
</Button>
|
|
64
|
+
:
|
|
65
|
+
<View transparent style={{ position:'absolute', top:5, right:5, bottom:0}}>
|
|
66
|
+
<Icons.TransactionSuccessIcon size={45}/>
|
|
52
67
|
</View>
|
|
53
|
-
|
|
54
|
-
:
|
|
55
|
-
<View style={{ position:'absolute', top:5, right:5, bottom:0}}>
|
|
56
|
-
<Icons.TransactionSuccessIcon size={45}/>
|
|
68
|
+
}
|
|
57
69
|
</View>
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
<View style={{
|
|
62
|
-
|
|
63
|
-
<View style={{
|
|
64
|
-
<
|
|
65
|
-
|
|
70
|
+
)
|
|
71
|
+
case 'manual':
|
|
72
|
+
return (
|
|
73
|
+
<View float style={{ marginTop:20, padding:20, borderRadius:8 }}>
|
|
74
|
+
<View transparent style={{ flexDirection:'row' }}>
|
|
75
|
+
<View float style={{ height:50, width:50, borderRadius:100, justifyContent:'center', alignItems:'center' }}>
|
|
76
|
+
<Icons.BankIcon color={Colors.text.h1} size={30}/>
|
|
77
|
+
</View>
|
|
78
|
+
<View transparent style={{ flex:1, marginLeft:10 }}>
|
|
79
|
+
<Text size={14} theme='h1'>Manually add an account</Text>
|
|
80
|
+
<Text style={{ marginTop:3 }} size={12} theme='description'>Verify the account in 1-3 business days and start transacting.</Text>
|
|
66
81
|
</View>
|
|
67
82
|
|
|
68
83
|
</View>
|
|
69
84
|
{!manual_account ?
|
|
70
|
-
<
|
|
85
|
+
<Button float style={{ marginTop:20, padding:3, flexDirection:'row', alignItems:'center', borderRadius:30 }}
|
|
71
86
|
onPress={() => onManualACH()}>
|
|
72
|
-
<View style={{ height:50, width:50, borderRadius:100, justifyContent:'center', alignItems:'center'
|
|
73
|
-
<Icons.BankIcon size={22} color={Colors.
|
|
87
|
+
<View float style={{ height:50, width:50, borderRadius:100, justifyContent:'center', alignItems:'center' }}>
|
|
88
|
+
<Icons.BankIcon size={22} color={Colors.text.h1} />
|
|
74
89
|
</View>
|
|
75
|
-
<View style={{ flex:1 }}>
|
|
76
|
-
<Text size={14}
|
|
90
|
+
<View transparent style={{ flex:1, marginLeft:10 }}>
|
|
91
|
+
<Text size={14} theme='h1'>ADD MANUAL ACH ACCOUNT</Text>
|
|
77
92
|
</View>
|
|
78
|
-
</
|
|
93
|
+
</Button>
|
|
79
94
|
:
|
|
80
|
-
<View style={{ position:'absolute', top:5, right:5, bottom:0, alignItems:'flex-end'}}>
|
|
95
|
+
<View transparent style={{ position:'absolute', top:5, right:5, bottom:0, alignItems:'flex-end'}}>
|
|
81
96
|
<Icons.TransactionSuccessIcon size={45}/>
|
|
82
97
|
{manual_account?.status == 'verify' ?
|
|
83
|
-
<View style={{ marginTop:-10, marginRight:20, padding:10, borderRadius:8
|
|
84
|
-
<Text size={14}
|
|
98
|
+
<View transparent style={{ marginTop:-10, marginRight:20, padding:10, borderRadius:8 }}>
|
|
99
|
+
<Text size={14} theme='description'>Manual ACH account is pending verification</Text>
|
|
85
100
|
</View>
|
|
86
101
|
:<></>}
|
|
87
102
|
</View>
|
|
88
103
|
}
|
|
89
104
|
</View>
|
|
90
|
-
|
|
105
|
+
)
|
|
106
|
+
default: return <></>
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return (
|
|
111
|
+
<View style={{ flex:1 }}>
|
|
112
|
+
<FlatList
|
|
113
|
+
data={ach_add_sections}
|
|
114
|
+
key={'ach_add_sections'}
|
|
115
|
+
keyExtractor={(item) => item}
|
|
116
|
+
renderItem={renderSections}
|
|
117
|
+
/>
|
|
118
|
+
|
|
119
|
+
|
|
91
120
|
<View nativeID='action_row' style={{ flexDirection:'row', justifyContent:'space-between', padding:10 }}>
|
|
92
121
|
<Button
|
|
93
122
|
title={!ibt_account && !manual_account ? 'DO THIS LATER' : 'All Set!'}
|
|
94
|
-
title_color={!ibt_account && !manual_account ? Colors.
|
|
123
|
+
title_color={!ibt_account && !manual_account ? Colors.text.error: Colors.text.success}
|
|
95
124
|
backgroundColor='transparent'
|
|
96
125
|
onPress={() => onClose()}
|
|
97
126
|
/>
|
|
98
|
-
<
|
|
99
|
-
|
|
127
|
+
<Button
|
|
128
|
+
float
|
|
129
|
+
style={{ borderRadius:100, height:50, width:50, justifyContent:'center', alignItems:'center' }}
|
|
100
130
|
onPress={() => {
|
|
101
131
|
if(ibt_account) { return onNext(ibt_account) }
|
|
102
132
|
if(manual_account){ return onNext(manual_account) }
|
|
@@ -104,8 +134,8 @@ const ACHAddCard = ({ accounts, onClose, onNext, onManualACH, onLinkACH }:Accoun
|
|
|
104
134
|
}}
|
|
105
135
|
disabled={manual_account || ibt_account ? false : true}
|
|
106
136
|
>
|
|
107
|
-
<Icons.ChevronIcon size={20} direction='right' color={Colors.
|
|
108
|
-
</
|
|
137
|
+
<Icons.ChevronIcon size={20} direction='right' color={Colors.text.h1}/>
|
|
138
|
+
</Button>
|
|
109
139
|
</View>
|
|
110
140
|
</View>
|
|
111
141
|
)
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { View, TouchableOpacity } from "react-native";
|
|
3
2
|
import type { AccountProps } from '../../types';
|
|
4
|
-
import { Icons
|
|
5
|
-
import Colors from '../../constants/colors';
|
|
6
|
-
import { view_styles } from '../../constants/styles';
|
|
3
|
+
import { Icons } from '../../Components';
|
|
7
4
|
import moment from 'moment-mini';
|
|
5
|
+
import { Button, Text, View } from '../../Components/Themed';
|
|
6
|
+
import { useColors } from '../../constants/useColors';
|
|
8
7
|
|
|
9
8
|
type AccountCardProps = {
|
|
10
9
|
account:AccountProps,
|
|
@@ -13,12 +12,13 @@ type AccountCardProps = {
|
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
const AccountCard = ({ account, hide_status, onSelectAccount }: AccountCardProps) => {
|
|
15
|
+
const Colors = useColors();
|
|
16
16
|
|
|
17
17
|
const getIcon = () => {
|
|
18
18
|
switch(account.account_type){
|
|
19
19
|
case 'ach':
|
|
20
|
-
if(account.ach_detail?.payment_provider == 'nuvei'){ return <Icons.BankInstantIcon size={28} color={Colors.
|
|
21
|
-
return <Icons.BankIcon size={28} color={Colors.
|
|
20
|
+
if(account.ach_detail?.payment_provider == 'nuvei'){ return <Icons.BankInstantIcon size={28} color={Colors.text.h1}/> }
|
|
21
|
+
return <Icons.BankIcon size={28} color={Colors.text.success} />
|
|
22
22
|
case 'card':
|
|
23
23
|
return renderCardIcon(account.card_detail?.card_brand)
|
|
24
24
|
case 'paypal':
|
|
@@ -39,17 +39,17 @@ const AccountCard = ({ account, hide_status, onSelectAccount }: AccountCardProps
|
|
|
39
39
|
case 'discover':
|
|
40
40
|
return <Icons.DiscoverCardIcon size={28} />
|
|
41
41
|
default:
|
|
42
|
-
return <Icons.CreditCardIcon size={22} color={Colors.
|
|
42
|
+
return <Icons.CreditCardIcon size={22} color={Colors.text.h1}/>
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
const getStatusColor = () => {
|
|
47
47
|
switch(account.status){
|
|
48
|
-
case 'active': return Colors.
|
|
49
|
-
case 'inactive': return Colors.
|
|
50
|
-
case 'suspended': return Colors.
|
|
51
|
-
case 'verify': return Colors.
|
|
52
|
-
default: return Colors.
|
|
48
|
+
case 'active': return Colors.text.success
|
|
49
|
+
case 'inactive': return Colors.text.error
|
|
50
|
+
case 'suspended': return Colors.text.warning
|
|
51
|
+
case 'verify': return Colors.text.warning
|
|
52
|
+
default: return Colors.text.h1
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
|
|
@@ -69,25 +69,26 @@ const AccountCard = ({ account, hide_status, onSelectAccount }: AccountCardProps
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
return (
|
|
72
|
-
<
|
|
73
|
-
style={{
|
|
72
|
+
<Button
|
|
73
|
+
style={{ padding:10 }}
|
|
74
|
+
float
|
|
74
75
|
onPress={() => onSelectAccount(account)}
|
|
75
76
|
>
|
|
76
|
-
<View style={{
|
|
77
|
-
<View style={{ marginRight:10, justifyContent:'center', alignItems:'center' }}>
|
|
77
|
+
<View transparent style={{ flexDirection:'row' }}>
|
|
78
|
+
<View transparent style={{ marginRight:10, justifyContent:'center', alignItems:'center' }}>
|
|
78
79
|
{getIcon()}
|
|
79
80
|
</View>
|
|
80
|
-
<View style={{ flex:1 }}>
|
|
81
|
-
<Text
|
|
82
|
-
<Text style={{ marginTop:4 }}
|
|
81
|
+
<View transparent style={{ flex:1 }}>
|
|
82
|
+
<Text theme='h1'>{account.account_label}</Text>
|
|
83
|
+
<Text style={{ marginTop:4 }} theme='description'>{getDescriptionLabel()}</Text>
|
|
83
84
|
</View>
|
|
84
85
|
{!hide_status ?
|
|
85
|
-
<View>
|
|
86
|
+
<View transparent>
|
|
86
87
|
<Text size={12} color={getStatusColor()} weight='bold'>{account.status.toUpperCase()}</Text>
|
|
87
88
|
</View>
|
|
88
89
|
:<></>}
|
|
89
90
|
</View>
|
|
90
|
-
</
|
|
91
|
+
</Button>
|
|
91
92
|
)
|
|
92
93
|
}
|
|
93
94
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { FlatList
|
|
2
|
+
import { FlatList } from 'react-native';
|
|
3
3
|
import type { AccountLimitProps, AccountProps } from '../../types';
|
|
4
4
|
import { WalletApi, WalletHelpers } from '../api';
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
5
|
+
import { Icons, Toggle } from '../../Components';
|
|
6
|
+
import { useColors } from '../../constants/useColors';
|
|
7
|
+
import { Button, Text, View } from '../../Components/Themed';
|
|
7
8
|
|
|
8
9
|
const limit_amount_options = [ 50, 100, 250, 500, 1000]
|
|
9
10
|
const frequency_options = ['Daily', 'Weekly', 'Monthly']
|
|
@@ -15,8 +16,8 @@ type AccountLimitManagerProps = {
|
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
const AccountLimitManager = ({ account, onCancel, onSetLimit }: AccountLimitManagerProps ) => {
|
|
19
|
+
const Colors = useColors();
|
|
18
20
|
const [ loading, setLoading ] = useState(false);
|
|
19
|
-
const [ freq_width, setFreqWidth ] = useState(0);
|
|
20
21
|
const [ disclaimer, setDisclaimer ] = useState(false);
|
|
21
22
|
const [ dropdown_visible, setDropdownVisible ] = useState(false);
|
|
22
23
|
const [ active_frequency, setActiveFrequency ] = useState('Daily')
|
|
@@ -102,41 +103,34 @@ const AccountLimitManager = ({ account, onCancel, onSetLimit }: AccountLimitMana
|
|
|
102
103
|
const renderOptions = (data: { item:number, index:number }) => {
|
|
103
104
|
//const selected = data.item == active_amount ? true : false
|
|
104
105
|
return (
|
|
105
|
-
<
|
|
106
|
+
<Button style={{ padding:10, borderBottomWidth:1, borderColor:Colors.borders.light }} onPress={() => {
|
|
106
107
|
setActiveAmount(data.item);
|
|
107
108
|
setDropdownVisible(false);
|
|
108
109
|
}}>
|
|
109
|
-
<Text
|
|
110
|
-
</
|
|
110
|
+
<Text theme='h2'>${data.item}</Text>
|
|
111
|
+
</Button>
|
|
111
112
|
)
|
|
112
113
|
}
|
|
113
114
|
|
|
114
|
-
const renderFrequencies = (data: {item:string, index:number}) => {
|
|
115
|
-
const selected = data.item == active_frequency ? true : false
|
|
116
|
-
return (
|
|
117
|
-
<TouchableOpacity style={{ width:freq_width/3, backgroundColor:selected?Colors.shades.white:'transparent', borderRadius:4, padding:10 }} onPress={() => setActiveFrequency(data.item)}>
|
|
118
|
-
<Text size={14} color={Colors.brand.midnight} weight={selected?'bold':'regular'} textAlign='center'>{data.item}</Text>
|
|
119
|
-
</TouchableOpacity>
|
|
120
|
-
)
|
|
121
|
-
}
|
|
122
115
|
const valid = active_amount && active_frequency ? true : false
|
|
123
116
|
return (
|
|
124
117
|
<View style={{ flex:1 }}>
|
|
125
118
|
<View style={{ padding:20 }}>
|
|
126
|
-
<Text size={30}
|
|
127
|
-
<Text style={{ marginTop:15 }} size={16}
|
|
119
|
+
<Text size={30} theme='h1'>{account_limit?.status == 'active'?'Update Deposit Limits':'Deposit Limits'}</Text>
|
|
120
|
+
<Text style={{ marginTop:15 }} size={16} theme='description'>Set your own limit for depositing.</Text>
|
|
128
121
|
</View>
|
|
129
|
-
<
|
|
122
|
+
<View style={{ flex:1 }}>
|
|
130
123
|
<View style={{padding:16}}>
|
|
131
|
-
<Text size={16}
|
|
132
|
-
<
|
|
124
|
+
<Text size={16} theme='h2'>Amount</Text>
|
|
125
|
+
<Button
|
|
126
|
+
float
|
|
133
127
|
onPress={() => setDropdownVisible(!dropdown_visible)}
|
|
134
|
-
style={{marginTop:8, flexDirection:'row', alignItems:'center', justifyContent:'space-between', padding:15
|
|
135
|
-
<Text
|
|
136
|
-
<Icons.ChevronIcon direction='down' color={Colors.
|
|
137
|
-
</
|
|
128
|
+
style={{marginTop:8, flexDirection:'row', alignItems:'center', justifyContent:'space-between', padding:15 }}>
|
|
129
|
+
<Text theme='h2'>{active_amount?`$${active_amount}`:'Select Limit'}</Text>
|
|
130
|
+
<Icons.ChevronIcon direction='down' color={Colors.text.h1} size={8} />
|
|
131
|
+
</Button>
|
|
138
132
|
{dropdown_visible ?
|
|
139
|
-
<View style={{ borderBottomRightRadius:8, borderBottomLeftRadius:8, padding:10, borderWidth:1, borderTopWidth:1, borderColor:Colors.
|
|
133
|
+
<View style={{ borderBottomRightRadius:8, borderBottomLeftRadius:8, padding:10, borderWidth:1, borderTopWidth:1, borderColor:Colors.borders.light }}>
|
|
140
134
|
<FlatList
|
|
141
135
|
data={limit_amount_options}
|
|
142
136
|
renderItem={renderOptions}
|
|
@@ -145,53 +139,43 @@ const AccountLimitManager = ({ account, onCancel, onSetLimit }: AccountLimitMana
|
|
|
145
139
|
:<></>}
|
|
146
140
|
</View>
|
|
147
141
|
<View style={{ padding:16 }}>
|
|
148
|
-
<Text
|
|
149
|
-
<
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
renderItem={renderFrequencies}
|
|
155
|
-
horizontal
|
|
156
|
-
showsHorizontalScrollIndicator={false}
|
|
157
|
-
/>
|
|
158
|
-
</View>
|
|
142
|
+
<Text style={{ marginBottom:10 }} size={16} theme='h2'>Frequency</Text>
|
|
143
|
+
<Toggle
|
|
144
|
+
options={frequency_options.map(o => { return { key: o, label:o } })}
|
|
145
|
+
selected_option={active_frequency}
|
|
146
|
+
onSelectOption={(option) => setActiveFrequency(option)}
|
|
147
|
+
/>
|
|
159
148
|
</View>
|
|
160
149
|
{account_limit?.status == 'active' ?
|
|
161
|
-
<View style={{ margin:10, borderRadius:8, backgroundColor:Colors.
|
|
162
|
-
<Text size={14}
|
|
150
|
+
<View style={{ margin:10, borderRadius:8, backgroundColor:Colors.borders.light, padding:10 }}>
|
|
151
|
+
<Text size={14} theme='h2' textAlign='center'>There is an active limit on this account of ${account_limit.limit_amount} every {account_limit.limit_days} days</Text>
|
|
163
152
|
<Button
|
|
164
153
|
style={{ marginTop:10 }}
|
|
165
154
|
title='REMOVE'
|
|
166
|
-
|
|
167
|
-
padding={15}
|
|
168
|
-
backgroundColor={Colors.utility.error}
|
|
155
|
+
type='error'
|
|
169
156
|
onPress={() => handleRemoveAccountLimit()}
|
|
170
157
|
/>
|
|
171
158
|
</View>
|
|
172
159
|
:<></>}
|
|
173
|
-
</
|
|
160
|
+
</View>
|
|
174
161
|
|
|
175
162
|
{ valid ?
|
|
176
163
|
<View nativeID='limit_disclaimer' style={{ margin:10 }}>
|
|
177
|
-
<
|
|
178
|
-
<View style={{ justifyContent:'center', marginRight:10, alignItems:'center', height:25, width:25, borderRadius:4, backgroundColor: disclaimer ? Colors.
|
|
164
|
+
<Button style={{ flexDirection:'row', padding:5 }} onPress={() => setDisclaimer(!disclaimer)}>
|
|
165
|
+
<View style={{ justifyContent:'center', marginRight:10, alignItems:'center', height:25, width:25, borderRadius:4, backgroundColor: disclaimer ? Colors.text.h1 : 'transparent', borderWidth:1, borderColor:Colors.text.h1 }}>
|
|
179
166
|
{disclaimer ?
|
|
180
|
-
<Icons.CheckIcon color={Colors.
|
|
167
|
+
<Icons.CheckIcon color={Colors.text.h1} size={14} />
|
|
181
168
|
:<></>}
|
|
182
169
|
</View>
|
|
183
|
-
<Text size={14}
|
|
184
|
-
</
|
|
170
|
+
<Text size={14} theme='description'>I confirm I would like to the my deposit limit to {active_amount}, and deposit frequency to {active_frequency}</Text>
|
|
171
|
+
</Button>
|
|
185
172
|
</View>
|
|
186
173
|
:<></>}
|
|
187
174
|
<View nativeID='action_row' style={{ flexDirection:'row', padding:20 }}>
|
|
188
175
|
<Button
|
|
189
176
|
style={{ flex:1, marginRight:5, opacity: 1 }}
|
|
190
177
|
title={'CLOSE'}
|
|
191
|
-
|
|
192
|
-
borderColor={Colors.brand.electric}
|
|
193
|
-
borderWidth={1}
|
|
194
|
-
padding={15}
|
|
178
|
+
type='close'
|
|
195
179
|
onPress={() => onCancel()}
|
|
196
180
|
/>
|
|
197
181
|
<Button
|
|
@@ -199,9 +183,7 @@ const AccountLimitManager = ({ account, onCancel, onSetLimit }: AccountLimitMana
|
|
|
199
183
|
title={'SAVE LIMIT'}
|
|
200
184
|
disabled={!valid||!disclaimer}
|
|
201
185
|
loading={loading}
|
|
202
|
-
|
|
203
|
-
backgroundColor={Colors.brand.electric}
|
|
204
|
-
padding={15}
|
|
186
|
+
type='success'
|
|
205
187
|
onPress={() => handleSetLimit()}
|
|
206
188
|
/>
|
|
207
189
|
</View>
|