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.
- package/lib/commonjs/Checkout/components/AccountSummaryCard.js +52 -57
- package/lib/commonjs/Checkout/components/AccountSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/components/ItemSummaryCard.js +8 -11
- package/lib/commonjs/Checkout/components/ItemSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/components/OrderSummaryCard.js +21 -25
- package/lib/commonjs/Checkout/components/OrderSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/components/PayPalOrderCapture.js +2 -2
- package/lib/commonjs/Checkout/components/PayPalOrderCapture.js.map +1 -1
- package/lib/commonjs/Checkout/components/ShippingSummaryCard.js +11 -15
- package/lib/commonjs/Checkout/components/ShippingSummaryCard.js.map +1 -1
- package/lib/commonjs/Checkout/index.js +177 -154
- package/lib/commonjs/Checkout/index.js.map +1 -1
- package/lib/commonjs/Components/Checkbox.js +7 -5
- package/lib/commonjs/Components/Checkbox.js.map +1 -1
- package/lib/commonjs/Components/Icons.js +9 -9
- package/lib/commonjs/Components/Icons.js.map +1 -1
- package/lib/commonjs/Wallet/components/ACHAddCard.js +233 -194
- package/lib/commonjs/Wallet/components/ACHAddCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/AddressCard.js +19 -17
- package/lib/commonjs/Wallet/components/AddressCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/AddressManager.js +64 -92
- package/lib/commonjs/Wallet/components/AddressManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/FundAccountCard.js +106 -95
- package/lib/commonjs/Wallet/components/FundAccountCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/LinkAccountManager.js +80 -106
- package/lib/commonjs/Wallet/components/LinkAccountManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManualACHAdd.js +155 -151
- package/lib/commonjs/Wallet/components/ManualACHAdd.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManualCardAdd.js +207 -204
- package/lib/commonjs/Wallet/components/ManualCardAdd.js.map +1 -1
- package/lib/commonjs/Wallet/components/MyBalance.js +73 -66
- package/lib/commonjs/Wallet/components/MyBalance.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletSetup.js +286 -246
- package/lib/commonjs/Wallet/components/WalletSetup.js.map +1 -1
- package/lib/commonjs/Wallet/index.js +1 -0
- package/lib/commonjs/Wallet/index.js.map +1 -1
- package/lib/module/Checkout/components/AccountSummaryCard.js +25 -30
- package/lib/module/Checkout/components/AccountSummaryCard.js.map +1 -1
- package/lib/module/Checkout/components/ItemSummaryCard.js +4 -7
- package/lib/module/Checkout/components/ItemSummaryCard.js.map +1 -1
- package/lib/module/Checkout/components/OrderSummaryCard.js +9 -13
- package/lib/module/Checkout/components/OrderSummaryCard.js.map +1 -1
- package/lib/module/Checkout/components/PayPalOrderCapture.js +1 -1
- package/lib/module/Checkout/components/PayPalOrderCapture.js.map +1 -1
- package/lib/module/Checkout/components/ShippingSummaryCard.js +5 -9
- package/lib/module/Checkout/components/ShippingSummaryCard.js.map +1 -1
- package/lib/module/Checkout/index.js +146 -123
- package/lib/module/Checkout/index.js.map +1 -1
- package/lib/module/Components/Checkbox.js +6 -4
- package/lib/module/Components/Checkbox.js.map +1 -1
- package/lib/module/Components/Icons.js +10 -10
- package/lib/module/Components/Icons.js.map +1 -1
- package/lib/module/Wallet/components/ACHAddCard.js +233 -194
- package/lib/module/Wallet/components/ACHAddCard.js.map +1 -1
- package/lib/module/Wallet/components/AddressCard.js +14 -12
- package/lib/module/Wallet/components/AddressCard.js.map +1 -1
- package/lib/module/Wallet/components/AddressManager.js +29 -57
- package/lib/module/Wallet/components/AddressManager.js.map +1 -1
- package/lib/module/Wallet/components/FundAccountCard.js +71 -60
- package/lib/module/Wallet/components/FundAccountCard.js.map +1 -1
- package/lib/module/Wallet/components/LinkAccountManager.js +55 -81
- package/lib/module/Wallet/components/LinkAccountManager.js.map +1 -1
- package/lib/module/Wallet/components/ManualACHAdd.js +146 -141
- package/lib/module/Wallet/components/ManualACHAdd.js.map +1 -1
- package/lib/module/Wallet/components/ManualCardAdd.js +204 -201
- package/lib/module/Wallet/components/ManualCardAdd.js.map +1 -1
- package/lib/module/Wallet/components/MyBalance.js +45 -38
- package/lib/module/Wallet/components/MyBalance.js.map +1 -1
- package/lib/module/Wallet/components/WalletSetup.js +287 -247
- package/lib/module/Wallet/components/WalletSetup.js.map +1 -1
- package/lib/module/Wallet/index.js +1 -0
- package/lib/module/Wallet/index.js.map +1 -1
- package/lib/typescript/lib/commonjs/Checkout/components/AccountSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Checkout/components/ItemSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Checkout/components/OrderSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Checkout/components/ShippingSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Checkout/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Checkbox.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/ACHAddCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/AddressCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/AddressManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/FundAccountCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/LinkAccountManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/ManualACHAdd.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/ManualCardAdd.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/MyBalance.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/WalletSetup.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Checkout/components/AccountSummaryCard.d.ts +1 -2
- package/lib/typescript/lib/module/Checkout/components/AccountSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Checkout/components/ItemSummaryCard.d.ts +1 -2
- package/lib/typescript/lib/module/Checkout/components/ItemSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Checkout/components/OrderSummaryCard.d.ts +1 -2
- package/lib/typescript/lib/module/Checkout/components/OrderSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Checkout/components/PayPalOrderCapture.d.ts +1 -2
- package/lib/typescript/lib/module/Checkout/components/PayPalOrderCapture.d.ts.map +1 -1
- package/lib/typescript/lib/module/Checkout/components/ShippingSummaryCard.d.ts +1 -2
- package/lib/typescript/lib/module/Checkout/components/ShippingSummaryCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Checkout/index.d.ts +1 -2
- package/lib/typescript/lib/module/Checkout/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Checkbox.d.ts +1 -2
- package/lib/typescript/lib/module/Components/Checkbox.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/ACHAddCard.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/ACHAddCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/AddressCard.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/AddressCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/AddressManager.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/AddressManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/FundAccountCard.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/FundAccountCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/LinkAccountManager.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/LinkAccountManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/ManualACHAdd.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/ManualACHAdd.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/ManualCardAdd.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/ManualCardAdd.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/MyBalance.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/MyBalance.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/WalletSetup.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/WalletSetup.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/index.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/AccountSummaryCard.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/ItemSummaryCard.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/OrderSummaryCard.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/PayPalOrderCapture.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/components/ShippingSummaryCard.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/index.d.ts.map +1 -1
- package/lib/typescript/src/Components/Checkbox.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ACHAddCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AddressCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AddressManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/FundAccountCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/LinkAccountManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ManualACHAdd.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ManualCardAdd.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/MyBalance.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WalletSetup.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/Checkout/components/AccountSummaryCard.tsx +25 -27
- package/src/Checkout/components/ItemSummaryCard.tsx +4 -6
- package/src/Checkout/components/OrderSummaryCard.tsx +9 -11
- package/src/Checkout/components/PayPalOrderCapture.tsx +4 -2
- package/src/Checkout/components/ShippingSummaryCard.tsx +5 -8
- package/src/Checkout/index.tsx +121 -105
- package/src/Components/Checkbox.tsx +7 -6
- package/src/Components/Icons.tsx +10 -10
- package/src/Wallet/components/ACHAddCard.tsx +90 -60
- package/src/Wallet/components/AddressCard.tsx +11 -11
- package/src/Wallet/components/AddressManager.tsx +33 -44
- package/src/Wallet/components/FundAccountCard.tsx +52 -51
- package/src/Wallet/components/LinkAccountManager.tsx +49 -59
- package/src/Wallet/components/ManualACHAdd.tsx +99 -79
- package/src/Wallet/components/ManualCardAdd.tsx +119 -95
- package/src/Wallet/components/MyBalance.tsx +38 -40
- package/src/Wallet/components/WalletSetup.tsx +138 -113
- package/src/Wallet/index.tsx +7 -7
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import {
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
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/
|
|
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
|
-
|
|
108
|
-
|
|
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
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
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='
|
|
122
|
-
value={
|
|
123
|
-
onChangeText={(text) => setPinSettings({ ...pin_settings,
|
|
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
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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
|
-
<
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
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='
|
|
254
|
+
type='error'
|
|
230
255
|
onPress={() => onClose()}
|
|
231
256
|
/>
|
|
232
257
|
<Button
|
|
233
|
-
|
|
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={
|
|
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
|
|
package/src/Wallet/index.tsx
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
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) ?
|