be-components 3.7.0 → 3.7.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/Authenticator/Components/StrategyForm.js +1 -0
- package/lib/commonjs/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/commonjs/Checkout/components/AccountSummaryCard.js +2 -0
- package/lib/commonjs/Checkout/components/AccountSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/index.js +3 -0
- package/lib/commonjs/Checkout/index.js.map +1 -1
- package/lib/commonjs/Competition/components/WagerPickForm.js +2 -1
- package/lib/commonjs/Competition/components/WagerPickForm.js.map +1 -1
- package/lib/commonjs/Competition/index.js +2 -0
- package/lib/commonjs/Competition/index.js.map +1 -1
- package/lib/commonjs/Components/Themed.js +2 -4
- package/lib/commonjs/Components/Themed.js.map +1 -1
- package/lib/commonjs/Engage/components/PrivateCodePrompt.js +2 -0
- package/lib/commonjs/Engage/components/PrivateCodePrompt.js.map +1 -1
- package/lib/commonjs/Engage/index.js +2 -0
- package/lib/commonjs/Engage/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/BestAvailableOrderCard.js +2 -1
- package/lib/commonjs/MarketComponents/components/BestAvailableOrderCard.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js +3 -6
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/DOBManager.js +0 -1
- package/lib/commonjs/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/EmailManager.js +1 -2
- package/lib/commonjs/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js +1 -3
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js +0 -2
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js +0 -1
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/AddressManager.js +6 -0
- package/lib/commonjs/Wallet/components/AddressManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/DepositCard.js +2 -0
- package/lib/commonjs/Wallet/components/DepositCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManualACHAdd.js +6 -1
- package/lib/commonjs/Wallet/components/ManualACHAdd.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManualCardAdd.js +6 -1
- package/lib/commonjs/Wallet/components/ManualCardAdd.js.map +1 -1
- package/lib/commonjs/Wallet/components/VerifyACHAccount.js +32 -47
- package/lib/commonjs/Wallet/components/VerifyACHAccount.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletSetup.js +4 -1
- package/lib/commonjs/Wallet/components/WalletSetup.js.map +1 -1
- package/lib/commonjs/Wallet/components/WithdrawCard.js +2 -0
- package/lib/commonjs/Wallet/components/WithdrawCard.js.map +1 -1
- package/lib/commonjs/Wallet/index.js +12 -1
- package/lib/commonjs/Wallet/index.js.map +1 -1
- package/lib/commonjs/constants/useColors.js +2 -0
- package/lib/commonjs/constants/useColors.js.map +1 -1
- package/lib/module/Authenticator/Components/StrategyForm.js +1 -0
- package/lib/module/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/module/Checkout/components/AccountSummaryCard.js +2 -0
- package/lib/module/Checkout/components/AccountSummaryCard.js.map +1 -1
- package/lib/module/Checkout/index.js +3 -0
- package/lib/module/Checkout/index.js.map +1 -1
- package/lib/module/Competition/components/WagerPickForm.js +2 -1
- package/lib/module/Competition/components/WagerPickForm.js.map +1 -1
- package/lib/module/Competition/index.js +2 -0
- package/lib/module/Competition/index.js.map +1 -1
- package/lib/module/Components/Themed.js +2 -4
- package/lib/module/Components/Themed.js.map +1 -1
- package/lib/module/Engage/components/PrivateCodePrompt.js +2 -0
- package/lib/module/Engage/components/PrivateCodePrompt.js.map +1 -1
- package/lib/module/Engage/index.js +2 -0
- package/lib/module/Engage/index.js.map +1 -1
- package/lib/module/MarketComponents/components/BestAvailableOrderCard.js +2 -1
- package/lib/module/MarketComponents/components/BestAvailableOrderCard.js.map +1 -1
- package/lib/module/ProfileManager/Components/BasicInfoManager.js +3 -6
- package/lib/module/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/DOBManager.js +0 -1
- package/lib/module/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/EmailManager.js +1 -2
- package/lib/module/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PasswordManager.js +1 -3
- package/lib/module/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PhoneManager.js +0 -2
- package/lib/module/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/SettingsManager.js +0 -1
- package/lib/module/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/module/Wallet/components/AddressManager.js +6 -0
- package/lib/module/Wallet/components/AddressManager.js.map +1 -1
- package/lib/module/Wallet/components/DepositCard.js +2 -0
- package/lib/module/Wallet/components/DepositCard.js.map +1 -1
- package/lib/module/Wallet/components/ManualACHAdd.js +6 -1
- package/lib/module/Wallet/components/ManualACHAdd.js.map +1 -1
- package/lib/module/Wallet/components/ManualCardAdd.js +6 -1
- package/lib/module/Wallet/components/ManualCardAdd.js.map +1 -1
- package/lib/module/Wallet/components/VerifyACHAccount.js +16 -31
- package/lib/module/Wallet/components/VerifyACHAccount.js.map +1 -1
- package/lib/module/Wallet/components/WalletSetup.js +4 -1
- package/lib/module/Wallet/components/WalletSetup.js.map +1 -1
- package/lib/module/Wallet/components/WithdrawCard.js +2 -0
- package/lib/module/Wallet/components/WithdrawCard.js.map +1 -1
- package/lib/module/Wallet/index.js +12 -1
- package/lib/module/Wallet/index.js.map +1 -1
- package/lib/module/constants/useColors.js +2 -0
- package/lib/module/constants/useColors.js.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Checkout/components/AccountSummaryCard.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Checkout/components/AccountSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Checkout/index.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Checkout/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/WagerPickForm.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Competition/components/WagerPickForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/index.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Competition/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Themed.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Engage/components/PrivateCodePrompt.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Engage/components/PrivateCodePrompt.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Engage/index.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Engage/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/BestAvailableOrderCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/AddressManager.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Wallet/components/AddressManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/DepositCard.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Wallet/components/DepositCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/ManualACHAdd.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Wallet/components/ManualACHAdd.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/ManualCardAdd.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Wallet/components/ManualCardAdd.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/VerifyACHAccount.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Wallet/components/VerifyACHAccount.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/WalletSetup.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Wallet/components/WalletSetup.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/WithdrawCard.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Wallet/components/WithdrawCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/index.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Wallet/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/constants/useColors.d.ts +1 -0
- package/lib/typescript/lib/commonjs/constants/useColors.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Checkout/components/AccountSummaryCard.d.ts +2 -1
- package/lib/typescript/lib/module/Checkout/components/AccountSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Checkout/index.d.ts +2 -1
- package/lib/typescript/lib/module/Checkout/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/WagerPickForm.d.ts +2 -1
- package/lib/typescript/lib/module/Competition/components/WagerPickForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/index.d.ts +2 -1
- package/lib/typescript/lib/module/Competition/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Themed.d.ts.map +1 -1
- package/lib/typescript/lib/module/Engage/components/PrivateCodePrompt.d.ts +2 -1
- package/lib/typescript/lib/module/Engage/components/PrivateCodePrompt.d.ts.map +1 -1
- package/lib/typescript/lib/module/Engage/index.d.ts +2 -1
- package/lib/typescript/lib/module/Engage/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/BestAvailableOrderCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/AddressManager.d.ts +2 -1
- package/lib/typescript/lib/module/Wallet/components/AddressManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/DepositCard.d.ts +2 -1
- package/lib/typescript/lib/module/Wallet/components/DepositCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/ManualACHAdd.d.ts +2 -1
- package/lib/typescript/lib/module/Wallet/components/ManualACHAdd.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/ManualCardAdd.d.ts +2 -1
- package/lib/typescript/lib/module/Wallet/components/ManualCardAdd.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/VerifyACHAccount.d.ts +3 -3
- package/lib/typescript/lib/module/Wallet/components/VerifyACHAccount.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/WalletSetup.d.ts +2 -1
- package/lib/typescript/lib/module/Wallet/components/WalletSetup.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/WithdrawCard.d.ts +2 -1
- package/lib/typescript/lib/module/Wallet/components/WithdrawCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/index.d.ts +2 -1
- package/lib/typescript/lib/module/Wallet/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/constants/useColors.d.ts +1 -0
- package/lib/typescript/lib/module/constants/useColors.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/AccountSummaryCard.d.ts +3 -2
- package/lib/typescript/src/Checkout/components/AccountSummaryCard.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/index.d.ts +3 -2
- package/lib/typescript/src/Checkout/index.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/WagerPickForm.d.ts +3 -2
- package/lib/typescript/src/Competition/components/WagerPickForm.d.ts.map +1 -1
- package/lib/typescript/src/Competition/index.d.ts +3 -2
- package/lib/typescript/src/Competition/index.d.ts.map +1 -1
- package/lib/typescript/src/Components/Themed.d.ts.map +1 -1
- package/lib/typescript/src/Engage/components/PrivateCodePrompt.d.ts +3 -2
- package/lib/typescript/src/Engage/components/PrivateCodePrompt.d.ts.map +1 -1
- package/lib/typescript/src/Engage/index.d.ts +3 -2
- package/lib/typescript/src/Engage/index.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AddressManager.d.ts +3 -2
- package/lib/typescript/src/Wallet/components/AddressManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/DepositCard.d.ts +3 -2
- package/lib/typescript/src/Wallet/components/DepositCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ManualACHAdd.d.ts +3 -2
- package/lib/typescript/src/Wallet/components/ManualACHAdd.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ManualCardAdd.d.ts +3 -2
- package/lib/typescript/src/Wallet/components/ManualCardAdd.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/VerifyACHAccount.d.ts +3 -2
- package/lib/typescript/src/Wallet/components/VerifyACHAccount.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WalletSetup.d.ts +3 -2
- package/lib/typescript/src/Wallet/components/WalletSetup.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WithdrawCard.d.ts +3 -2
- package/lib/typescript/src/Wallet/components/WithdrawCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/index.d.ts +3 -2
- package/lib/typescript/src/Wallet/index.d.ts.map +1 -1
- package/lib/typescript/src/constants/useColors.d.ts +1 -0
- package/lib/typescript/src/constants/useColors.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Authenticator/Components/StrategyForm.tsx +1 -0
- package/src/Checkout/components/AccountSummaryCard.tsx +4 -2
- package/src/Checkout/index.tsx +5 -2
- package/src/Competition/components/WagerPickForm.tsx +4 -3
- package/src/Competition/index.tsx +4 -2
- package/src/Components/Themed.tsx +3 -4
- package/src/Engage/components/PrivateCodePrompt.tsx +4 -2
- package/src/Engage/index.tsx +4 -2
- package/src/MarketComponents/components/BestAvailableOrderCard.tsx +2 -2
- package/src/ProfileManager/Components/BasicInfoManager.tsx +5 -3
- package/src/ProfileManager/Components/DOBManager.tsx +0 -1
- package/src/ProfileManager/Components/EmailManager.tsx +1 -4
- package/src/ProfileManager/Components/PasswordManager.tsx +1 -4
- package/src/ProfileManager/Components/PhoneManager.tsx +1 -4
- package/src/ProfileManager/Components/SettingsManager.tsx +0 -1
- package/src/Wallet/components/AddressManager.tsx +9 -3
- package/src/Wallet/components/DepositCard.tsx +4 -2
- package/src/Wallet/components/ManualACHAdd.tsx +7 -2
- package/src/Wallet/components/ManualCardAdd.tsx +7 -2
- package/src/Wallet/components/VerifyACHAccount.tsx +17 -28
- package/src/Wallet/components/WalletSetup.tsx +6 -3
- package/src/Wallet/components/WithdrawCard.tsx +4 -2
- package/src/Wallet/index.tsx +14 -3
- package/src/constants/useColors.tsx +2 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { Checkbox } from '../../Components';
|
|
3
3
|
import { WalletApi, WalletHelpers } from '../api';
|
|
4
|
-
import type { AccountProps, MyPlayerProps } from '../../types';
|
|
4
|
+
import type { AccountProps, FocusPositionProps, MyPlayerProps } from '../../types';
|
|
5
5
|
import { useColors } from '../../constants/useColors';
|
|
6
6
|
import { Button, Text, TextInput, View } from '../../Components/Themed';
|
|
7
7
|
import { FlatList, KeyboardAvoidingView, Platform } from 'react-native';
|
|
@@ -9,12 +9,13 @@ const validator = require('us-bank-account-validator');
|
|
|
9
9
|
|
|
10
10
|
type ManualACHAddProps = {
|
|
11
11
|
player:MyPlayerProps,
|
|
12
|
+
onFocusPosition?:(pos:FocusPositionProps) => void,
|
|
12
13
|
onAddAccount:(account:AccountProps) => void,
|
|
13
14
|
onCancel:() => void
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
const ach_sections = ['header','name','bank_name','routing_number','account_number','disclaimer']
|
|
17
|
-
const ManualACHAdd = ({ player, onAddAccount, onCancel }:ManualACHAddProps) => {
|
|
18
|
+
const ManualACHAdd = ({ player, onAddAccount, onCancel, onFocusPosition }:ManualACHAddProps) => {
|
|
18
19
|
const Colors = useColors();
|
|
19
20
|
const [ loading, setLoading ] = useState(false);
|
|
20
21
|
const [ error, setError ] = useState<string>();
|
|
@@ -59,6 +60,7 @@ const ManualACHAdd = ({ player, onAddAccount, onCancel }:ManualACHAddProps) => {
|
|
|
59
60
|
<Text size={14} theme='h2'>Name on account</Text>
|
|
60
61
|
<TextInput
|
|
61
62
|
style={{ marginTop:10 }}
|
|
63
|
+
onFocusPosition={onFocusPosition}
|
|
62
64
|
value={`${player.first_name} ${player.last_name}`}
|
|
63
65
|
editable={false}
|
|
64
66
|
onChangeText={() => console.log('ehy')}
|
|
@@ -71,6 +73,7 @@ const ManualACHAdd = ({ player, onAddAccount, onCancel }:ManualACHAddProps) => {
|
|
|
71
73
|
<Text size={14} theme='h2'>Bank Name</Text>
|
|
72
74
|
<TextInput
|
|
73
75
|
style={{ marginTop:10 }}
|
|
76
|
+
onFocusPosition={onFocusPosition}
|
|
74
77
|
keyboardType='default'
|
|
75
78
|
placeholder={'Bank Name'}
|
|
76
79
|
value={ach_details.bank_name}
|
|
@@ -88,6 +91,7 @@ const ManualACHAdd = ({ player, onAddAccount, onCancel }:ManualACHAddProps) => {
|
|
|
88
91
|
<Text size={14} theme='h2'>Routing Number</Text>
|
|
89
92
|
<TextInput
|
|
90
93
|
style={{ marginTop:10 }}
|
|
94
|
+
onFocusPosition={onFocusPosition}
|
|
91
95
|
keyboardType='number-pad'
|
|
92
96
|
placeholder={'xxxxxx911'}
|
|
93
97
|
value={ach_details.routing_number}
|
|
@@ -104,6 +108,7 @@ const ManualACHAdd = ({ player, onAddAccount, onCancel }:ManualACHAddProps) => {
|
|
|
104
108
|
<Text size={14} theme='h2'>Account Number</Text>
|
|
105
109
|
<TextInput
|
|
106
110
|
style={{ marginTop:10 }}
|
|
111
|
+
onFocusPosition={onFocusPosition}
|
|
107
112
|
keyboardType='number-pad'
|
|
108
113
|
value={ach_details.account_number}
|
|
109
114
|
placeholder={'xxxxxxxxx0000'}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { WalletApi, WalletHelpers } from '../api';
|
|
3
3
|
import { Icons } from '../../Components';
|
|
4
|
-
import type { AccountProps, MyPlayerProps } from '../../types';
|
|
4
|
+
import type { AccountProps, FocusPositionProps, MyPlayerProps } from '../../types';
|
|
5
5
|
import moment from 'moment-mini';
|
|
6
6
|
import { Button, Text, TextInput, View } from '../../Components/Themed';
|
|
7
7
|
import { useColors } from '../../constants/useColors';
|
|
@@ -9,11 +9,12 @@ import { FlatList } from 'react-native';
|
|
|
9
9
|
|
|
10
10
|
type ManualCardAddProps = {
|
|
11
11
|
player:MyPlayerProps,
|
|
12
|
+
onFocusPosition?:(pos:FocusPositionProps) => void,
|
|
12
13
|
onAddAccount:(acct:AccountProps) => void,
|
|
13
14
|
onCancel:() => void
|
|
14
15
|
}
|
|
15
16
|
const card_sections = ['header','card_number','first_name','last_name','expire_date']
|
|
16
|
-
const ManualCardAdd = ({ player, onAddAccount, onCancel }:ManualCardAddProps) => {
|
|
17
|
+
const ManualCardAdd = ({ player, onAddAccount, onCancel, onFocusPosition }:ManualCardAddProps) => {
|
|
17
18
|
const Colors = useColors();
|
|
18
19
|
const [ loading, setLoading ] = useState(false);
|
|
19
20
|
const [ error, setError ] = useState<string>();
|
|
@@ -104,6 +105,7 @@ const ManualCardAdd = ({ player, onAddAccount, onCancel }:ManualCardAddProps) =>
|
|
|
104
105
|
<TextInput
|
|
105
106
|
style={{ borderWidth:0, padding:15, flex:1 }}
|
|
106
107
|
placeholder='1234 5678 9876 5432'
|
|
108
|
+
onFocusPosition={onFocusPosition}
|
|
107
109
|
keyboardType='decimal-pad'
|
|
108
110
|
value={WalletHelpers.formatCardNumber(card_detail.card_number)}
|
|
109
111
|
onChangeText={(e) => handleCardNumber(e)}
|
|
@@ -123,6 +125,7 @@ const ManualCardAdd = ({ player, onAddAccount, onCancel }:ManualCardAddProps) =>
|
|
|
123
125
|
<Text style={{ padding:10 }} size={14} theme='h2'>First Name</Text>
|
|
124
126
|
<TextInput
|
|
125
127
|
placeholder='Jonathan'
|
|
128
|
+
onFocusPosition={onFocusPosition}
|
|
126
129
|
value={card_detail.first_name}
|
|
127
130
|
onChangeText={(e) => setCardAccount({ ...card_account, card_detail: { ...card_detail, first_name: e } })}
|
|
128
131
|
/>
|
|
@@ -138,6 +141,7 @@ const ManualCardAdd = ({ player, onAddAccount, onCancel }:ManualCardAddProps) =>
|
|
|
138
141
|
<View nativeID='last_name' style={{ padding:5 }}>
|
|
139
142
|
<Text size={14} theme='h2' style={{ padding:10 }}>Last Name</Text>
|
|
140
143
|
<TextInput
|
|
144
|
+
onFocusPosition={onFocusPosition}
|
|
141
145
|
placeholder='Smith'
|
|
142
146
|
value={card_detail.last_name}
|
|
143
147
|
onChangeText={(e) => setCardAccount({ ...card_account, card_detail: { ...card_detail, last_name: e } })}
|
|
@@ -154,6 +158,7 @@ const ManualCardAdd = ({ player, onAddAccount, onCancel }:ManualCardAddProps) =>
|
|
|
154
158
|
<View nativeID='expiration_date' style={{ padding:5 }}>
|
|
155
159
|
<Text size={14} theme='h2' style={{ padding:10 }}>Expiration Date (MM/YYYY)</Text>
|
|
156
160
|
<TextInput
|
|
161
|
+
onFocusPosition={onFocusPosition}
|
|
157
162
|
value={card_detail.expiration_date}
|
|
158
163
|
placeholder={'MM/YYYY'}
|
|
159
164
|
onChangeText={(e) => handleExpiry(e)}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { Button, Text, TextInput } from '../../Components';
|
|
4
|
-
import Colors from '../../constants/colors';
|
|
2
|
+
import { ScrollView } from 'react-native';
|
|
5
3
|
import { WalletApi, WalletHelpers } from '../api';
|
|
6
4
|
import moment from 'moment-mini';
|
|
7
|
-
import type { AccountProps } from '../../types';
|
|
5
|
+
import type { AccountProps, FocusPositionProps } from '../../types';
|
|
6
|
+
import { useColors } from '../../constants/useColors';
|
|
7
|
+
import { Button, Text, TextInput, View } from '../../Components/Themed';
|
|
8
8
|
|
|
9
9
|
type VerifyACHWidgetProps = {
|
|
10
10
|
account:AccountProps,
|
|
11
|
+
onFocusPosition?:(pos:FocusPositionProps) => void,
|
|
11
12
|
onUpdateAccount:(account:AccountProps) => void,
|
|
12
13
|
onClose: () => void,
|
|
13
14
|
}
|
|
14
15
|
|
|
15
|
-
const VerifyACHAccount = ({ account, onClose, onUpdateAccount }:VerifyACHWidgetProps) => {
|
|
16
|
+
const VerifyACHAccount = ({ account, onClose, onUpdateAccount, onFocusPosition }:VerifyACHWidgetProps) => {
|
|
17
|
+
const Colors = useColors();
|
|
16
18
|
const [ loading, setLoading ] = useState(false);
|
|
17
19
|
const [ verify_amount_1, setVerify1Amount ] = useState('')
|
|
18
20
|
const [ verify_amount_2, setVerify2Amount ] = useState('')
|
|
@@ -56,36 +58,35 @@ const VerifyACHAccount = ({ account, onClose, onUpdateAccount }:VerifyACHWidgetP
|
|
|
56
58
|
return (
|
|
57
59
|
<View style={{ flex:1 }}>
|
|
58
60
|
<View style={{ padding:20 }}>
|
|
59
|
-
<Text size={26}
|
|
60
|
-
<Text style={{ marginTop:10 }} size={16}
|
|
61
|
+
<Text size={26} theme='h1'>VERIFY ACCOUNT</Text>
|
|
62
|
+
<Text style={{ marginTop:10 }} size={16} theme='description'>Verify this account by entering the two deposit amounts received from Bettoredge when setting up the account.</Text>
|
|
61
63
|
</View>
|
|
62
64
|
<ScrollView nativeID='verify_inputs' style={{ flex:1, margin:20 }}>
|
|
63
65
|
<View style={{marginTop:30}}>
|
|
64
|
-
<Text textAlign='center' size={16}
|
|
66
|
+
<Text textAlign='center' size={16} theme='h2'>Deposit 1</Text>
|
|
65
67
|
<TextInput
|
|
66
68
|
style={{ marginTop:5 }}
|
|
69
|
+
onFocusPosition={onFocusPosition}
|
|
67
70
|
value={verify_amount_1}
|
|
68
71
|
editable={account.status == 'verify' ? true : false}
|
|
69
|
-
placeholderTextColor={Colors.brand.slate}
|
|
70
72
|
keyboardType='decimal-pad'
|
|
71
73
|
placeholder='0.00'
|
|
72
74
|
onChangeText={(e) => setVerify1Amount(e)}
|
|
73
75
|
/>
|
|
74
76
|
</View>
|
|
75
77
|
<View style={{marginTop:20}}>
|
|
76
|
-
<Text textAlign='center' size={16}
|
|
78
|
+
<Text textAlign='center' size={16} theme='h2'>Deposit 2</Text>
|
|
77
79
|
<TextInput
|
|
78
80
|
style={{ marginTop:5 }}
|
|
79
81
|
editable={account.status == 'verify' ? true : false}
|
|
80
82
|
value={verify_amount_2}
|
|
81
|
-
placeholderTextColor={Colors.brand.slate}
|
|
82
83
|
keyboardType='decimal-pad'
|
|
83
84
|
placeholder='0.00'
|
|
84
85
|
onChangeText={(e) => setVerify2Amount(e)}
|
|
85
86
|
/>
|
|
86
87
|
</View>
|
|
87
88
|
{error ?
|
|
88
|
-
<Text style={{ marginTop:10 }} textAlign='center' size={14} color={Colors.
|
|
89
|
+
<Text style={{ marginTop:10 }} textAlign='center' size={14} color={Colors.text.warning} weight='bold'>{error}</Text>
|
|
89
90
|
:<></>}
|
|
90
91
|
|
|
91
92
|
</ScrollView>
|
|
@@ -94,10 +95,7 @@ const VerifyACHAccount = ({ account, onClose, onUpdateAccount }:VerifyACHWidgetP
|
|
|
94
95
|
<Button
|
|
95
96
|
style={{ flex:1, marginRight:5 }}
|
|
96
97
|
title='CANCEL'
|
|
97
|
-
|
|
98
|
-
padding={15}
|
|
99
|
-
borderWidth={1}
|
|
100
|
-
borderColor={Colors.brand.electric}
|
|
98
|
+
type='error'
|
|
101
99
|
onPress={() => onClose()}
|
|
102
100
|
/>
|
|
103
101
|
<Button
|
|
@@ -105,9 +103,7 @@ const VerifyACHAccount = ({ account, onClose, onUpdateAccount }:VerifyACHWidgetP
|
|
|
105
103
|
disabled={!verify_allowed}
|
|
106
104
|
loading={loading}
|
|
107
105
|
title={timedout?`Try Again ${moment(next_allowed).fromNow()}`:'VERIFY ACCOUNT'}
|
|
108
|
-
|
|
109
|
-
backgroundColor={Colors.utility.success}
|
|
110
|
-
padding={15}
|
|
106
|
+
type='success'
|
|
111
107
|
onPress={() => handleVerify()}
|
|
112
108
|
/>
|
|
113
109
|
</View>
|
|
@@ -116,19 +112,12 @@ const VerifyACHAccount = ({ account, onClose, onUpdateAccount }:VerifyACHWidgetP
|
|
|
116
112
|
<Button
|
|
117
113
|
style={{ flex:1, marginRight:5 }}
|
|
118
114
|
title='CLOSE'
|
|
119
|
-
|
|
120
|
-
padding={15}
|
|
121
|
-
borderWidth={1}
|
|
122
|
-
borderColor={Colors.brand.electric}
|
|
123
|
-
onPress={() => onClose()}
|
|
115
|
+
type='close'
|
|
124
116
|
/>
|
|
125
117
|
<Button
|
|
126
118
|
style={{ flex:3, opacity:0.5 }}
|
|
127
119
|
title='ACCOUNT VERIFIED!'
|
|
128
|
-
|
|
129
|
-
title_weight='bold'
|
|
130
|
-
padding={15}
|
|
131
|
-
backgroundColor={Colors.utility.success}
|
|
120
|
+
type='success'
|
|
132
121
|
onPress={() => onClose()}
|
|
133
122
|
/>
|
|
134
123
|
</View>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { FlatList, Image, Linking } from "react-native";
|
|
3
|
-
import type { MyPlayerProps, WalletSettingsProps } from '../../types';
|
|
3
|
+
import type { FocusPositionProps, MyPlayerProps, WalletSettingsProps } from '../../types';
|
|
4
4
|
import { Checkbox, Icons } from '../../Components';
|
|
5
5
|
import { WalletApi } from '../api';
|
|
6
6
|
import moment from 'moment-mini';
|
|
@@ -11,11 +11,12 @@ type WalletSetupProps = {
|
|
|
11
11
|
player: MyPlayerProps,
|
|
12
12
|
wallet_settings: WalletSettingsProps,
|
|
13
13
|
onSettingsUpdate:(ws:WalletSettingsProps) => void,
|
|
14
|
+
onFocusPosition?:(pos:FocusPositionProps) => void,
|
|
14
15
|
onClose?:() => void,
|
|
15
16
|
onNext?:() => void
|
|
16
17
|
}
|
|
17
18
|
const setup_sections = ['header','auth','terms','set_pin', 'show_next']
|
|
18
|
-
const WalletSetup = ({ wallet_settings, onSettingsUpdate, onClose, onNext }:WalletSetupProps) => {
|
|
19
|
+
const WalletSetup = ({ wallet_settings, onSettingsUpdate, onFocusPosition, onClose, onNext }:WalletSetupProps) => {
|
|
19
20
|
const Colors = useColors();
|
|
20
21
|
const [ terms_agreed, setTermsAgreed ] = useState(false);
|
|
21
22
|
const [ auth_error, setAuthError ] = useState<string>();
|
|
@@ -52,7 +53,6 @@ const WalletSetup = ({ wallet_settings, onSettingsUpdate, onClose, onNext }:Wall
|
|
|
52
53
|
|
|
53
54
|
const auth_required = wallet_settings.auth_end_datetime && moment().isAfter(wallet_settings.auth_end_datetime) ? true : false
|
|
54
55
|
|
|
55
|
-
console.log(wallet_settings)
|
|
56
56
|
const renderSections = (data:{item:string,index:number}) => {
|
|
57
57
|
switch(data.item){
|
|
58
58
|
case 'header':
|
|
@@ -105,6 +105,7 @@ const WalletSetup = ({ wallet_settings, onSettingsUpdate, onClose, onNext }:Wall
|
|
|
105
105
|
<TextInput
|
|
106
106
|
style={{ width:200, alignSelf:'center', textAlign:'center' }}
|
|
107
107
|
placeholder='HARDPIN'
|
|
108
|
+
onFocusPosition={onFocusPosition}
|
|
108
109
|
value={pin}
|
|
109
110
|
onChangeText={(text) => setPinSettings({ ...pin_settings, pin: text })}
|
|
110
111
|
/>
|
|
@@ -113,6 +114,7 @@ const WalletSetup = ({ wallet_settings, onSettingsUpdate, onClose, onNext }:Wall
|
|
|
113
114
|
<TextInput
|
|
114
115
|
style={{ width:200, alignSelf:'center', textAlign:'center' }}
|
|
115
116
|
placeholder='RE-Enter PIN'
|
|
117
|
+
onFocusPosition={onFocusPosition}
|
|
116
118
|
value={confirm_pin}
|
|
117
119
|
onChangeText={(text) => setPinSettings({ ...pin_settings, confirm_pin: text })}
|
|
118
120
|
/>
|
|
@@ -152,6 +154,7 @@ const WalletSetup = ({ wallet_settings, onSettingsUpdate, onClose, onNext }:Wall
|
|
|
152
154
|
<TextInput
|
|
153
155
|
style={{ width:200, alignSelf:'center' }}
|
|
154
156
|
placeholder='ENTER PIN'
|
|
157
|
+
onFocusPosition={onFocusPosition}
|
|
155
158
|
value={pin}
|
|
156
159
|
onChangeText={(text) => setPinSettings({ ...pin_settings, pin: text })}
|
|
157
160
|
/>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import { ActivityIndicator, Keyboard, KeyboardAvoidingView, Platform, TouchableWithoutFeedback } from "react-native";
|
|
3
|
-
import type { AccountProps, ItemOrderProps, MyPlayerProps, PlayerBalanceProps, PlayerDepositLimitProps, PlayerWithdrawLimitProps, WalletSettingsProps } from '../../types';
|
|
3
|
+
import type { AccountProps, FocusPositionProps, ItemOrderProps, MyPlayerProps, PlayerBalanceProps, PlayerDepositLimitProps, PlayerWithdrawLimitProps, WalletSettingsProps } from '../../types';
|
|
4
4
|
import { ItemOrderApi, ItemOrderHelpers } from '../api';
|
|
5
5
|
import { Button, Text, TextInput, View } from '../../Components/Themed';
|
|
6
6
|
import { useColors } from '../../constants/useColors';
|
|
@@ -11,12 +11,13 @@ type WithdrawCardProps = {
|
|
|
11
11
|
wallet_settings:WalletSettingsProps,
|
|
12
12
|
player_balance:PlayerBalanceProps,
|
|
13
13
|
account:AccountProps,
|
|
14
|
+
onFocusPosition?:(pos:FocusPositionProps) => void,
|
|
14
15
|
deposit_limit:PlayerDepositLimitProps,
|
|
15
16
|
withdraw_limit:PlayerWithdrawLimitProps,
|
|
16
17
|
onTransact:(draft_order:ItemOrderProps) => void,
|
|
17
18
|
onCancel:() => void
|
|
18
19
|
}
|
|
19
|
-
const WithdrawCard = ({ wallet_settings, onTransact, player_balance, account, withdraw_limit, deposit_limit , onCancel}:WithdrawCardProps) => {
|
|
20
|
+
const WithdrawCard = ({ wallet_settings, onTransact, player_balance, account, withdraw_limit, onFocusPosition, deposit_limit , onCancel}:WithdrawCardProps) => {
|
|
20
21
|
const Colors = useColors();
|
|
21
22
|
const [ draft_order, setDraftOrder ] = useState<ItemOrderProps>();
|
|
22
23
|
|
|
@@ -63,6 +64,7 @@ const WithdrawCard = ({ wallet_settings, onTransact, player_balance, account, wi
|
|
|
63
64
|
<TextInput
|
|
64
65
|
style={{ flexGrow:1, width:200, textAlign:'center', color:Colors.text.success, fontSize:28 }}
|
|
65
66
|
placeholder='0'
|
|
67
|
+
onFocusPosition={onFocusPosition}
|
|
66
68
|
keyboardType='decimal-pad'
|
|
67
69
|
value={draft_order.amount as string}
|
|
68
70
|
onChangeText={(text) => setDraftOrder({ ...draft_order, amount:text })}
|
package/src/Wallet/index.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react';
|
|
|
2
2
|
import { ActivityIndicator, FlatList } from 'react-native';
|
|
3
3
|
import { ItemOrderApi, WalletApi, WalletHelpers } from './api';
|
|
4
4
|
import WalletSetup from './components/WalletSetup';
|
|
5
|
-
import type { AccountProps, BEEventProps, CodeRequestProps, ItemOrderProps, ItemProps, MyPlayerProps, PlayerAddressProps, PlayerBalanceProps, PlayerDepositLimitProps, PlayerReferralProps, PlayerWithdrawLimitProps, PromoProps, PublicPlayerProps, RewardOptionProps, WalletSettingsProps } from '../types';
|
|
5
|
+
import type { AccountProps, BEEventProps, CodeRequestProps, FocusPositionProps, ItemOrderProps, ItemProps, MyPlayerProps, PlayerAddressProps, PlayerBalanceProps, PlayerDepositLimitProps, PlayerReferralProps, PlayerWithdrawLimitProps, PromoProps, PublicPlayerProps, RewardOptionProps, WalletSettingsProps } from '../types';
|
|
6
6
|
import MyBalance from './components/MyBalance';
|
|
7
7
|
import ManualCardAdd from './components/ManualCardAdd';
|
|
8
8
|
import DepositCard from './components/DepositCard';
|
|
@@ -29,12 +29,13 @@ type MyWalletProps = {
|
|
|
29
29
|
account_id?:string,
|
|
30
30
|
new_balance?:PlayerBalanceProps,
|
|
31
31
|
height?:number,
|
|
32
|
+
onFocusPosition?:(pos:FocusPositionProps) => void,
|
|
32
33
|
onClose:() => void,
|
|
33
34
|
onEvent:(event:BEEventProps) => void
|
|
34
35
|
onTransact: (item_order:ItemOrderProps, account_id?:string) => void
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
const MyWallet = ({ height, new_balance, account_id, onTransact, onClose, onEvent }:MyWalletProps) => {
|
|
38
|
+
const MyWallet = ({ height, new_balance, account_id, onFocusPosition, onTransact, onClose, onEvent }:MyWalletProps) => {
|
|
38
39
|
const Colors = useColors();
|
|
39
40
|
const [ wallet_size, setWalletSize ] = useState({ height:0, width:0 });
|
|
40
41
|
const [ view, setView ] = useState<{
|
|
@@ -217,6 +218,7 @@ const MyWallet = ({ height, new_balance, account_id, onTransact, onClose, onEven
|
|
|
217
218
|
<WalletSetup
|
|
218
219
|
player={player}
|
|
219
220
|
wallet_settings={wallet_settings}
|
|
221
|
+
onFocusPosition={onFocusPosition}
|
|
220
222
|
onClose={() => {
|
|
221
223
|
if(!wallet_settings.pin){ return onClose() }
|
|
222
224
|
setWalkthrough({ ...walkthrough, enabled:false })
|
|
@@ -285,6 +287,7 @@ const MyWallet = ({ height, new_balance, account_id, onTransact, onClose, onEven
|
|
|
285
287
|
:walkthrough.step_action == 'manual_ach' ?
|
|
286
288
|
<ManualACHAdd
|
|
287
289
|
player={player}
|
|
290
|
+
onFocusPosition={onFocusPosition}
|
|
288
291
|
onAddAccount={(acct) => {
|
|
289
292
|
setWallet({ ...wallet, accounts: accounts.concat(acct) })
|
|
290
293
|
setWalkthrough({ ...walkthrough, step_action: undefined })
|
|
@@ -336,6 +339,7 @@ const MyWallet = ({ height, new_balance, account_id, onTransact, onClose, onEven
|
|
|
336
339
|
{walkthrough.step_action == 'manual_ach' ?
|
|
337
340
|
<ManualACHAdd
|
|
338
341
|
player={player}
|
|
342
|
+
onFocusPosition={onFocusPosition}
|
|
339
343
|
onAddAccount={(acct) => setWallet({ ...wallet, accounts: accounts.concat(acct) })}
|
|
340
344
|
onCancel={() => setWalkthrough({ ...walkthrough, step_action: undefined })}
|
|
341
345
|
/>
|
|
@@ -355,6 +359,7 @@ const MyWallet = ({ height, new_balance, account_id, onTransact, onClose, onEven
|
|
|
355
359
|
: walkthrough.active_step == 'deposit' && selected_account ?
|
|
356
360
|
<DepositCard
|
|
357
361
|
player={player}
|
|
362
|
+
onFocusPosition={onFocusPosition}
|
|
358
363
|
wallet_settings={wallet_settings}
|
|
359
364
|
deposit_limit={deposit_limit}
|
|
360
365
|
code_details={code_details}
|
|
@@ -368,12 +373,12 @@ const MyWallet = ({ height, new_balance, account_id, onTransact, onClose, onEven
|
|
|
368
373
|
</View>
|
|
369
374
|
)
|
|
370
375
|
}
|
|
371
|
-
console.log(WalletHelpers.isWalletAuthenticated(wallet_settings))
|
|
372
376
|
return (
|
|
373
377
|
<View style={{ flex:1, height }}>
|
|
374
378
|
{!WalletHelpers.isWalletAuthenticated(wallet_settings) ?
|
|
375
379
|
<WalletSetup
|
|
376
380
|
player={player}
|
|
381
|
+
onFocusPosition={onFocusPosition}
|
|
377
382
|
wallet_settings={wallet_settings}
|
|
378
383
|
onClose={() => onClose()}
|
|
379
384
|
onSettingsUpdate={(ws) => {
|
|
@@ -413,6 +418,7 @@ const MyWallet = ({ height, new_balance, account_id, onTransact, onClose, onEven
|
|
|
413
418
|
:active_view == 'addresses' ?
|
|
414
419
|
<AddressManager
|
|
415
420
|
player={player}
|
|
421
|
+
onFocusPosition={onFocusPosition}
|
|
416
422
|
player_addresses={player_addresses}
|
|
417
423
|
onAddAddress={(addy) => setWallet({ ...wallet, player_addresses: player_addresses.concat(addy) })}
|
|
418
424
|
onRemoveAddress={(addy) => setWallet({ ...wallet, player_addresses: player_addresses.filter(pa => pa.player_address_id != addy.player_address_id) })}
|
|
@@ -479,6 +485,7 @@ const MyWallet = ({ height, new_balance, account_id, onTransact, onClose, onEven
|
|
|
479
485
|
:active_view == 'deposit' && selected_account ?
|
|
480
486
|
<DepositCard
|
|
481
487
|
player={player}
|
|
488
|
+
onFocusPosition={onFocusPosition}
|
|
482
489
|
wallet_settings={wallet_settings}
|
|
483
490
|
deposit_limit={deposit_limit}
|
|
484
491
|
account={selected_account}
|
|
@@ -492,6 +499,7 @@ const MyWallet = ({ height, new_balance, account_id, onTransact, onClose, onEven
|
|
|
492
499
|
:active_view == 'withdraw' && selected_account ?
|
|
493
500
|
<WithdrawCard
|
|
494
501
|
player={player}
|
|
502
|
+
onFocusPosition={onFocusPosition}
|
|
495
503
|
player_balance={player_balance}
|
|
496
504
|
wallet_settings={wallet_settings}
|
|
497
505
|
withdraw_limit={withdraw_limit}
|
|
@@ -503,6 +511,7 @@ const MyWallet = ({ height, new_balance, account_id, onTransact, onClose, onEven
|
|
|
503
511
|
:active_view == 'verify' && selected_account ?
|
|
504
512
|
<VerifyACHAccount
|
|
505
513
|
account={selected_account}
|
|
514
|
+
onFocusPosition={onFocusPosition}
|
|
506
515
|
onClose={() => {
|
|
507
516
|
setView({active_view:'my_accounts'})
|
|
508
517
|
setSelectedAccount(undefined);
|
|
@@ -525,12 +534,14 @@ const MyWallet = ({ height, new_balance, account_id, onTransact, onClose, onEven
|
|
|
525
534
|
:active_view == 'add_ach'?
|
|
526
535
|
<ManualACHAdd
|
|
527
536
|
player={player}
|
|
537
|
+
onFocusPosition={onFocusPosition}
|
|
528
538
|
onAddAccount={(acct) => setWallet({ ...wallet, accounts: accounts.concat(acct) })}
|
|
529
539
|
onCancel={() => setView({active_view:'my_accounts'})}
|
|
530
540
|
/>
|
|
531
541
|
:active_view == 'add_card'?
|
|
532
542
|
<ManualCardAdd
|
|
533
543
|
player={player}
|
|
544
|
+
onFocusPosition={onFocusPosition}
|
|
534
545
|
onAddAccount={(acct) => {
|
|
535
546
|
setWallet({ ...wallet, accounts: accounts.concat(acct) })
|
|
536
547
|
setView({active_view:'my_accounts'})
|
|
@@ -54,6 +54,7 @@ export const useColors = () => {
|
|
|
54
54
|
footer: Colors.shades.shade100,
|
|
55
55
|
gold: Colors.incentive.gold,
|
|
56
56
|
input: Colors.shades.shade100,
|
|
57
|
+
disabled_input: Colors.brand.slate,
|
|
57
58
|
blur: 'rgba(242, 245, 247, 0.7)',
|
|
58
59
|
liquidMarket: Colors.highlights.highlight500Faded,
|
|
59
60
|
illiquidMarket: Colors.shades.shade100
|
|
@@ -130,6 +131,7 @@ export const useColors = () => {
|
|
|
130
131
|
header: Colors.shades.blackFadedHeavy, // **(NEW)** #222831
|
|
131
132
|
body: Colors.shades.shade500,
|
|
132
133
|
input: 'rgba(255, 255, 255, 0.05)',
|
|
134
|
+
disabled_input: Colors.shades.black_faded,
|
|
133
135
|
footer: Colors.shades.blackFadedHeavy, // **(NEW)** #222831,
|
|
134
136
|
gold: Colors.incentive.goldDark,
|
|
135
137
|
blur: 'rgba(17, 17, 17, 0.7)',
|