be-components 3.6.1 → 3.6.3

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 (157) hide show
  1. package/lib/commonjs/Checkout/components/AccountSummaryCard.js +52 -57
  2. package/lib/commonjs/Checkout/components/AccountSummaryCard.js.map +1 -1
  3. package/lib/commonjs/Checkout/components/ItemSummaryCard.js +8 -11
  4. package/lib/commonjs/Checkout/components/ItemSummaryCard.js.map +1 -1
  5. package/lib/commonjs/Checkout/components/OrderSummaryCard.js +21 -25
  6. package/lib/commonjs/Checkout/components/OrderSummaryCard.js.map +1 -1
  7. package/lib/commonjs/Checkout/components/PayPalOrderCapture.js +2 -2
  8. package/lib/commonjs/Checkout/components/PayPalOrderCapture.js.map +1 -1
  9. package/lib/commonjs/Checkout/components/ShippingSummaryCard.js +11 -15
  10. package/lib/commonjs/Checkout/components/ShippingSummaryCard.js.map +1 -1
  11. package/lib/commonjs/Checkout/index.js +177 -154
  12. package/lib/commonjs/Checkout/index.js.map +1 -1
  13. package/lib/commonjs/Components/Checkbox.js +7 -5
  14. package/lib/commonjs/Components/Checkbox.js.map +1 -1
  15. package/lib/commonjs/Components/Icons.js +9 -9
  16. package/lib/commonjs/Components/Icons.js.map +1 -1
  17. package/lib/commonjs/Wallet/components/ACHAddCard.js +233 -194
  18. package/lib/commonjs/Wallet/components/ACHAddCard.js.map +1 -1
  19. package/lib/commonjs/Wallet/components/AddressCard.js +19 -17
  20. package/lib/commonjs/Wallet/components/AddressCard.js.map +1 -1
  21. package/lib/commonjs/Wallet/components/AddressManager.js +64 -92
  22. package/lib/commonjs/Wallet/components/AddressManager.js.map +1 -1
  23. package/lib/commonjs/Wallet/components/FundAccountCard.js +106 -95
  24. package/lib/commonjs/Wallet/components/FundAccountCard.js.map +1 -1
  25. package/lib/commonjs/Wallet/components/LinkAccountManager.js +80 -106
  26. package/lib/commonjs/Wallet/components/LinkAccountManager.js.map +1 -1
  27. package/lib/commonjs/Wallet/components/ManualACHAdd.js +155 -151
  28. package/lib/commonjs/Wallet/components/ManualACHAdd.js.map +1 -1
  29. package/lib/commonjs/Wallet/components/ManualCardAdd.js +207 -204
  30. package/lib/commonjs/Wallet/components/ManualCardAdd.js.map +1 -1
  31. package/lib/commonjs/Wallet/components/MyBalance.js +73 -66
  32. package/lib/commonjs/Wallet/components/MyBalance.js.map +1 -1
  33. package/lib/commonjs/Wallet/components/WalletSetup.js +286 -246
  34. package/lib/commonjs/Wallet/components/WalletSetup.js.map +1 -1
  35. package/lib/commonjs/Wallet/index.js +1 -0
  36. package/lib/commonjs/Wallet/index.js.map +1 -1
  37. package/lib/module/Checkout/components/AccountSummaryCard.js +25 -30
  38. package/lib/module/Checkout/components/AccountSummaryCard.js.map +1 -1
  39. package/lib/module/Checkout/components/ItemSummaryCard.js +4 -7
  40. package/lib/module/Checkout/components/ItemSummaryCard.js.map +1 -1
  41. package/lib/module/Checkout/components/OrderSummaryCard.js +9 -13
  42. package/lib/module/Checkout/components/OrderSummaryCard.js.map +1 -1
  43. package/lib/module/Checkout/components/PayPalOrderCapture.js +1 -1
  44. package/lib/module/Checkout/components/PayPalOrderCapture.js.map +1 -1
  45. package/lib/module/Checkout/components/ShippingSummaryCard.js +5 -9
  46. package/lib/module/Checkout/components/ShippingSummaryCard.js.map +1 -1
  47. package/lib/module/Checkout/index.js +146 -123
  48. package/lib/module/Checkout/index.js.map +1 -1
  49. package/lib/module/Components/Checkbox.js +6 -4
  50. package/lib/module/Components/Checkbox.js.map +1 -1
  51. package/lib/module/Components/Icons.js +10 -10
  52. package/lib/module/Components/Icons.js.map +1 -1
  53. package/lib/module/Wallet/components/ACHAddCard.js +233 -194
  54. package/lib/module/Wallet/components/ACHAddCard.js.map +1 -1
  55. package/lib/module/Wallet/components/AddressCard.js +14 -12
  56. package/lib/module/Wallet/components/AddressCard.js.map +1 -1
  57. package/lib/module/Wallet/components/AddressManager.js +29 -57
  58. package/lib/module/Wallet/components/AddressManager.js.map +1 -1
  59. package/lib/module/Wallet/components/FundAccountCard.js +71 -60
  60. package/lib/module/Wallet/components/FundAccountCard.js.map +1 -1
  61. package/lib/module/Wallet/components/LinkAccountManager.js +55 -81
  62. package/lib/module/Wallet/components/LinkAccountManager.js.map +1 -1
  63. package/lib/module/Wallet/components/ManualACHAdd.js +146 -141
  64. package/lib/module/Wallet/components/ManualACHAdd.js.map +1 -1
  65. package/lib/module/Wallet/components/ManualCardAdd.js +204 -201
  66. package/lib/module/Wallet/components/ManualCardAdd.js.map +1 -1
  67. package/lib/module/Wallet/components/MyBalance.js +45 -38
  68. package/lib/module/Wallet/components/MyBalance.js.map +1 -1
  69. package/lib/module/Wallet/components/WalletSetup.js +287 -247
  70. package/lib/module/Wallet/components/WalletSetup.js.map +1 -1
  71. package/lib/module/Wallet/index.js +1 -0
  72. package/lib/module/Wallet/index.js.map +1 -1
  73. package/lib/typescript/lib/commonjs/Checkout/components/AccountSummaryCard.d.ts.map +1 -1
  74. package/lib/typescript/lib/commonjs/Checkout/components/ItemSummaryCard.d.ts.map +1 -1
  75. package/lib/typescript/lib/commonjs/Checkout/components/OrderSummaryCard.d.ts.map +1 -1
  76. package/lib/typescript/lib/commonjs/Checkout/components/ShippingSummaryCard.d.ts.map +1 -1
  77. package/lib/typescript/lib/commonjs/Checkout/index.d.ts.map +1 -1
  78. package/lib/typescript/lib/commonjs/Components/Checkbox.d.ts.map +1 -1
  79. package/lib/typescript/lib/commonjs/Wallet/components/ACHAddCard.d.ts.map +1 -1
  80. package/lib/typescript/lib/commonjs/Wallet/components/AddressCard.d.ts.map +1 -1
  81. package/lib/typescript/lib/commonjs/Wallet/components/AddressManager.d.ts.map +1 -1
  82. package/lib/typescript/lib/commonjs/Wallet/components/FundAccountCard.d.ts.map +1 -1
  83. package/lib/typescript/lib/commonjs/Wallet/components/LinkAccountManager.d.ts.map +1 -1
  84. package/lib/typescript/lib/commonjs/Wallet/components/ManualACHAdd.d.ts.map +1 -1
  85. package/lib/typescript/lib/commonjs/Wallet/components/ManualCardAdd.d.ts.map +1 -1
  86. package/lib/typescript/lib/commonjs/Wallet/components/MyBalance.d.ts.map +1 -1
  87. package/lib/typescript/lib/commonjs/Wallet/components/WalletSetup.d.ts.map +1 -1
  88. package/lib/typescript/lib/commonjs/Wallet/index.d.ts.map +1 -1
  89. package/lib/typescript/lib/module/Checkout/components/AccountSummaryCard.d.ts +1 -2
  90. package/lib/typescript/lib/module/Checkout/components/AccountSummaryCard.d.ts.map +1 -1
  91. package/lib/typescript/lib/module/Checkout/components/ItemSummaryCard.d.ts +1 -2
  92. package/lib/typescript/lib/module/Checkout/components/ItemSummaryCard.d.ts.map +1 -1
  93. package/lib/typescript/lib/module/Checkout/components/OrderSummaryCard.d.ts +1 -2
  94. package/lib/typescript/lib/module/Checkout/components/OrderSummaryCard.d.ts.map +1 -1
  95. package/lib/typescript/lib/module/Checkout/components/PayPalOrderCapture.d.ts +1 -2
  96. package/lib/typescript/lib/module/Checkout/components/PayPalOrderCapture.d.ts.map +1 -1
  97. package/lib/typescript/lib/module/Checkout/components/ShippingSummaryCard.d.ts +1 -2
  98. package/lib/typescript/lib/module/Checkout/components/ShippingSummaryCard.d.ts.map +1 -1
  99. package/lib/typescript/lib/module/Checkout/index.d.ts +1 -2
  100. package/lib/typescript/lib/module/Checkout/index.d.ts.map +1 -1
  101. package/lib/typescript/lib/module/Components/Checkbox.d.ts +1 -2
  102. package/lib/typescript/lib/module/Components/Checkbox.d.ts.map +1 -1
  103. package/lib/typescript/lib/module/Components/Icons.d.ts.map +1 -1
  104. package/lib/typescript/lib/module/Wallet/components/ACHAddCard.d.ts +1 -2
  105. package/lib/typescript/lib/module/Wallet/components/ACHAddCard.d.ts.map +1 -1
  106. package/lib/typescript/lib/module/Wallet/components/AddressCard.d.ts +1 -2
  107. package/lib/typescript/lib/module/Wallet/components/AddressCard.d.ts.map +1 -1
  108. package/lib/typescript/lib/module/Wallet/components/AddressManager.d.ts +1 -2
  109. package/lib/typescript/lib/module/Wallet/components/AddressManager.d.ts.map +1 -1
  110. package/lib/typescript/lib/module/Wallet/components/FundAccountCard.d.ts +1 -2
  111. package/lib/typescript/lib/module/Wallet/components/FundAccountCard.d.ts.map +1 -1
  112. package/lib/typescript/lib/module/Wallet/components/LinkAccountManager.d.ts +1 -2
  113. package/lib/typescript/lib/module/Wallet/components/LinkAccountManager.d.ts.map +1 -1
  114. package/lib/typescript/lib/module/Wallet/components/ManualACHAdd.d.ts +1 -2
  115. package/lib/typescript/lib/module/Wallet/components/ManualACHAdd.d.ts.map +1 -1
  116. package/lib/typescript/lib/module/Wallet/components/ManualCardAdd.d.ts +1 -2
  117. package/lib/typescript/lib/module/Wallet/components/ManualCardAdd.d.ts.map +1 -1
  118. package/lib/typescript/lib/module/Wallet/components/MyBalance.d.ts +1 -2
  119. package/lib/typescript/lib/module/Wallet/components/MyBalance.d.ts.map +1 -1
  120. package/lib/typescript/lib/module/Wallet/components/WalletSetup.d.ts +1 -2
  121. package/lib/typescript/lib/module/Wallet/components/WalletSetup.d.ts.map +1 -1
  122. package/lib/typescript/lib/module/Wallet/index.d.ts.map +1 -1
  123. package/lib/typescript/src/Checkout/components/AccountSummaryCard.d.ts.map +1 -1
  124. package/lib/typescript/src/Checkout/components/ItemSummaryCard.d.ts.map +1 -1
  125. package/lib/typescript/src/Checkout/components/OrderSummaryCard.d.ts.map +1 -1
  126. package/lib/typescript/src/Checkout/components/PayPalOrderCapture.d.ts.map +1 -1
  127. package/lib/typescript/src/Checkout/components/ShippingSummaryCard.d.ts.map +1 -1
  128. package/lib/typescript/src/Checkout/index.d.ts.map +1 -1
  129. package/lib/typescript/src/Components/Checkbox.d.ts.map +1 -1
  130. package/lib/typescript/src/Wallet/components/ACHAddCard.d.ts.map +1 -1
  131. package/lib/typescript/src/Wallet/components/AddressCard.d.ts.map +1 -1
  132. package/lib/typescript/src/Wallet/components/AddressManager.d.ts.map +1 -1
  133. package/lib/typescript/src/Wallet/components/FundAccountCard.d.ts.map +1 -1
  134. package/lib/typescript/src/Wallet/components/LinkAccountManager.d.ts.map +1 -1
  135. package/lib/typescript/src/Wallet/components/ManualACHAdd.d.ts.map +1 -1
  136. package/lib/typescript/src/Wallet/components/ManualCardAdd.d.ts.map +1 -1
  137. package/lib/typescript/src/Wallet/components/MyBalance.d.ts.map +1 -1
  138. package/lib/typescript/src/Wallet/components/WalletSetup.d.ts.map +1 -1
  139. package/package.json +2 -1
  140. package/src/Checkout/components/AccountSummaryCard.tsx +25 -27
  141. package/src/Checkout/components/ItemSummaryCard.tsx +4 -6
  142. package/src/Checkout/components/OrderSummaryCard.tsx +9 -11
  143. package/src/Checkout/components/PayPalOrderCapture.tsx +4 -2
  144. package/src/Checkout/components/ShippingSummaryCard.tsx +5 -8
  145. package/src/Checkout/index.tsx +121 -105
  146. package/src/Components/Checkbox.tsx +7 -6
  147. package/src/Components/Icons.tsx +10 -10
  148. package/src/Wallet/components/ACHAddCard.tsx +90 -60
  149. package/src/Wallet/components/AddressCard.tsx +11 -11
  150. package/src/Wallet/components/AddressManager.tsx +33 -44
  151. package/src/Wallet/components/FundAccountCard.tsx +52 -51
  152. package/src/Wallet/components/LinkAccountManager.tsx +49 -59
  153. package/src/Wallet/components/ManualACHAdd.tsx +99 -79
  154. package/src/Wallet/components/ManualCardAdd.tsx +119 -95
  155. package/src/Wallet/components/MyBalance.tsx +38 -40
  156. package/src/Wallet/components/WalletSetup.tsx +138 -113
  157. package/src/Wallet/index.tsx +7 -7
