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.
Files changed (237) hide show
  1. package/lib/commonjs/Authenticator/Components/StrategyForm.js +1 -0
  2. package/lib/commonjs/Authenticator/Components/StrategyForm.js.map +1 -1
  3. package/lib/commonjs/Checkout/components/AccountSummaryCard.js +2 -0
  4. package/lib/commonjs/Checkout/components/AccountSummaryCard.js.map +1 -1
  5. package/lib/commonjs/Checkout/index.js +3 -0
  6. package/lib/commonjs/Checkout/index.js.map +1 -1
  7. package/lib/commonjs/Competition/components/WagerPickForm.js +2 -1
  8. package/lib/commonjs/Competition/components/WagerPickForm.js.map +1 -1
  9. package/lib/commonjs/Competition/index.js +2 -0
  10. package/lib/commonjs/Competition/index.js.map +1 -1
  11. package/lib/commonjs/Components/Themed.js +2 -4
  12. package/lib/commonjs/Components/Themed.js.map +1 -1
  13. package/lib/commonjs/Engage/components/PrivateCodePrompt.js +2 -0
  14. package/lib/commonjs/Engage/components/PrivateCodePrompt.js.map +1 -1
  15. package/lib/commonjs/Engage/index.js +2 -0
  16. package/lib/commonjs/Engage/index.js.map +1 -1
  17. package/lib/commonjs/MarketComponents/components/BestAvailableOrderCard.js +2 -1
  18. package/lib/commonjs/MarketComponents/components/BestAvailableOrderCard.js.map +1 -1
  19. package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js +3 -6
  20. package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js.map +1 -1
  21. package/lib/commonjs/ProfileManager/Components/DOBManager.js +0 -1
  22. package/lib/commonjs/ProfileManager/Components/DOBManager.js.map +1 -1
  23. package/lib/commonjs/ProfileManager/Components/EmailManager.js +1 -2
  24. package/lib/commonjs/ProfileManager/Components/EmailManager.js.map +1 -1
  25. package/lib/commonjs/ProfileManager/Components/PasswordManager.js +1 -3
  26. package/lib/commonjs/ProfileManager/Components/PasswordManager.js.map +1 -1
  27. package/lib/commonjs/ProfileManager/Components/PhoneManager.js +0 -2
  28. package/lib/commonjs/ProfileManager/Components/PhoneManager.js.map +1 -1
  29. package/lib/commonjs/ProfileManager/Components/SettingsManager.js +0 -1
  30. package/lib/commonjs/ProfileManager/Components/SettingsManager.js.map +1 -1
  31. package/lib/commonjs/Wallet/components/AddressManager.js +6 -0
  32. package/lib/commonjs/Wallet/components/AddressManager.js.map +1 -1
  33. package/lib/commonjs/Wallet/components/DepositCard.js +2 -0
  34. package/lib/commonjs/Wallet/components/DepositCard.js.map +1 -1
  35. package/lib/commonjs/Wallet/components/ManualACHAdd.js +6 -1
  36. package/lib/commonjs/Wallet/components/ManualACHAdd.js.map +1 -1
  37. package/lib/commonjs/Wallet/components/ManualCardAdd.js +6 -1
  38. package/lib/commonjs/Wallet/components/ManualCardAdd.js.map +1 -1
  39. package/lib/commonjs/Wallet/components/VerifyACHAccount.js +32 -47
  40. package/lib/commonjs/Wallet/components/VerifyACHAccount.js.map +1 -1
  41. package/lib/commonjs/Wallet/components/WalletSetup.js +4 -1
  42. package/lib/commonjs/Wallet/components/WalletSetup.js.map +1 -1
  43. package/lib/commonjs/Wallet/components/WithdrawCard.js +2 -0
  44. package/lib/commonjs/Wallet/components/WithdrawCard.js.map +1 -1
  45. package/lib/commonjs/Wallet/index.js +12 -1
  46. package/lib/commonjs/Wallet/index.js.map +1 -1
  47. package/lib/commonjs/constants/useColors.js +2 -0
  48. package/lib/commonjs/constants/useColors.js.map +1 -1
  49. package/lib/module/Authenticator/Components/StrategyForm.js +1 -0
  50. package/lib/module/Authenticator/Components/StrategyForm.js.map +1 -1
  51. package/lib/module/Checkout/components/AccountSummaryCard.js +2 -0
  52. package/lib/module/Checkout/components/AccountSummaryCard.js.map +1 -1
  53. package/lib/module/Checkout/index.js +3 -0
  54. package/lib/module/Checkout/index.js.map +1 -1
  55. package/lib/module/Competition/components/WagerPickForm.js +2 -1
  56. package/lib/module/Competition/components/WagerPickForm.js.map +1 -1
  57. package/lib/module/Competition/index.js +2 -0
  58. package/lib/module/Competition/index.js.map +1 -1
  59. package/lib/module/Components/Themed.js +2 -4
  60. package/lib/module/Components/Themed.js.map +1 -1
  61. package/lib/module/Engage/components/PrivateCodePrompt.js +2 -0
  62. package/lib/module/Engage/components/PrivateCodePrompt.js.map +1 -1
  63. package/lib/module/Engage/index.js +2 -0
  64. package/lib/module/Engage/index.js.map +1 -1
  65. package/lib/module/MarketComponents/components/BestAvailableOrderCard.js +2 -1
  66. package/lib/module/MarketComponents/components/BestAvailableOrderCard.js.map +1 -1
  67. package/lib/module/ProfileManager/Components/BasicInfoManager.js +3 -6
  68. package/lib/module/ProfileManager/Components/BasicInfoManager.js.map +1 -1
  69. package/lib/module/ProfileManager/Components/DOBManager.js +0 -1
  70. package/lib/module/ProfileManager/Components/DOBManager.js.map +1 -1
  71. package/lib/module/ProfileManager/Components/EmailManager.js +1 -2
  72. package/lib/module/ProfileManager/Components/EmailManager.js.map +1 -1
  73. package/lib/module/ProfileManager/Components/PasswordManager.js +1 -3
  74. package/lib/module/ProfileManager/Components/PasswordManager.js.map +1 -1
  75. package/lib/module/ProfileManager/Components/PhoneManager.js +0 -2
  76. package/lib/module/ProfileManager/Components/PhoneManager.js.map +1 -1
  77. package/lib/module/ProfileManager/Components/SettingsManager.js +0 -1
  78. package/lib/module/ProfileManager/Components/SettingsManager.js.map +1 -1
  79. package/lib/module/Wallet/components/AddressManager.js +6 -0
  80. package/lib/module/Wallet/components/AddressManager.js.map +1 -1
  81. package/lib/module/Wallet/components/DepositCard.js +2 -0
  82. package/lib/module/Wallet/components/DepositCard.js.map +1 -1
  83. package/lib/module/Wallet/components/ManualACHAdd.js +6 -1
  84. package/lib/module/Wallet/components/ManualACHAdd.js.map +1 -1
  85. package/lib/module/Wallet/components/ManualCardAdd.js +6 -1
  86. package/lib/module/Wallet/components/ManualCardAdd.js.map +1 -1
  87. package/lib/module/Wallet/components/VerifyACHAccount.js +16 -31
  88. package/lib/module/Wallet/components/VerifyACHAccount.js.map +1 -1
  89. package/lib/module/Wallet/components/WalletSetup.js +4 -1
  90. package/lib/module/Wallet/components/WalletSetup.js.map +1 -1
  91. package/lib/module/Wallet/components/WithdrawCard.js +2 -0
  92. package/lib/module/Wallet/components/WithdrawCard.js.map +1 -1
  93. package/lib/module/Wallet/index.js +12 -1
  94. package/lib/module/Wallet/index.js.map +1 -1
  95. package/lib/module/constants/useColors.js +2 -0
  96. package/lib/module/constants/useColors.js.map +1 -1
  97. package/lib/typescript/lib/commonjs/Authenticator/Components/StrategyForm.d.ts.map +1 -1
  98. package/lib/typescript/lib/commonjs/Checkout/components/AccountSummaryCard.d.ts +2 -1
  99. package/lib/typescript/lib/commonjs/Checkout/components/AccountSummaryCard.d.ts.map +1 -1
  100. package/lib/typescript/lib/commonjs/Checkout/index.d.ts +2 -1
  101. package/lib/typescript/lib/commonjs/Checkout/index.d.ts.map +1 -1
  102. package/lib/typescript/lib/commonjs/Competition/components/WagerPickForm.d.ts +2 -1
  103. package/lib/typescript/lib/commonjs/Competition/components/WagerPickForm.d.ts.map +1 -1
  104. package/lib/typescript/lib/commonjs/Competition/index.d.ts +2 -1
  105. package/lib/typescript/lib/commonjs/Competition/index.d.ts.map +1 -1
  106. package/lib/typescript/lib/commonjs/Components/Themed.d.ts.map +1 -1
  107. package/lib/typescript/lib/commonjs/Engage/components/PrivateCodePrompt.d.ts +2 -1
  108. package/lib/typescript/lib/commonjs/Engage/components/PrivateCodePrompt.d.ts.map +1 -1
  109. package/lib/typescript/lib/commonjs/Engage/index.d.ts +2 -1
  110. package/lib/typescript/lib/commonjs/Engage/index.d.ts.map +1 -1
  111. package/lib/typescript/lib/commonjs/MarketComponents/components/BestAvailableOrderCard.d.ts.map +1 -1
  112. package/lib/typescript/lib/commonjs/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
  113. package/lib/typescript/lib/commonjs/ProfileManager/Components/DOBManager.d.ts.map +1 -1
  114. package/lib/typescript/lib/commonjs/ProfileManager/Components/EmailManager.d.ts.map +1 -1
  115. package/lib/typescript/lib/commonjs/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
  116. package/lib/typescript/lib/commonjs/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
  117. package/lib/typescript/lib/commonjs/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
  118. package/lib/typescript/lib/commonjs/Wallet/components/AddressManager.d.ts +2 -1
  119. package/lib/typescript/lib/commonjs/Wallet/components/AddressManager.d.ts.map +1 -1
  120. package/lib/typescript/lib/commonjs/Wallet/components/DepositCard.d.ts +2 -1
  121. package/lib/typescript/lib/commonjs/Wallet/components/DepositCard.d.ts.map +1 -1
  122. package/lib/typescript/lib/commonjs/Wallet/components/ManualACHAdd.d.ts +2 -1
  123. package/lib/typescript/lib/commonjs/Wallet/components/ManualACHAdd.d.ts.map +1 -1
  124. package/lib/typescript/lib/commonjs/Wallet/components/ManualCardAdd.d.ts +2 -1
  125. package/lib/typescript/lib/commonjs/Wallet/components/ManualCardAdd.d.ts.map +1 -1
  126. package/lib/typescript/lib/commonjs/Wallet/components/VerifyACHAccount.d.ts +2 -1
  127. package/lib/typescript/lib/commonjs/Wallet/components/VerifyACHAccount.d.ts.map +1 -1
  128. package/lib/typescript/lib/commonjs/Wallet/components/WalletSetup.d.ts +2 -1
  129. package/lib/typescript/lib/commonjs/Wallet/components/WalletSetup.d.ts.map +1 -1
  130. package/lib/typescript/lib/commonjs/Wallet/components/WithdrawCard.d.ts +2 -1
  131. package/lib/typescript/lib/commonjs/Wallet/components/WithdrawCard.d.ts.map +1 -1
  132. package/lib/typescript/lib/commonjs/Wallet/index.d.ts +2 -1
  133. package/lib/typescript/lib/commonjs/Wallet/index.d.ts.map +1 -1
  134. package/lib/typescript/lib/commonjs/constants/useColors.d.ts +1 -0
  135. package/lib/typescript/lib/commonjs/constants/useColors.d.ts.map +1 -1
  136. package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts.map +1 -1
  137. package/lib/typescript/lib/module/Checkout/components/AccountSummaryCard.d.ts +2 -1
  138. package/lib/typescript/lib/module/Checkout/components/AccountSummaryCard.d.ts.map +1 -1
  139. package/lib/typescript/lib/module/Checkout/index.d.ts +2 -1
  140. package/lib/typescript/lib/module/Checkout/index.d.ts.map +1 -1
  141. package/lib/typescript/lib/module/Competition/components/WagerPickForm.d.ts +2 -1
  142. package/lib/typescript/lib/module/Competition/components/WagerPickForm.d.ts.map +1 -1
  143. package/lib/typescript/lib/module/Competition/index.d.ts +2 -1
  144. package/lib/typescript/lib/module/Competition/index.d.ts.map +1 -1
  145. package/lib/typescript/lib/module/Components/Themed.d.ts.map +1 -1
  146. package/lib/typescript/lib/module/Engage/components/PrivateCodePrompt.d.ts +2 -1
  147. package/lib/typescript/lib/module/Engage/components/PrivateCodePrompt.d.ts.map +1 -1
  148. package/lib/typescript/lib/module/Engage/index.d.ts +2 -1
  149. package/lib/typescript/lib/module/Engage/index.d.ts.map +1 -1
  150. package/lib/typescript/lib/module/MarketComponents/components/BestAvailableOrderCard.d.ts.map +1 -1
  151. package/lib/typescript/lib/module/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
  152. package/lib/typescript/lib/module/ProfileManager/Components/DOBManager.d.ts.map +1 -1
  153. package/lib/typescript/lib/module/ProfileManager/Components/EmailManager.d.ts.map +1 -1
  154. package/lib/typescript/lib/module/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
  155. package/lib/typescript/lib/module/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
  156. package/lib/typescript/lib/module/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
  157. package/lib/typescript/lib/module/Wallet/components/AddressManager.d.ts +2 -1
  158. package/lib/typescript/lib/module/Wallet/components/AddressManager.d.ts.map +1 -1
  159. package/lib/typescript/lib/module/Wallet/components/DepositCard.d.ts +2 -1
  160. package/lib/typescript/lib/module/Wallet/components/DepositCard.d.ts.map +1 -1
  161. package/lib/typescript/lib/module/Wallet/components/ManualACHAdd.d.ts +2 -1
  162. package/lib/typescript/lib/module/Wallet/components/ManualACHAdd.d.ts.map +1 -1
  163. package/lib/typescript/lib/module/Wallet/components/ManualCardAdd.d.ts +2 -1
  164. package/lib/typescript/lib/module/Wallet/components/ManualCardAdd.d.ts.map +1 -1
  165. package/lib/typescript/lib/module/Wallet/components/VerifyACHAccount.d.ts +3 -3
  166. package/lib/typescript/lib/module/Wallet/components/VerifyACHAccount.d.ts.map +1 -1
  167. package/lib/typescript/lib/module/Wallet/components/WalletSetup.d.ts +2 -1
  168. package/lib/typescript/lib/module/Wallet/components/WalletSetup.d.ts.map +1 -1
  169. package/lib/typescript/lib/module/Wallet/components/WithdrawCard.d.ts +2 -1
  170. package/lib/typescript/lib/module/Wallet/components/WithdrawCard.d.ts.map +1 -1
  171. package/lib/typescript/lib/module/Wallet/index.d.ts +2 -1
  172. package/lib/typescript/lib/module/Wallet/index.d.ts.map +1 -1
  173. package/lib/typescript/lib/module/constants/useColors.d.ts +1 -0
  174. package/lib/typescript/lib/module/constants/useColors.d.ts.map +1 -1
  175. package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts.map +1 -1
  176. package/lib/typescript/src/Checkout/components/AccountSummaryCard.d.ts +3 -2
  177. package/lib/typescript/src/Checkout/components/AccountSummaryCard.d.ts.map +1 -1
  178. package/lib/typescript/src/Checkout/index.d.ts +3 -2
  179. package/lib/typescript/src/Checkout/index.d.ts.map +1 -1
  180. package/lib/typescript/src/Competition/components/WagerPickForm.d.ts +3 -2
  181. package/lib/typescript/src/Competition/components/WagerPickForm.d.ts.map +1 -1
  182. package/lib/typescript/src/Competition/index.d.ts +3 -2
  183. package/lib/typescript/src/Competition/index.d.ts.map +1 -1
  184. package/lib/typescript/src/Components/Themed.d.ts.map +1 -1
  185. package/lib/typescript/src/Engage/components/PrivateCodePrompt.d.ts +3 -2
  186. package/lib/typescript/src/Engage/components/PrivateCodePrompt.d.ts.map +1 -1
  187. package/lib/typescript/src/Engage/index.d.ts +3 -2
  188. package/lib/typescript/src/Engage/index.d.ts.map +1 -1
  189. package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
  190. package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts.map +1 -1
  191. package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts.map +1 -1
  192. package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
  193. package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
  194. package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
  195. package/lib/typescript/src/Wallet/components/AddressManager.d.ts +3 -2
  196. package/lib/typescript/src/Wallet/components/AddressManager.d.ts.map +1 -1
  197. package/lib/typescript/src/Wallet/components/DepositCard.d.ts +3 -2
  198. package/lib/typescript/src/Wallet/components/DepositCard.d.ts.map +1 -1
  199. package/lib/typescript/src/Wallet/components/ManualACHAdd.d.ts +3 -2
  200. package/lib/typescript/src/Wallet/components/ManualACHAdd.d.ts.map +1 -1
  201. package/lib/typescript/src/Wallet/components/ManualCardAdd.d.ts +3 -2
  202. package/lib/typescript/src/Wallet/components/ManualCardAdd.d.ts.map +1 -1
  203. package/lib/typescript/src/Wallet/components/VerifyACHAccount.d.ts +3 -2
  204. package/lib/typescript/src/Wallet/components/VerifyACHAccount.d.ts.map +1 -1
  205. package/lib/typescript/src/Wallet/components/WalletSetup.d.ts +3 -2
  206. package/lib/typescript/src/Wallet/components/WalletSetup.d.ts.map +1 -1
  207. package/lib/typescript/src/Wallet/components/WithdrawCard.d.ts +3 -2
  208. package/lib/typescript/src/Wallet/components/WithdrawCard.d.ts.map +1 -1
  209. package/lib/typescript/src/Wallet/index.d.ts +3 -2
  210. package/lib/typescript/src/Wallet/index.d.ts.map +1 -1
  211. package/lib/typescript/src/constants/useColors.d.ts +1 -0
  212. package/lib/typescript/src/constants/useColors.d.ts.map +1 -1
  213. package/package.json +1 -1
  214. package/src/Authenticator/Components/StrategyForm.tsx +1 -0
  215. package/src/Checkout/components/AccountSummaryCard.tsx +4 -2
  216. package/src/Checkout/index.tsx +5 -2
  217. package/src/Competition/components/WagerPickForm.tsx +4 -3
  218. package/src/Competition/index.tsx +4 -2
  219. package/src/Components/Themed.tsx +3 -4
  220. package/src/Engage/components/PrivateCodePrompt.tsx +4 -2
  221. package/src/Engage/index.tsx +4 -2
  222. package/src/MarketComponents/components/BestAvailableOrderCard.tsx +2 -2
  223. package/src/ProfileManager/Components/BasicInfoManager.tsx +5 -3
  224. package/src/ProfileManager/Components/DOBManager.tsx +0 -1
  225. package/src/ProfileManager/Components/EmailManager.tsx +1 -4
  226. package/src/ProfileManager/Components/PasswordManager.tsx +1 -4
  227. package/src/ProfileManager/Components/PhoneManager.tsx +1 -4
  228. package/src/ProfileManager/Components/SettingsManager.tsx +0 -1
  229. package/src/Wallet/components/AddressManager.tsx +9 -3
  230. package/src/Wallet/components/DepositCard.tsx +4 -2
  231. package/src/Wallet/components/ManualACHAdd.tsx +7 -2
  232. package/src/Wallet/components/ManualCardAdd.tsx +7 -2
  233. package/src/Wallet/components/VerifyACHAccount.tsx +17 -28
  234. package/src/Wallet/components/WalletSetup.tsx +6 -3
  235. package/src/Wallet/components/WithdrawCard.tsx +4 -2
  236. package/src/Wallet/index.tsx +14 -3
  237. 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 { View, ScrollView } from 'react-native';
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} color={Colors.brand.midnight} weight='bold'>VERIFY ACCOUNT</Text>
60
- <Text style={{ marginTop:10 }} size={16} color={Colors.brand.midnight} weight='regular'>Verify this account by entering the two deposit amounts received from Bettoredge when setting up the account.</Text>
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} color={Colors.brand.midnight} weight='semibold'>Deposit 1</Text>
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} color={Colors.brand.midnight} weight='semibold'>Deposit 2</Text>
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.utility.warning} weight='bold'>{error}</Text>
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
- title_color={Colors.brand.electric}
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
- title_color={Colors.shades.white}
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
- title_color={Colors.brand.electric}
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
- title_color={Colors.shades.white}
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 })}
@@ -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)',