be-components 3.5.9 → 3.6.1
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/Components/Pagination.js +37 -0
- package/lib/commonjs/Components/Pagination.js.map +1 -0
- package/lib/commonjs/ProfileManager/Components/VouchCard.js +3 -35
- package/lib/commonjs/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/AccountCard.js +27 -28
- package/lib/commonjs/Wallet/components/AccountCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/AccountLimitManager.js +60 -95
- package/lib/commonjs/Wallet/components/AccountLimitManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/AccountManager.js +209 -158
- package/lib/commonjs/Wallet/components/AccountManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/AccountSnoozeManager.js +53 -66
- package/lib/commonjs/Wallet/components/AccountSnoozeManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/DepositCard.js +93 -99
- package/lib/commonjs/Wallet/components/DepositCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/ItemOrderCard.js +26 -29
- package/lib/commonjs/Wallet/components/ItemOrderCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/ItemOrderDetailCard.js +43 -46
- package/lib/commonjs/Wallet/components/ItemOrderDetailCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManageAccountCard.js +85 -60
- package/lib/commonjs/Wallet/components/ManageAccountCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/OrderManager.js +61 -58
- package/lib/commonjs/Wallet/components/OrderManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/RemoveAccount.js +22 -23
- package/lib/commonjs/Wallet/components/RemoveAccount.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletActionSelector.js +130 -133
- package/lib/commonjs/Wallet/components/WalletActionSelector.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletSettings.js +382 -547
- package/lib/commonjs/Wallet/components/WalletSettings.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletSetup.js +85 -107
- package/lib/commonjs/Wallet/components/WalletSetup.js.map +1 -1
- package/lib/commonjs/Wallet/components/WithdrawCard.js +91 -111
- package/lib/commonjs/Wallet/components/WithdrawCard.js.map +1 -1
- package/lib/commonjs/Wallet/index.js +22 -24
- package/lib/commonjs/Wallet/index.js.map +1 -1
- package/lib/commonjs/constants/styles.js +1 -1
- package/lib/commonjs/constants/styles.js.map +1 -1
- package/lib/commonjs/constants/useColors.js +1 -1
- package/lib/commonjs/constants/useColors.js.map +1 -1
- package/lib/module/Components/Pagination.js +30 -0
- package/lib/module/Components/Pagination.js.map +1 -0
- package/lib/module/ProfileManager/Components/VouchCard.js +3 -35
- package/lib/module/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/module/Wallet/components/AccountCard.js +23 -24
- package/lib/module/Wallet/components/AccountCard.js.map +1 -1
- package/lib/module/Wallet/components/AccountLimitManager.js +43 -77
- package/lib/module/Wallet/components/AccountLimitManager.js.map +1 -1
- package/lib/module/Wallet/components/AccountManager.js +206 -155
- package/lib/module/Wallet/components/AccountManager.js.map +1 -1
- package/lib/module/Wallet/components/AccountSnoozeManager.js +35 -48
- package/lib/module/Wallet/components/AccountSnoozeManager.js.map +1 -1
- package/lib/module/Wallet/components/DepositCard.js +62 -67
- package/lib/module/Wallet/components/DepositCard.js.map +1 -1
- package/lib/module/Wallet/components/ItemOrderCard.js +17 -20
- package/lib/module/Wallet/components/ItemOrderCard.js.map +1 -1
- package/lib/module/Wallet/components/ItemOrderDetailCard.js +28 -31
- package/lib/module/Wallet/components/ItemOrderDetailCard.js.map +1 -1
- package/lib/module/Wallet/components/ManageAccountCard.js +80 -55
- package/lib/module/Wallet/components/ManageAccountCard.js.map +1 -1
- package/lib/module/Wallet/components/OrderManager.js +59 -56
- package/lib/module/Wallet/components/OrderManager.js.map +1 -1
- package/lib/module/Wallet/components/RemoveAccount.js +16 -16
- package/lib/module/Wallet/components/RemoveAccount.js.map +1 -1
- package/lib/module/Wallet/components/WalletActionSelector.js +102 -104
- package/lib/module/Wallet/components/WalletActionSelector.js.map +1 -1
- package/lib/module/Wallet/components/WalletSettings.js +381 -545
- package/lib/module/Wallet/components/WalletSettings.js.map +1 -1
- package/lib/module/Wallet/components/WalletSetup.js +42 -64
- package/lib/module/Wallet/components/WalletSetup.js.map +1 -1
- package/lib/module/Wallet/components/WithdrawCard.js +52 -71
- package/lib/module/Wallet/components/WithdrawCard.js.map +1 -1
- package/lib/module/Wallet/index.js +15 -17
- package/lib/module/Wallet/index.js.map +1 -1
- package/lib/module/constants/styles.js +1 -1
- package/lib/module/constants/styles.js.map +1 -1
- package/lib/module/constants/useColors.js +1 -1
- package/lib/module/constants/useColors.js.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Pagination.d.ts +11 -0
- package/lib/typescript/lib/commonjs/Components/Pagination.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/AccountCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/AccountLimitManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/AccountManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/AccountSnoozeManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/DepositCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/ItemOrderCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/ItemOrderDetailCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/ManageAccountCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/OrderManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/RemoveAccount.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/WalletActionSelector.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/WalletSettings.d.ts +1 -2
- package/lib/typescript/lib/commonjs/Wallet/components/WalletSettings.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/WalletSetup.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/components/WithdrawCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Wallet/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/constants/styles.d.ts +1 -1
- package/lib/typescript/lib/module/Components/Pagination.d.ts +11 -0
- package/lib/typescript/lib/module/Components/Pagination.d.ts.map +1 -0
- package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts +3 -1
- package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/AccountCard.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/AccountCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/AccountLimitManager.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/AccountLimitManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/AccountManager.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/AccountManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/AccountSnoozeManager.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/AccountSnoozeManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/DepositCard.d.ts +2 -2
- package/lib/typescript/lib/module/Wallet/components/DepositCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/ItemOrderCard.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/ItemOrderCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/ItemOrderDetailCard.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/ItemOrderDetailCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/ManageAccountCard.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/ManageAccountCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/OrderManager.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/OrderManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/RemoveAccount.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/RemoveAccount.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/WalletActionSelector.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/components/WalletActionSelector.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/WalletSettings.d.ts +2 -4
- package/lib/typescript/lib/module/Wallet/components/WalletSettings.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/WalletSetup.d.ts +2 -2
- package/lib/typescript/lib/module/Wallet/components/WalletSetup.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/components/WithdrawCard.d.ts +2 -2
- package/lib/typescript/lib/module/Wallet/components/WithdrawCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Wallet/index.d.ts +1 -2
- package/lib/typescript/lib/module/Wallet/index.d.ts.map +1 -1
- package/lib/typescript/src/Components/Pagination.d.ts +12 -0
- package/lib/typescript/src/Components/Pagination.d.ts.map +1 -0
- package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AccountCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AccountLimitManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AccountManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AccountSnoozeManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/DepositCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ItemOrderCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ItemOrderDetailCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ManageAccountCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/OrderManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/RemoveAccount.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WalletActionSelector.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WalletSettings.d.ts +1 -1
- package/lib/typescript/src/Wallet/components/WalletSettings.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WalletSetup.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WithdrawCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/index.d.ts.map +1 -1
- package/package.json +1 -2
- package/src/Components/Pagination.tsx +33 -0
- package/src/ProfileManager/Components/VouchCard.tsx +3 -27
- package/src/Wallet/components/AccountCard.tsx +22 -21
- package/src/Wallet/components/AccountLimitManager.tsx +36 -54
- package/src/Wallet/components/AccountManager.tsx +95 -61
- package/src/Wallet/components/AccountSnoozeManager.tsx +39 -37
- package/src/Wallet/components/DepositCard.tsx +55 -53
- package/src/Wallet/components/ItemOrderCard.tsx +13 -12
- package/src/Wallet/components/ItemOrderDetailCard.tsx +23 -22
- package/src/Wallet/components/ManageAccountCard.tsx +78 -47
- package/src/Wallet/components/OrderManager.tsx +47 -37
- package/src/Wallet/components/RemoveAccount.tsx +12 -15
- package/src/Wallet/components/WalletActionSelector.tsx +70 -69
- package/src/Wallet/components/WalletSettings.tsx +137 -139
- package/src/Wallet/components/WalletSetup.tsx +41 -51
- package/src/Wallet/components/WithdrawCard.tsx +56 -56
- package/src/Wallet/index.tsx +16 -15
- package/src/constants/styles.ts +1 -1
- package/src/constants/useColors.tsx +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React, { useState } from "react"
|
|
2
2
|
import type { MyPlayerProps, PlayerDepositLimitProps, PlayerReferralProps, PlayerWithdrawLimitProps, PromoProps } from '../../types';
|
|
3
|
-
import {
|
|
4
|
-
import { Button, Icons, Text } from '../../Components';
|
|
5
|
-
import Colors from '../../constants/colors';
|
|
3
|
+
import { Toggle } from '../../Components';
|
|
6
4
|
import { WalletHelpers } from '../api';
|
|
5
|
+
import { Button, Text, View } from "../../Components/Themed";
|
|
6
|
+
import { useColors } from "../../constants/useColors";
|
|
7
|
+
import { FlatList } from "react-native";
|
|
7
8
|
|
|
8
9
|
type BEWalletProps = {
|
|
9
10
|
player:MyPlayerProps,
|
|
@@ -17,200 +18,197 @@ type BEWalletProps = {
|
|
|
17
18
|
onClose:() => void
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
const
|
|
21
|
+
const sections = ['header', 'toggle', 'deposit','withdraw','referral']
|
|
22
|
+
const WalletSettings = ({ player, my_referral, deposit_limit, withdraw_limit, onClose }:BEWalletProps) => {
|
|
21
23
|
const [ active_tab, setActiveTab ] = useState('deposit');
|
|
22
|
-
|
|
24
|
+
const Colors = useColors();
|
|
23
25
|
//const promo = useSelector((state:RootState) => state.wallet.promo, (left, right) => left?.promo_id == right?.promo_id);
|
|
24
26
|
//const player_referral = useSelector((state:RootState) => state.wallet.player_referral, (left, right) => left?.last_update_datetime == right?.last_update_datetime);
|
|
25
27
|
|
|
26
28
|
const { player_referral, promo } = my_referral
|
|
27
29
|
//const tabs = ['referral','deposit','withdraw']
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
<View style={{ flexDirection: 'row', paddingLeft:10, paddingRight:10 }}>
|
|
39
|
-
<TouchableOpacity
|
|
40
|
-
style={{ flex:1, borderWidth:1,borderColor:Colors.shades.shade600, padding:10, borderTopRightRadius:8, borderTopLeftRadius:8, backgroundColor:active_tab=='deposit'?Colors.brand.midnight:undefined }}
|
|
41
|
-
onPress={() => setActiveTab('deposit')}
|
|
42
|
-
>
|
|
43
|
-
<Text weight={active_tab == 'deposit'?'bold':'regular'} textAlign="center" size={14} color={active_tab=='deposit'?Colors.shades.white:Colors.brand.midnight}>Deposit</Text>
|
|
44
|
-
</TouchableOpacity>
|
|
45
|
-
<TouchableOpacity
|
|
46
|
-
style={{ flex:1, borderWidth:1, borderColor:Colors.shades.shade600, padding:10, borderTopRightRadius:8, borderTopLeftRadius:8, backgroundColor:active_tab=='withdraw'?Colors.brand.midnight:undefined }}
|
|
47
|
-
onPress={() => setActiveTab('withdraw')}
|
|
48
|
-
>
|
|
49
|
-
<Text weight={active_tab == 'withdraw'?'bold':'regular'} textAlign="center" size={14} color={active_tab=='withdraw'?Colors.shades.white:Colors.brand.midnight}>Withdraw</Text>
|
|
50
|
-
</TouchableOpacity>
|
|
51
|
-
<TouchableOpacity
|
|
52
|
-
style={{ flex:1, borderWidth:1, borderColor:Colors.shades.shade600, padding:10, borderTopRightRadius:8, borderTopLeftRadius:8, backgroundColor:active_tab=='referral'?Colors.brand.midnight:undefined }}
|
|
53
|
-
onPress={() => setActiveTab('referral')}
|
|
54
|
-
>
|
|
55
|
-
<Text weight={active_tab == 'referral'?'bold':'regular'} textAlign="center" size={14} color={active_tab=='referral'?Colors.shades.white:Colors.brand.midnight}>Referral</Text>
|
|
56
|
-
</TouchableOpacity>
|
|
57
|
-
</View>
|
|
58
|
-
<ScrollView nativeID="settings" style={{ flex:1, marginLeft:10, marginRight:10, borderRightWidth:1, borderLeftWidth:1, borderBottomWidth:1, borderColor:Colors.shades.shade600 }}>
|
|
59
|
-
{active_tab == 'deposit' ?
|
|
60
|
-
<View>
|
|
61
|
-
{deposit_limit ?
|
|
62
|
-
<View nativeID="deposit_limit">
|
|
63
|
-
<View style={{ backgroundColor:Colors.shades.shade100, padding:10 }}>
|
|
64
|
-
<Text size={14} color={Colors.brand.midnight} weight='semibold'>Deposit Settings</Text>
|
|
65
|
-
<Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>Below are your current deposit limits. These may change based on historical transaction results.</Text>
|
|
30
|
+
console.log(active_tab)
|
|
31
|
+
console.log(deposit_limit)
|
|
32
|
+
const renderSections = (data:{item:string, index:number}) => {
|
|
33
|
+
switch(data.item){
|
|
34
|
+
case 'header':
|
|
35
|
+
return (
|
|
36
|
+
<View type='header' style={{ flexDirection:'row', alignItems:'center', padding:15 }}>
|
|
37
|
+
<View transparent style={{flex:1}}>
|
|
38
|
+
<Text size={20} theme='h1'>MY WALLET SETTINGS / LIMITS</Text>
|
|
39
|
+
<Text style={{ marginTop:5}} theme='description'>Below are your overall wallet settings & configurations. These are set based on account type and past transaction history</Text>
|
|
66
40
|
</View>
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
41
|
+
</View>
|
|
42
|
+
)
|
|
43
|
+
case 'toggle':
|
|
44
|
+
return (
|
|
45
|
+
<View style={{ padding:10 }}>
|
|
46
|
+
<Toggle
|
|
47
|
+
options={[
|
|
48
|
+
{key: 'deposit', label:'Deposit' },
|
|
49
|
+
{key: 'withdraw', label:'Withdraw' },
|
|
50
|
+
{key: 'referral', label:'Referral' }
|
|
51
|
+
]}
|
|
52
|
+
selected_option={active_tab}
|
|
53
|
+
onSelectOption={(option) => setActiveTab(option)}
|
|
54
|
+
/>
|
|
55
|
+
</View>
|
|
56
|
+
)
|
|
57
|
+
case 'deposit':
|
|
58
|
+
if(active_tab != 'deposit'){ return <></> }
|
|
59
|
+
if(!deposit_limit){ return <></> }
|
|
60
|
+
return (
|
|
61
|
+
<View nativeID="deposit_limit">
|
|
62
|
+
<View type='header' style={{ flexDirection:'row', alignItems:'center', padding:15 }}>
|
|
63
|
+
<View transparent style={{flex:1}}>
|
|
64
|
+
<Text theme='h1'>DEPOSIT SETTINGS</Text>
|
|
65
|
+
<Text style={{ marginTop:3}} theme='description'>Below are your current deposit limits. These may change based on historical transaction results.</Text>
|
|
76
66
|
</View>
|
|
77
67
|
</View>
|
|
78
|
-
<View style={{
|
|
79
|
-
<View style={{ flex:1 }}>
|
|
80
|
-
<
|
|
81
|
-
|
|
68
|
+
<View type='body' style={{ padding:10 }}>
|
|
69
|
+
<View type='row' style={{ flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
|
|
70
|
+
<View style={{ flex:1 }}>
|
|
71
|
+
<Text theme="h2">ACH Daily Limit</Text>
|
|
72
|
+
<Text style={{ marginTop:5 }} theme="description">The maximum deposit amount allowed per day from an ACH account</Text>
|
|
73
|
+
</View>
|
|
74
|
+
<View>
|
|
75
|
+
<Text theme="h2">${deposit_limit.ach_daily_limit}</Text>
|
|
76
|
+
</View>
|
|
82
77
|
</View>
|
|
83
|
-
<View style={{
|
|
84
|
-
<
|
|
78
|
+
<View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
|
|
79
|
+
<View style={{ flex:1 }}>
|
|
80
|
+
<Text theme="h2">Card / Paypal Daily Limit</Text>
|
|
81
|
+
<Text style={{ marginTop:5 }} theme="description">The maximum deposit amount allowed per day from a card account</Text>
|
|
82
|
+
</View>
|
|
83
|
+
<View>
|
|
84
|
+
<Text theme="h2">${deposit_limit.card_daily_limit}</Text>
|
|
85
|
+
</View>
|
|
85
86
|
</View>
|
|
86
|
-
|
|
87
|
-
<View style={{ flexDirection:'row', alignItems:'flex-start', marginTop:10, padding:5, borderBottomWidth:1, borderColor:Colors.shades.shade100 }}>
|
|
87
|
+
<View style={{ flexDirection:'row', alignItems:'flex-start', marginTop:10, padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
|
|
88
88
|
<View style={{ flex:1 }}>
|
|
89
|
-
<Text
|
|
90
|
-
<Text style={{ marginTop:5 }}
|
|
89
|
+
<Text theme="h2">Instant Deposit Limit</Text>
|
|
90
|
+
<Text style={{ marginTop:5 }} theme="description">The total amount of unsettled deposits that will be instantly added to your wallet. Any deposit over this amount will be held until it settles.</Text>
|
|
91
91
|
</View>
|
|
92
|
-
<View
|
|
93
|
-
<Text
|
|
92
|
+
<View>
|
|
93
|
+
<Text theme="h2">${deposit_limit.instant_limit}</Text>
|
|
94
94
|
</View>
|
|
95
95
|
</View>
|
|
96
|
-
<View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.
|
|
96
|
+
<View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
|
|
97
97
|
<View style={{ flex:1 }}>
|
|
98
|
-
<Text
|
|
99
|
-
<Text style={{ marginTop:5 }}
|
|
98
|
+
<Text theme='h2'>Hold Days</Text>
|
|
99
|
+
<Text style={{ marginTop:5 }} theme="description">The number of days a deposit transaction will be held (not settled) before it can be withdrawn</Text>
|
|
100
100
|
</View>
|
|
101
|
-
<View
|
|
102
|
-
<Text
|
|
101
|
+
<View>
|
|
102
|
+
<Text theme="h2">{deposit_limit.hold_days}</Text>
|
|
103
103
|
</View>
|
|
104
104
|
</View>
|
|
105
|
-
<View style={{ flexDirection:'row', alignItems:'flex-start', marginTop:10, padding:5, borderBottomWidth:1, borderColor:Colors.
|
|
105
|
+
<View style={{ flexDirection:'row', alignItems:'flex-start', marginTop:10, padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
|
|
106
106
|
<View style={{ flex:1 }}>
|
|
107
|
-
<Text
|
|
108
|
-
<Text style={{ marginTop:5 }}
|
|
107
|
+
<Text theme="h2">Instant Deposit Available</Text>
|
|
108
|
+
<Text style={{ marginTop:5 }} theme="description">Your instant deposit limit minus your unsettled deposits</Text>
|
|
109
109
|
</View>
|
|
110
|
-
<View
|
|
111
|
-
<Text size={14} color={deposit_limit.instant_available > 0 ? Colors.
|
|
110
|
+
<View>
|
|
111
|
+
<Text size={14} color={deposit_limit.instant_available > 0 ? Colors.text.success : Colors.text.error} weight="bold">${deposit_limit.instant_available.toFixed(2)}</Text>
|
|
112
112
|
</View>
|
|
113
113
|
</View>
|
|
114
114
|
</View>
|
|
115
115
|
</View>
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
{withdraw_limit ?
|
|
116
|
+
)
|
|
117
|
+
case 'withdraw':
|
|
118
|
+
if(active_tab != 'withdraw' || !withdraw_limit){ return <></> }
|
|
119
|
+
return (
|
|
121
120
|
<View nativeID="withdraw_settings">
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
121
|
+
<View type='header' style={{ flexDirection:'row', alignItems:'center', padding:15 }}>
|
|
122
|
+
<View transparent style={{flex:1}}>
|
|
123
|
+
<Text theme='h1'>WITHDRAW SETTINGS</Text>
|
|
124
|
+
<Text style={{ marginTop:3}} theme='description'>Below are your current withdraw settings and limits. These may change based on historical transaction results.</Text>
|
|
125
|
+
</View>
|
|
126
|
+
</View>
|
|
127
|
+
<View type='body' style={{ padding:10 }}>
|
|
128
|
+
<View style={{ flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
|
|
128
129
|
<View style={{ flex:1 }}>
|
|
129
|
-
<Text
|
|
130
|
-
<Text style={{ marginTop:5 }}
|
|
130
|
+
<Text theme="h2">Weekly Withdraw Transaction Limit</Text>
|
|
131
|
+
<Text style={{ marginTop:5 }} theme="description">The number of withdraws allowed per rolling week.</Text>
|
|
131
132
|
</View>
|
|
132
|
-
<View
|
|
133
|
-
<Text
|
|
133
|
+
<View>
|
|
134
|
+
<Text theme="h2">{withdraw_limit.withdraws_per_week}</Text>
|
|
134
135
|
</View>
|
|
135
136
|
</View>
|
|
136
137
|
{withdraw_limit?.week_withdraw_count ?
|
|
137
|
-
<View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.
|
|
138
|
+
<View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
|
|
138
139
|
<View style={{ flex:1 }}>
|
|
139
|
-
<Text
|
|
140
|
-
<Text style={{ marginTop:5 }}
|
|
140
|
+
<Text theme="h2">Withdraws Remaining</Text>
|
|
141
|
+
<Text style={{ marginTop:5 }} theme="description">Withdraw transaction limit minus the number of withdraws already processed in the last 7 days</Text>
|
|
141
142
|
</View>
|
|
142
|
-
<View
|
|
143
|
-
<Text
|
|
143
|
+
<View>
|
|
144
|
+
<Text theme="h2">{withdraw_limit.withdraws_per_week - withdraw_limit.week_withdraw_count}</Text>
|
|
144
145
|
</View>
|
|
145
146
|
</View>
|
|
146
147
|
:<></>}
|
|
147
|
-
<View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.
|
|
148
|
+
<View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
|
|
148
149
|
<View style={{ flex:1 }}>
|
|
149
|
-
<Text
|
|
150
|
-
<Text style={{ marginTop:5 }}
|
|
150
|
+
<Text theme="h2">ACH Withdraw Daily Limit</Text>
|
|
151
|
+
<Text style={{ marginTop:5 }} theme="description">Maximum amount of withdraws that can be made per rolling 24 hours to an ACH account.</Text>
|
|
151
152
|
</View>
|
|
152
|
-
<View
|
|
153
|
-
<Text
|
|
153
|
+
<View>
|
|
154
|
+
<Text theme="h2">{withdraw_limit.ach_daily_limit}</Text>
|
|
154
155
|
</View>
|
|
155
156
|
</View>
|
|
156
|
-
<View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.
|
|
157
|
+
<View style={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
|
|
157
158
|
<View style={{ flex:1 }}>
|
|
158
|
-
<Text
|
|
159
|
-
<Text style={{ marginTop:5 }}
|
|
159
|
+
<Text theme="h2">Card Withdraw Daily Limit</Text>
|
|
160
|
+
<Text style={{ marginTop:5 }} theme="description">Maximum amount of withdraws that can be made per rolling 24 hours to a card account.</Text>
|
|
160
161
|
</View>
|
|
161
|
-
<View
|
|
162
|
-
<Text
|
|
162
|
+
<View>
|
|
163
|
+
<Text theme="h2">{withdraw_limit.card_daily_limit}</Text>
|
|
163
164
|
</View>
|
|
164
165
|
</View>
|
|
165
166
|
</View>
|
|
166
167
|
</View>
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
{player_referral && promo ?
|
|
168
|
+
)
|
|
169
|
+
case 'referral':
|
|
170
|
+
if(active_tab != 'referral' || !player_referral || !promo){ return <></> }
|
|
171
|
+
return (
|
|
172
172
|
<View nativeID="referral_settings">
|
|
173
|
-
<View style={{
|
|
174
|
-
<
|
|
175
|
-
|
|
173
|
+
<View type='header' style={{ flexDirection:'row', alignItems:'center', padding:15 }}>
|
|
174
|
+
<View transparent style={{flex:1}}>
|
|
175
|
+
<Text theme='h1'>REFERRAL SETTINGS</Text>
|
|
176
|
+
<Text style={{ marginTop:3}} theme='description'>Below are your current referral settings. Share your code with others to earn cash from referrals.</Text>
|
|
177
|
+
</View>
|
|
176
178
|
</View>
|
|
177
179
|
<View style={{ padding:10 }}>
|
|
178
|
-
{
|
|
179
|
-
<TouchableOpacity style={{ flexDirection:'row', alignItems:'center', padding:10, borderRadius:8, backgroundColor:Colors.brand.electric }}>
|
|
180
|
-
<Icons.ShareIcon color={Colors.shades.white} size={8}/>
|
|
181
|
-
<Text style={{ marginLeft:5 }} size={10} color={Colors.shades.white} weight='regular'>Share Code</Text>
|
|
182
|
-
</TouchableOpacity>
|
|
183
|
-
:<></>}
|
|
184
|
-
<View style={{ flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.shades.shade100 }}>
|
|
180
|
+
<View style={{ flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.borders.light }}>
|
|
185
181
|
<View style={{ flex:1 }}>
|
|
186
|
-
<Text
|
|
187
|
-
<Text style={{ marginTop:5 }}
|
|
182
|
+
<Text theme="h2">My Referral Code</Text>
|
|
183
|
+
<Text style={{ marginTop:5 }} theme="description">{WalletHelpers.getReferralDescription(promo)}</Text>
|
|
188
184
|
</View>
|
|
189
|
-
<View
|
|
190
|
-
<Text
|
|
185
|
+
<View>
|
|
186
|
+
<Text theme="h2">{player_referral.referral_code}</Text>
|
|
191
187
|
</View>
|
|
192
188
|
</View>
|
|
193
189
|
</View>
|
|
194
190
|
</View>
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
191
|
+
)
|
|
192
|
+
default: return <></>
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
if(!player){ return <></> }
|
|
197
|
+
return (
|
|
198
|
+
<View style={{ flex:1 }}>
|
|
199
|
+
<View style={{ flex:1 }}>
|
|
200
|
+
<FlatList
|
|
201
|
+
data={sections}
|
|
202
|
+
key={`setting_sections`}
|
|
203
|
+
renderItem={renderSections}
|
|
204
|
+
keyExtractor={(item) => item}
|
|
205
|
+
/>
|
|
205
206
|
</View>
|
|
206
|
-
|
|
207
|
-
<View style={{ padding:20 }}>
|
|
207
|
+
<View type='footer' style={{ flexDirection:'row', alignItems:'center', padding:20 }}>
|
|
208
208
|
<Button
|
|
209
209
|
title='BACK'
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
borderColor={Colors.brand.electric}
|
|
213
|
-
padding={15}
|
|
210
|
+
type='close'
|
|
211
|
+
style={{ flex:1 }}
|
|
214
212
|
onPress={() => onClose()}
|
|
215
213
|
/>
|
|
216
214
|
</View>
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Image, Keyboard, Linking, TouchableWithoutFeedback } from "react-native";
|
|
3
3
|
import type { MyPlayerProps, WalletSettingsProps } from '../../types';
|
|
4
|
-
import {
|
|
5
|
-
import Colors from '../../constants/colors';
|
|
4
|
+
import { Checkbox, Icons } from '../../Components';
|
|
6
5
|
import { WalletApi } from '../api';
|
|
7
6
|
import moment from 'moment-mini';
|
|
8
7
|
import { button_styles } from '../../constants/styles';
|
|
8
|
+
import { useColors } from '../../constants/useColors';
|
|
9
|
+
import { Button, Text, TextInput, View } from '../../Components/Themed';
|
|
9
10
|
|
|
10
11
|
type WalletSetupProps = {
|
|
11
12
|
player: MyPlayerProps,
|
|
@@ -16,6 +17,7 @@ type WalletSetupProps = {
|
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
const WalletSetup = ({ wallet_settings, onSettingsUpdate, onClose, onNext }:WalletSetupProps) => {
|
|
20
|
+
const Colors = useColors();
|
|
19
21
|
const [ terms_agreed, setTermsAgreed ] = useState(false);
|
|
20
22
|
const [ auth_error, setAuthError ] = useState<string>();
|
|
21
23
|
const [ pin_view, setPinView ] = useState<'set'|'confirm'>('set');
|
|
@@ -52,23 +54,24 @@ const WalletSetup = ({ wallet_settings, onSettingsUpdate, onClose, onNext }:Wall
|
|
|
52
54
|
const auth_required = wallet_settings.auth_end_datetime && moment().isAfter(wallet_settings.auth_end_datetime) ? true : false
|
|
53
55
|
|
|
54
56
|
return (
|
|
57
|
+
<TouchableWithoutFeedback style={{ flex:1 }} onPress={() => Keyboard.dismiss()}>
|
|
55
58
|
<View style={{ flex:1 }}>
|
|
56
59
|
<View style={{ padding:20 }}>
|
|
57
|
-
<Text size={26}
|
|
60
|
+
<Text size={26} theme='h1'>MY WALLET</Text>
|
|
58
61
|
{onNext ?
|
|
59
|
-
<Text style={{ marginTop:10 }} size={16}
|
|
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>
|
|
60
63
|
:!wallet_settings.agreed_to_terms ?
|
|
61
|
-
<Text style={{ marginTop:10 }} size={16}
|
|
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>
|
|
62
65
|
:
|
|
63
|
-
<Text style={{ marginTop:10 }} size={16}
|
|
66
|
+
<Text style={{ marginTop:10 }} size={16} theme='description'>Welcome to your wallet. Please enter your security pin to continue!</Text>
|
|
64
67
|
}
|
|
65
68
|
</View>
|
|
66
|
-
<
|
|
69
|
+
<View style={{ flex:1 }}>
|
|
67
70
|
{!wallet_settings.agreed_to_terms ?
|
|
68
71
|
<View style={{ flex:1, padding:20 }}>
|
|
69
72
|
<View>
|
|
70
|
-
<Text size={20}
|
|
71
|
-
<Text style={{ marginTop:5 }} size={26}
|
|
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>
|
|
72
75
|
</View>
|
|
73
76
|
<View style={{ justifyContent:'center', alignItems:'center' }}>
|
|
74
77
|
<Image
|
|
@@ -78,21 +81,21 @@ const WalletSetup = ({ wallet_settings, onSettingsUpdate, onClose, onNext }:Wall
|
|
|
78
81
|
/>
|
|
79
82
|
|
|
80
83
|
</View>
|
|
81
|
-
<
|
|
82
|
-
<Text size={14}
|
|
83
|
-
</
|
|
84
|
-
<
|
|
85
|
-
style={{ marginTop:15, flexDirection:'row', alignItems:'center',
|
|
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 }}
|
|
86
89
|
onPress={() => setTermsAgreed(!terms_agreed)}>
|
|
87
|
-
<Text style={{ flex:1 }} size={16}
|
|
90
|
+
<Text style={{ flex:1 }} size={16} theme='description'>I have read and agree to the terms</Text>
|
|
88
91
|
<Checkbox size={30} checked={terms_agreed} disabled onSelect={() => console.log('')}/>
|
|
89
|
-
</
|
|
92
|
+
</Button>
|
|
90
93
|
</View>
|
|
91
94
|
: !wallet_settings.pin ?
|
|
92
95
|
<View style={{ flex:1, padding:20 }}>
|
|
93
96
|
<View>
|
|
94
|
-
<Text size={20}
|
|
95
|
-
<Text style={{ marginTop:5 }} size={26}
|
|
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>
|
|
96
99
|
</View>
|
|
97
100
|
<View style={{ justifyContent:'center', alignItems:'center' }}>
|
|
98
101
|
<Image
|
|
@@ -102,13 +105,12 @@ const WalletSetup = ({ wallet_settings, onSettingsUpdate, onClose, onNext }:Wall
|
|
|
102
105
|
/>
|
|
103
106
|
</View>
|
|
104
107
|
<View style={{ marginBottom:15 }}>
|
|
105
|
-
<Text size={14}
|
|
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>
|
|
106
109
|
</View>
|
|
107
110
|
{pin_view == 'set' ?
|
|
108
111
|
<TextInput
|
|
109
112
|
style={{ width:200, alignSelf:'center' }}
|
|
110
113
|
placeholder='HARDPIN'
|
|
111
|
-
placeholderTextColor={Colors.brand.slate}
|
|
112
114
|
value={pin}
|
|
113
115
|
onChangeText={(text) => setPinSettings({ ...pin_settings, pin: text })}
|
|
114
116
|
/>
|
|
@@ -117,7 +119,6 @@ const WalletSetup = ({ wallet_settings, onSettingsUpdate, onClose, onNext }:Wall
|
|
|
117
119
|
<TextInput
|
|
118
120
|
style={{ width:200, alignSelf:'center' }}
|
|
119
121
|
placeholder='RE-Enter PIN'
|
|
120
|
-
placeholderTextColor={Colors.brand.slate}
|
|
121
122
|
value={confirm_pin}
|
|
122
123
|
onChangeText={(text) => setPinSettings({ ...pin_settings, confirm_pin: text })}
|
|
123
124
|
/>
|
|
@@ -128,8 +129,8 @@ const WalletSetup = ({ wallet_settings, onSettingsUpdate, onClose, onNext }:Wall
|
|
|
128
129
|
:auth_required ?
|
|
129
130
|
<View style={{ flex:1, padding:20 }}>
|
|
130
131
|
<View>
|
|
131
|
-
<Text size={20}
|
|
132
|
-
<Text style={{ marginTop:5 }} size={26}
|
|
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>
|
|
133
134
|
</View>
|
|
134
135
|
<View style={{ justifyContent:'center', alignItems:'center' }}>
|
|
135
136
|
<Image
|
|
@@ -139,19 +140,18 @@ const WalletSetup = ({ wallet_settings, onSettingsUpdate, onClose, onNext }:Wall
|
|
|
139
140
|
/>
|
|
140
141
|
</View>
|
|
141
142
|
<View style={{ marginBottom:15 }}>
|
|
142
|
-
<Text size={14}
|
|
143
|
+
<Text size={14} theme='description'>Before you can continue to your wallet. Please enter your security pin.</Text>
|
|
143
144
|
</View>
|
|
144
145
|
|
|
145
146
|
<TextInput
|
|
146
147
|
style={{ width:200, alignSelf:'center' }}
|
|
147
148
|
placeholder='ENTER PIN'
|
|
148
|
-
placeholderTextColor={Colors.brand.slate}
|
|
149
149
|
value={pin}
|
|
150
150
|
onChangeText={(text) => setPinSettings({ ...pin_settings, pin: text })}
|
|
151
151
|
/>
|
|
152
152
|
{auth_error ?
|
|
153
153
|
<View style={{ padding:10 }}>
|
|
154
|
-
<Text size={14} color={Colors.
|
|
154
|
+
<Text size={14} color={Colors.text.warning} weight='bold' textAlign='center'>{auth_error}</Text>
|
|
155
155
|
</View>
|
|
156
156
|
:<></>}
|
|
157
157
|
</View>
|
|
@@ -165,29 +165,26 @@ const WalletSetup = ({ wallet_settings, onSettingsUpdate, onClose, onNext }:Wall
|
|
|
165
165
|
/>
|
|
166
166
|
</View>
|
|
167
167
|
<View style={{ margin:15, borderRadius:8, padding:10 }}>
|
|
168
|
-
<Text size={18}
|
|
169
|
-
<Text style={{ marginTop:5 }} size={14}
|
|
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
170
|
</View>
|
|
171
171
|
</View>
|
|
172
172
|
}
|
|
173
|
-
</
|
|
173
|
+
</View>
|
|
174
174
|
<View style={{ flexDirection:'row', padding:20 }}>
|
|
175
175
|
{!wallet_settings.agreed_to_terms && onClose ?
|
|
176
176
|
<View style={{ flex:1, flexDirection:'row' }}>
|
|
177
177
|
<Button
|
|
178
178
|
title='EXIT SETUP'
|
|
179
179
|
style={{ flex:1, marginRight:5 }}
|
|
180
|
-
|
|
181
|
-
backgroundColor='transparent'
|
|
180
|
+
type='error'
|
|
182
181
|
onPress={() => onClose()}
|
|
183
182
|
/>
|
|
184
183
|
<Button
|
|
185
184
|
title='I AGREE'
|
|
186
185
|
style={{ flex:3, opacity:terms_agreed?1:0.5 }}
|
|
187
186
|
disabled={!terms_agreed}
|
|
188
|
-
|
|
189
|
-
title_color={Colors.shades.white}
|
|
190
|
-
padding={15}
|
|
187
|
+
type='success'
|
|
191
188
|
onPress={() => handleAgreeTerms()}
|
|
192
189
|
/>
|
|
193
190
|
</View>
|
|
@@ -196,9 +193,7 @@ const WalletSetup = ({ wallet_settings, onSettingsUpdate, onClose, onNext }:Wall
|
|
|
196
193
|
title='CONFIRM PIN'
|
|
197
194
|
style={{ flex:3, opacity:pin_valid?1:0.5 }}
|
|
198
195
|
disabled={!pin_valid}
|
|
199
|
-
|
|
200
|
-
title_color={Colors.shades.white}
|
|
201
|
-
padding={15}
|
|
196
|
+
type='success'
|
|
202
197
|
onPress={() => setPinView('confirm')}
|
|
203
198
|
/>
|
|
204
199
|
: !wallet_settings.pin && pin_view == 'confirm' ?
|
|
@@ -206,9 +201,7 @@ const WalletSetup = ({ wallet_settings, onSettingsUpdate, onClose, onNext }:Wall
|
|
|
206
201
|
title='LETS GO!'
|
|
207
202
|
style={{ flex:3, opacity:go_valid ? 1: 0.5}}
|
|
208
203
|
disabled={!go_valid}
|
|
209
|
-
|
|
210
|
-
title_color={Colors.shades.white}
|
|
211
|
-
padding={15}
|
|
204
|
+
type='success'
|
|
212
205
|
onPress={() => handleSetPin()}
|
|
213
206
|
/>
|
|
214
207
|
: auth_required ?
|
|
@@ -217,8 +210,7 @@ const WalletSetup = ({ wallet_settings, onSettingsUpdate, onClose, onNext }:Wall
|
|
|
217
210
|
<Button
|
|
218
211
|
style={{ flex:1, marginRight:5 }}
|
|
219
212
|
title='CLOSE'
|
|
220
|
-
|
|
221
|
-
backgroundColor='transparent'
|
|
213
|
+
type='close'
|
|
222
214
|
onPress={() => onClose()}
|
|
223
215
|
/>
|
|
224
216
|
:<></>}
|
|
@@ -226,9 +218,7 @@ const WalletSetup = ({ wallet_settings, onSettingsUpdate, onClose, onNext }:Wall
|
|
|
226
218
|
title='SUBMIT'
|
|
227
219
|
style={{ flex:3, opacity:pin_valid ? 1: 0.5}}
|
|
228
220
|
disabled={!pin_valid}
|
|
229
|
-
|
|
230
|
-
title_color={Colors.shades.white}
|
|
231
|
-
padding={15}
|
|
221
|
+
type='success'
|
|
232
222
|
onPress={() => handleAuthPin()}
|
|
233
223
|
/>
|
|
234
224
|
</View>
|
|
@@ -236,22 +226,22 @@ const WalletSetup = ({ wallet_settings, onSettingsUpdate, onClose, onNext }:Wall
|
|
|
236
226
|
<View style={{ flex:1, flexDirection:'row', alignItems:'center', justifyContent:'space-between' }}>
|
|
237
227
|
<Button
|
|
238
228
|
title='EXIT SETUP'
|
|
239
|
-
|
|
240
|
-
backgroundColor='transparent'
|
|
229
|
+
type='close'
|
|
241
230
|
onPress={() => onClose()}
|
|
242
231
|
/>
|
|
243
|
-
<
|
|
232
|
+
<Button
|
|
244
233
|
style={button_styles.wizard_valid}
|
|
245
234
|
onPress={() => onNext()}
|
|
246
235
|
//disabled={loading}
|
|
247
236
|
>
|
|
248
|
-
<Icons.ChevronIcon size={20} direction='right' color={Colors.
|
|
249
|
-
</
|
|
237
|
+
<Icons.ChevronIcon size={20} direction='right' color={Colors.text.h1}/>
|
|
238
|
+
</Button>
|
|
250
239
|
</View>
|
|
251
240
|
:<></>
|
|
252
241
|
}
|
|
253
242
|
</View>
|
|
254
243
|
</View>
|
|
244
|
+
</TouchableWithoutFeedback>
|
|
255
245
|
)
|
|
256
246
|
}
|
|
257
247
|
|