@@ -1,10 +1,9 @@
1
1
  import React, { useState } from 'react';
2
- import { Image, Keyboard, Linking, TouchableWithoutFeedback } from "react-native";
2
+ import { FlatList, Image, Linking } from "react-native";
3
3
  import type { MyPlayerProps, WalletSettingsProps } from '../../types';
4
4
  import { Checkbox, Icons } from '../../Components';
5
5
  import { WalletApi } from '../api';
6
6
  import moment from 'moment-mini';
7
- import { button_styles } from '../../constants/styles';
8
7
  import { useColors } from '../../constants/useColors';
9
8
  import { Button, Text, TextInput, View } from '../../Components/Themed';
10
9
 
@@ -15,7 +14,7 @@ type WalletSetupProps = {
15
14
  onClose?:() => void,
16
15
  onNext?:() => void
17
16
  }
18
-
17
+ const setup_sections = ['header','auth','terms','set_pin', 'show_next']
19
18
  const WalletSetup = ({ wallet_settings, onSettingsUpdate, onClose, onNext }:WalletSetupProps) => {
20
19
  const Colors = useColors();
21
20
  const [ terms_agreed, setTermsAgreed ] = useState(false);
@@ -53,123 +52,149 @@ const WalletSetup = ({ wallet_settings, onSettingsUpdate, onClose, onNext }:Wall
53
52
 
54
53
  const auth_required = wallet_settings.auth_end_datetime && moment().isAfter(wallet_settings.auth_end_datetime) ? true : false
55
54
 
56
- return (
57
- <TouchableWithoutFeedback style={{ flex:1 }} onPress={() => Keyboard.dismiss()}>
58
- <View style={{ flex:1 }}>
59
- <View style={{ padding:20 }}>
60
- <Text size={26} theme='h1'>MY WALLET</Text>
61
- {onNext ?
62
- <Text style={{ marginTop:10 }} size={16} theme='description'>Welcome to your wallet. Go through the wizard to get set up to deposit and withdraw!</Text>
63
- :!wallet_settings.agreed_to_terms ?
64
- <Text style={{ marginTop:10 }} size={16} theme='description'>Welcome to your wallet. This is where your sensitive account details are kept. Please review our terms and conditions!</Text>
65
- :
66
- <Text style={{ marginTop:10 }} size={16} theme='description'>Welcome to your wallet. Please enter your security pin to continue!</Text>
67
- }
68
- </View>
69
- <View style={{ flex:1 }}>
70
- {!wallet_settings.agreed_to_terms ?
71
- <View style={{ flex:1, padding:20 }}>
72
- <View>
73
- <Text size={20} theme='h2' textAlign='center'>BettorEdge Wallet</Text>
74
- <Text style={{ marginTop:5 }} size={26} theme='h1' textAlign='center'>Terms and Conditions</Text>
75
- </View>
76
- <View style={{ justifyContent:'center', alignItems:'center' }}>
77
- <Image
78
- source={{ uri: 'https://res.cloudinary.com/hoabts6mc/image/upload/v1717098691/Signing_the_contract_stfvtj.png' }}
79
- style={{ width: 250, height:250 }}
80
- resizeMode='cover'
81
- />
82
-
83
- </View>
84
- <Button onPress={() => Linking.openURL('https://www.bettoredge.com/wallet-terms-of-use')}>
85
- <Text size={14} theme='description' textAlign='center'>Press here to review our <Text size={14} theme='action'>Wallet Terms of Use</Text>. To continue setting up your wallet please review and agree to the terms.</Text>
86
- </Button>
87
- <Button
88
- style={{ marginTop:15, flexDirection:'row', alignItems:'center', padding:20, borderRadius:8 }}
89
- onPress={() => setTermsAgreed(!terms_agreed)}>
90
- <Text style={{ flex:1 }} size={16} theme='description'>I have read and agree to the terms</Text>
91
- <Checkbox size={30} checked={terms_agreed} disabled onSelect={() => console.log('')}/>
92
- </Button>
93
- </View>
94
- : !wallet_settings.pin ?
95
- <View style={{ flex:1, padding:20 }}>
96
- <View>
97
- <Text size={20} theme='h1' textAlign='center'>BettorEdge Wallet</Text>
98
- <Text style={{ marginTop:5 }} size={26} theme='h1' textAlign='center'>{pin_view == 'set' ? 'Set' : 'Confirm'} Security PIN</Text>
99
- </View>
100
- <View style={{ justifyContent:'center', alignItems:'center' }}>
55
+ console.log(wallet_settings)
56
+ const renderSections = (data:{item:string,index:number}) => {
57
+ switch(data.item){
58
+ case 'header':
59
+ return (
60
+ <View type='header' style={{ padding:20 }}>
61
+ <Text theme='h1'>MY WALLET</Text>
62
+ {onNext ?
63
+ <Text style={{ marginTop:5 }} theme='description'>Welcome to your wallet. Go through the wizard to get set up to deposit and withdraw!</Text>
64
+ :!wallet_settings.agreed_to_terms ?
65
+ <Text style={{ marginTop:5 }} theme='description'>Welcome to your wallet. This is where your sensitive account details are kept. Please review our terms and conditions!</Text>
66
+ :
67
+ <Text style={{ marginTop:5 }} theme='description'>Welcome to your wallet. Please enter your security pin to continue!</Text>
68
+ }
69
+ </View>
70
+ )
71
+ case 'terms':
72
+ if(wallet_settings.agreed_to_terms){ return <></> }
73
+ return (
74
+ <View style={{ flex:1, padding:20 }}>
75
+ <View>
76
+ <Text size={20} theme='h2' textAlign='center'>BettorEdge Wallet</Text>
77
+ <Text style={{ marginTop:5 }} size={26} theme='h1' textAlign='center'>Terms and Conditions</Text>
78
+ </View>
79
+ <Button onPress={() => Linking.openURL('https://www.bettoredge.com/wallet-terms-of-use')}>
80
+ <Text size={14} theme='description' textAlign='center'>Press here to review our <Text size={14} theme='action'>Wallet Terms of Use</Text>. To continue setting up your wallet please review and agree to the terms.</Text>
81
+ </Button>
82
+ <Button
83
+ style={{ marginTop:15, flexDirection:'row', alignItems:'center', padding:20, borderRadius:8 }}
84
+ onPress={() => setTermsAgreed(!terms_agreed)}>
85
+ <Text style={{ flex:1 }} size={16} theme='description'>I have read and agree to the terms</Text>
86
+ <Checkbox size={30} checked={terms_agreed} disabled onSelect={() => console.log('')}/>
87
+ </Button>
88
+ <View style={{ justifyContent:'center', alignItems:'center' }}>
101
89
  <Image
102
- source={{ uri: 'https://res.cloudinary.com/hoabts6mc/image/upload/v1717099686/Secure_lock_and_key_successfully_unlocked_it6hy0.png' }}
90
+ source={{ uri: 'https://res.cloudinary.com/hoabts6mc/image/upload/v1717098691/Signing_the_contract_stfvtj.png' }}
103
91
  style={{ width: 250, height:250 }}
104
92
  resizeMode='cover'
105
93
  />
94
+
95
+ </View>
106
96
  </View>
107
- <View style={{ marginBottom:15 }}>
108
- <Text size={14} theme='description'>Let's secure your sensitive information. Before doing any activity in your wallet, you will be required to enter a pin. Lets set it now.</Text>
97
+ )
98
+ case 'set_pin':
99
+ if(wallet_settings.pin || !wallet_settings.agreed_to_terms){ return <></> }
100
+ return (
101
+ <View style={{ flex:1, padding:20 }}>
102
+ <View>
103
+ <Text style={{ marginTop:5, marginBottom:10 }} size={26} theme='h1' textAlign='center'>{pin_view == 'set' ? 'Set' : 'Confirm'} Security PIN</Text>
104
+ {pin_view == 'set' ?
105
+ <TextInput
106
+ style={{ width:200, alignSelf:'center', textAlign:'center' }}
107
+ placeholder='HARDPIN'
108
+ value={pin}
109
+ onChangeText={(text) => setPinSettings({ ...pin_settings, pin: text })}
110
+ />
111
+ :
112
+ <View>
113
+ <TextInput
114
+ style={{ width:200, alignSelf:'center', textAlign:'center' }}
115
+ placeholder='RE-Enter PIN'
116
+ value={confirm_pin}
117
+ onChangeText={(text) => setPinSettings({ ...pin_settings, confirm_pin: text })}
118
+ />
119
+ </View>
120
+ }
121
+ </View>
122
+ <View style={{ margin:15 }}>
123
+ <Text size={14} theme='description' textAlign='center'>Let's secure your sensitive information. Before doing any activity in your wallet, you will be required to enter a pin. Lets set it now.</Text>
124
+ </View>
125
+ <View style={{ justifyContent:'center', alignItems:'center' }}>
126
+ <Image
127
+ source={{ uri: 'https://res.cloudinary.com/hoabts6mc/image/upload/v1717099686/Secure_lock_and_key_successfully_unlocked_it6hy0.png' }}
128
+ style={{ width: 250, height:250 }}
129
+ resizeMode='cover'
130
+ />
131
+ </View>
109
132
  </View>
110
- {pin_view == 'set' ?
111
- <TextInput
112
- style={{ width:200, alignSelf:'center' }}
113
- placeholder='HARDPIN'
114
- value={pin}
115
- onChangeText={(text) => setPinSettings({ ...pin_settings, pin: text })}
116
- />
117
- :
118
- <View>
133
+ )
134
+ case 'auth':
135
+ if(!auth_required || !wallet_settings.pin || !wallet_settings.agreed_to_terms){ return <></> }
136
+ return (
137
+ <View style={{ flex:1, padding:20, paddingBottom:400 }}>
138
+ <View>
139
+ <Text size={20} theme='h2' textAlign='center'>BettorEdge Wallet</Text>
140
+ <Text style={{ marginTop:5 }} size={26} theme='h1' textAlign='center'>Enter Security PIN</Text>
141
+ </View>
142
+ <View style={{ justifyContent:'center', alignItems:'center' }}>
143
+ <Image
144
+ source={{ uri: 'https://res.cloudinary.com/hoabts6mc/image/upload/v1717099686/Secure_lock_and_key_successfully_unlocked_it6hy0.png' }}
145
+ style={{ width: 250, height:250 }}
146
+ resizeMode='cover'
147
+ />
148
+ </View>
149
+ <View style={{ marginBottom:15 }}>
150
+ <Text size={14} theme='description'>Before you can continue to your wallet. Please enter your security pin.</Text>
151
+ </View>
119
152
  <TextInput
120
153
  style={{ width:200, alignSelf:'center' }}
121
- placeholder='RE-Enter PIN'
122
- value={confirm_pin}
123
- onChangeText={(text) => setPinSettings({ ...pin_settings, confirm_pin: text })}
124
- />
125
- </View>
126
-
127
- }
128
- </View>
129
- :auth_required ?
130
- <View style={{ flex:1, padding:20 }}>
131
- <View>
132
- <Text size={20} theme='h2' textAlign='center'>BettorEdge Wallet</Text>
133
- <Text style={{ marginTop:5 }} size={26} theme='h1' textAlign='center'>Enter Security PIN</Text>
134
- </View>
135
- <View style={{ justifyContent:'center', alignItems:'center' }}>
136
- <Image
137
- source={{ uri: 'https://res.cloudinary.com/hoabts6mc/image/upload/v1717099686/Secure_lock_and_key_successfully_unlocked_it6hy0.png' }}
138
- style={{ width: 250, height:250 }}
139
- resizeMode='cover'
154
+ placeholder='ENTER PIN'
155
+ value={pin}
156
+ onChangeText={(text) => setPinSettings({ ...pin_settings, pin: text })}
140
157
  />
158
+ {auth_error ?
159
+ <View style={{ padding:10 }}>
160
+ <Text size={14} color={Colors.text.warning} weight='bold' textAlign='center'>{auth_error}</Text>
161
+ </View>
162
+ :<></>}
141
163
  </View>
142
- <View style={{ marginBottom:15 }}>
143
- <Text size={14} theme='description'>Before you can continue to your wallet. Please enter your security pin.</Text>
144
- </View>
145
-
146
- <TextInput
147
- style={{ width:200, alignSelf:'center' }}
148
- placeholder='ENTER PIN'
149
- value={pin}
150
- onChangeText={(text) => setPinSettings({ ...pin_settings, pin: text })}
151
- />
152
- {auth_error ?
153
- <View style={{ padding:10 }}>
154
- <Text size={14} color={Colors.text.warning} weight='bold' textAlign='center'>{auth_error}</Text>
155
- </View>
156
- :<></>}
157
- </View>
158
- :
164
+ )
165
+ case 'show_next':
166
+ if(!wallet_settings.pin){ return <></> }
167
+ if(!wallet_settings.agreed_to_terms){ return <></> }
168
+ if(auth_required){ return <></> }
169
+ return (
170
+ <View style={{ flex:1 }}>
171
+ <View style={{ justifyContent:'center', alignItems:'center' }}>
172
+ <Image
173
+ source={{ uri: 'https://res.cloudinary.com/hoabts6mc/image/upload/v1717099686/Secure_lock_and_key_successfully_unlocked_it6hy0.png' }}
174
+ style={{ width: 250, height:250 }}
175
+ resizeMode='cover'
176
+ />
177
+ </View>
178
+ <View style={{ margin:15, borderRadius:8, padding:10 }}>
179
+ <Text size={18} theme='h1' textAlign='center'>WALLET SECURED!</Text>
180
+ <Text style={{ marginTop:5 }} size={14} theme='description' textAlign='center'>Select next to continue your wallet set up by adding a transaction account.</Text>
181
+ </View>
182
+ </View>
183
+ )
184
+ default: return <></>
185
+ }
186
+ }
187
+
188
+
189
+ return (
190
+ <View style={{flex:1}}>
159
191
  <View style={{ flex:1 }}>
160
- <View style={{ justifyContent:'center', alignItems:'center' }}>
161
- <Image
162
- source={{ uri: 'https://res.cloudinary.com/hoabts6mc/image/upload/v1717099686/Secure_lock_and_key_successfully_unlocked_it6hy0.png' }}
163
- style={{ width: 250, height:250 }}
164
- resizeMode='cover'
165
- />
166
- </View>
167
- <View style={{ margin:15, borderRadius:8, padding:10 }}>
168
- <Text size={18} theme='h1' textAlign='center'>WALLET SECURED!</Text>
169
- <Text style={{ marginTop:5 }} size={14} theme='description' textAlign='center'>Select next to continue your wallet set up by adding a transaction account.</Text>
170
- </View>
171
- </View>
172
- }
192
+ <FlatList
193
+ data={setup_sections}
194
+ key='setup_sections_wallet'
195
+ keyExtractor={(item) => item}
196
+ renderItem={renderSections}
197
+ />
173
198
  </View>
174
199
  <View style={{ flexDirection:'row', padding:20 }}>
175
200
  {!wallet_settings.agreed_to_terms && onClose ?
@@ -226,22 +251,22 @@ const WalletSetup = ({ wallet_settings, onSettingsUpdate, onClose, onNext }:Wall
226
251
  <View style={{ flex:1, flexDirection:'row', alignItems:'center', justifyContent:'space-between' }}>
227
252
  <Button
228
253
  title='EXIT SETUP'
229
- type='close'
254
+ type='error'
230
255
  onPress={() => onClose()}
231
256
  />
232
257
  <Button
233
- style={button_styles.wizard_valid}
258
+ float
259
+ style={{ borderRadius:100, height:50, width:50, justifyContent:'center', alignItems:'center' }}
234
260
  onPress={() => onNext()}
235
261
  //disabled={loading}
236
262
  >
237
- <Icons.ChevronIcon size={20} direction='right' color={Colors.text.h1}/>
263
+ <Icons.ChevronIcon size={18} direction='right' color={Colors.text.h1}/>
238
264
  </Button>
239
265
  </View>
240
266
  :<></>
241
267
  }
242
268
  </View>
243
269
  </View>
244
- </TouchableWithoutFeedback>
245
270
  )
246
271
  }
247
272
 
@@ -315,7 +315,7 @@ const MyWallet = ({ height, new_balance, account_id, onTransact, onClose, onEven
315
315
  </View>
316
316
  : walkthrough.active_step == 'withdraw'?
317
317
  <View style={{ flex:1 }}>
318
- {!walkthrough.step_action ?
318
+ {!walkthrough.step_action ?
319
319
  <ACHAddCard
320
320
  player={player}
321
321
  accounts={accounts}
@@ -334,11 +334,11 @@ const MyWallet = ({ height, new_balance, account_id, onTransact, onClose, onEven
334
334
  />
335
335
  :<></>}
336
336
  {walkthrough.step_action == 'manual_ach' ?
337
- <ManualACHAdd
338
- player={player}
339
- onAddAccount={(acct) => setWallet({ ...wallet, accounts: accounts.concat(acct) })}
340
- onCancel={() => setWalkthrough({ ...walkthrough, step_action: undefined })}
341
- />
337
+ <ManualACHAdd
338
+ player={player}
339
+ onAddAccount={(acct) => setWallet({ ...wallet, accounts: accounts.concat(acct) })}
340
+ onCancel={() => setWalkthrough({ ...walkthrough, step_action: undefined })}
341
+ />
342
342
  :walkthrough.step_action == 'link_ach' && ibt_placeholder_account ?
343
343
  <LinkAccountManager
344
344
  ibt_placeholer_account={ibt_placeholder_account}
@@ -368,7 +368,7 @@ const MyWallet = ({ height, new_balance, account_id, onTransact, onClose, onEven
368
368
  </View>
369
369
  )
370
370
  }
371
-
371
+ console.log(WalletHelpers.isWalletAuthenticated(wallet_settings))
372
372
  return (
373
373
  <View style={{ flex:1, height }}>
374
374
  {!WalletHelpers.isWalletAuthenticated(wallet_settings) ?