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.
Files changed (169) hide show
  1. package/lib/commonjs/Components/Pagination.js +37 -0
  2. package/lib/commonjs/Components/Pagination.js.map +1 -0
  3. package/lib/commonjs/ProfileManager/Components/VouchCard.js +3 -35
  4. package/lib/commonjs/ProfileManager/Components/VouchCard.js.map +1 -1
  5. package/lib/commonjs/Wallet/components/AccountCard.js +27 -28
  6. package/lib/commonjs/Wallet/components/AccountCard.js.map +1 -1
  7. package/lib/commonjs/Wallet/components/AccountLimitManager.js +60 -95
  8. package/lib/commonjs/Wallet/components/AccountLimitManager.js.map +1 -1
  9. package/lib/commonjs/Wallet/components/AccountManager.js +209 -158
  10. package/lib/commonjs/Wallet/components/AccountManager.js.map +1 -1
  11. package/lib/commonjs/Wallet/components/AccountSnoozeManager.js +53 -66
  12. package/lib/commonjs/Wallet/components/AccountSnoozeManager.js.map +1 -1
  13. package/lib/commonjs/Wallet/components/DepositCard.js +93 -99
  14. package/lib/commonjs/Wallet/components/DepositCard.js.map +1 -1
  15. package/lib/commonjs/Wallet/components/ItemOrderCard.js +26 -29
  16. package/lib/commonjs/Wallet/components/ItemOrderCard.js.map +1 -1
  17. package/lib/commonjs/Wallet/components/ItemOrderDetailCard.js +43 -46
  18. package/lib/commonjs/Wallet/components/ItemOrderDetailCard.js.map +1 -1
  19. package/lib/commonjs/Wallet/components/ManageAccountCard.js +85 -60
  20. package/lib/commonjs/Wallet/components/ManageAccountCard.js.map +1 -1
  21. package/lib/commonjs/Wallet/components/OrderManager.js +61 -58
  22. package/lib/commonjs/Wallet/components/OrderManager.js.map +1 -1
  23. package/lib/commonjs/Wallet/components/RemoveAccount.js +22 -23
  24. package/lib/commonjs/Wallet/components/RemoveAccount.js.map +1 -1
  25. package/lib/commonjs/Wallet/components/WalletActionSelector.js +130 -133
  26. package/lib/commonjs/Wallet/components/WalletActionSelector.js.map +1 -1
  27. package/lib/commonjs/Wallet/components/WalletSettings.js +382 -547
  28. package/lib/commonjs/Wallet/components/WalletSettings.js.map +1 -1
  29. package/lib/commonjs/Wallet/components/WalletSetup.js +85 -107
  30. package/lib/commonjs/Wallet/components/WalletSetup.js.map +1 -1
  31. package/lib/commonjs/Wallet/components/WithdrawCard.js +91 -111
  32. package/lib/commonjs/Wallet/components/WithdrawCard.js.map +1 -1
  33. package/lib/commonjs/Wallet/index.js +22 -24
  34. package/lib/commonjs/Wallet/index.js.map +1 -1
  35. package/lib/commonjs/constants/styles.js +1 -1
  36. package/lib/commonjs/constants/styles.js.map +1 -1
  37. package/lib/commonjs/constants/useColors.js +1 -1
  38. package/lib/commonjs/constants/useColors.js.map +1 -1
  39. package/lib/module/Components/Pagination.js +30 -0
  40. package/lib/module/Components/Pagination.js.map +1 -0
  41. package/lib/module/ProfileManager/Components/VouchCard.js +3 -35
  42. package/lib/module/ProfileManager/Components/VouchCard.js.map +1 -1
  43. package/lib/module/Wallet/components/AccountCard.js +23 -24
  44. package/lib/module/Wallet/components/AccountCard.js.map +1 -1
  45. package/lib/module/Wallet/components/AccountLimitManager.js +43 -77
  46. package/lib/module/Wallet/components/AccountLimitManager.js.map +1 -1
  47. package/lib/module/Wallet/components/AccountManager.js +206 -155
  48. package/lib/module/Wallet/components/AccountManager.js.map +1 -1
  49. package/lib/module/Wallet/components/AccountSnoozeManager.js +35 -48
  50. package/lib/module/Wallet/components/AccountSnoozeManager.js.map +1 -1
  51. package/lib/module/Wallet/components/DepositCard.js +62 -67
  52. package/lib/module/Wallet/components/DepositCard.js.map +1 -1
  53. package/lib/module/Wallet/components/ItemOrderCard.js +17 -20
  54. package/lib/module/Wallet/components/ItemOrderCard.js.map +1 -1
  55. package/lib/module/Wallet/components/ItemOrderDetailCard.js +28 -31
  56. package/lib/module/Wallet/components/ItemOrderDetailCard.js.map +1 -1
  57. package/lib/module/Wallet/components/ManageAccountCard.js +80 -55
  58. package/lib/module/Wallet/components/ManageAccountCard.js.map +1 -1
  59. package/lib/module/Wallet/components/OrderManager.js +59 -56
  60. package/lib/module/Wallet/components/OrderManager.js.map +1 -1
  61. package/lib/module/Wallet/components/RemoveAccount.js +16 -16
  62. package/lib/module/Wallet/components/RemoveAccount.js.map +1 -1
  63. package/lib/module/Wallet/components/WalletActionSelector.js +102 -104
  64. package/lib/module/Wallet/components/WalletActionSelector.js.map +1 -1
  65. package/lib/module/Wallet/components/WalletSettings.js +381 -545
  66. package/lib/module/Wallet/components/WalletSettings.js.map +1 -1
  67. package/lib/module/Wallet/components/WalletSetup.js +42 -64
  68. package/lib/module/Wallet/components/WalletSetup.js.map +1 -1
  69. package/lib/module/Wallet/components/WithdrawCard.js +52 -71
  70. package/lib/module/Wallet/components/WithdrawCard.js.map +1 -1
  71. package/lib/module/Wallet/index.js +15 -17
  72. package/lib/module/Wallet/index.js.map +1 -1
  73. package/lib/module/constants/styles.js +1 -1
  74. package/lib/module/constants/styles.js.map +1 -1
  75. package/lib/module/constants/useColors.js +1 -1
  76. package/lib/module/constants/useColors.js.map +1 -1
  77. package/lib/typescript/lib/commonjs/Components/Pagination.d.ts +11 -0
  78. package/lib/typescript/lib/commonjs/Components/Pagination.d.ts.map +1 -0
  79. package/lib/typescript/lib/commonjs/ProfileManager/Components/VouchCard.d.ts.map +1 -1
  80. package/lib/typescript/lib/commonjs/Wallet/components/AccountCard.d.ts.map +1 -1
  81. package/lib/typescript/lib/commonjs/Wallet/components/AccountLimitManager.d.ts.map +1 -1
  82. package/lib/typescript/lib/commonjs/Wallet/components/AccountManager.d.ts.map +1 -1
  83. package/lib/typescript/lib/commonjs/Wallet/components/AccountSnoozeManager.d.ts.map +1 -1
  84. package/lib/typescript/lib/commonjs/Wallet/components/DepositCard.d.ts.map +1 -1
  85. package/lib/typescript/lib/commonjs/Wallet/components/ItemOrderCard.d.ts.map +1 -1
  86. package/lib/typescript/lib/commonjs/Wallet/components/ItemOrderDetailCard.d.ts.map +1 -1
  87. package/lib/typescript/lib/commonjs/Wallet/components/ManageAccountCard.d.ts.map +1 -1
  88. package/lib/typescript/lib/commonjs/Wallet/components/OrderManager.d.ts.map +1 -1
  89. package/lib/typescript/lib/commonjs/Wallet/components/RemoveAccount.d.ts.map +1 -1
  90. package/lib/typescript/lib/commonjs/Wallet/components/WalletActionSelector.d.ts.map +1 -1
  91. package/lib/typescript/lib/commonjs/Wallet/components/WalletSettings.d.ts +1 -2
  92. package/lib/typescript/lib/commonjs/Wallet/components/WalletSettings.d.ts.map +1 -1
  93. package/lib/typescript/lib/commonjs/Wallet/components/WalletSetup.d.ts.map +1 -1
  94. package/lib/typescript/lib/commonjs/Wallet/components/WithdrawCard.d.ts.map +1 -1
  95. package/lib/typescript/lib/commonjs/Wallet/index.d.ts.map +1 -1
  96. package/lib/typescript/lib/commonjs/constants/styles.d.ts +1 -1
  97. package/lib/typescript/lib/module/Components/Pagination.d.ts +11 -0
  98. package/lib/typescript/lib/module/Components/Pagination.d.ts.map +1 -0
  99. package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts +3 -1
  100. package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts.map +1 -1
  101. package/lib/typescript/lib/module/Wallet/components/AccountCard.d.ts +1 -2
  102. package/lib/typescript/lib/module/Wallet/components/AccountCard.d.ts.map +1 -1
  103. package/lib/typescript/lib/module/Wallet/components/AccountLimitManager.d.ts +1 -2
  104. package/lib/typescript/lib/module/Wallet/components/AccountLimitManager.d.ts.map +1 -1
  105. package/lib/typescript/lib/module/Wallet/components/AccountManager.d.ts +1 -2
  106. package/lib/typescript/lib/module/Wallet/components/AccountManager.d.ts.map +1 -1
  107. package/lib/typescript/lib/module/Wallet/components/AccountSnoozeManager.d.ts +1 -2
  108. package/lib/typescript/lib/module/Wallet/components/AccountSnoozeManager.d.ts.map +1 -1
  109. package/lib/typescript/lib/module/Wallet/components/DepositCard.d.ts +2 -2
  110. package/lib/typescript/lib/module/Wallet/components/DepositCard.d.ts.map +1 -1
  111. package/lib/typescript/lib/module/Wallet/components/ItemOrderCard.d.ts +1 -2
  112. package/lib/typescript/lib/module/Wallet/components/ItemOrderCard.d.ts.map +1 -1
  113. package/lib/typescript/lib/module/Wallet/components/ItemOrderDetailCard.d.ts +1 -2
  114. package/lib/typescript/lib/module/Wallet/components/ItemOrderDetailCard.d.ts.map +1 -1
  115. package/lib/typescript/lib/module/Wallet/components/ManageAccountCard.d.ts +1 -2
  116. package/lib/typescript/lib/module/Wallet/components/ManageAccountCard.d.ts.map +1 -1
  117. package/lib/typescript/lib/module/Wallet/components/OrderManager.d.ts +1 -2
  118. package/lib/typescript/lib/module/Wallet/components/OrderManager.d.ts.map +1 -1
  119. package/lib/typescript/lib/module/Wallet/components/RemoveAccount.d.ts +1 -2
  120. package/lib/typescript/lib/module/Wallet/components/RemoveAccount.d.ts.map +1 -1
  121. package/lib/typescript/lib/module/Wallet/components/WalletActionSelector.d.ts +1 -2
  122. package/lib/typescript/lib/module/Wallet/components/WalletActionSelector.d.ts.map +1 -1
  123. package/lib/typescript/lib/module/Wallet/components/WalletSettings.d.ts +2 -4
  124. package/lib/typescript/lib/module/Wallet/components/WalletSettings.d.ts.map +1 -1
  125. package/lib/typescript/lib/module/Wallet/components/WalletSetup.d.ts +2 -2
  126. package/lib/typescript/lib/module/Wallet/components/WalletSetup.d.ts.map +1 -1
  127. package/lib/typescript/lib/module/Wallet/components/WithdrawCard.d.ts +2 -2
  128. package/lib/typescript/lib/module/Wallet/components/WithdrawCard.d.ts.map +1 -1
  129. package/lib/typescript/lib/module/Wallet/index.d.ts +1 -2
  130. package/lib/typescript/lib/module/Wallet/index.d.ts.map +1 -1
  131. package/lib/typescript/src/Components/Pagination.d.ts +12 -0
  132. package/lib/typescript/src/Components/Pagination.d.ts.map +1 -0
  133. package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts.map +1 -1
  134. package/lib/typescript/src/Wallet/components/AccountCard.d.ts.map +1 -1
  135. package/lib/typescript/src/Wallet/components/AccountLimitManager.d.ts.map +1 -1
  136. package/lib/typescript/src/Wallet/components/AccountManager.d.ts.map +1 -1
  137. package/lib/typescript/src/Wallet/components/AccountSnoozeManager.d.ts.map +1 -1
  138. package/lib/typescript/src/Wallet/components/DepositCard.d.ts.map +1 -1
  139. package/lib/typescript/src/Wallet/components/ItemOrderCard.d.ts.map +1 -1
  140. package/lib/typescript/src/Wallet/components/ItemOrderDetailCard.d.ts.map +1 -1
  141. package/lib/typescript/src/Wallet/components/ManageAccountCard.d.ts.map +1 -1
  142. package/lib/typescript/src/Wallet/components/OrderManager.d.ts.map +1 -1
  143. package/lib/typescript/src/Wallet/components/RemoveAccount.d.ts.map +1 -1
  144. package/lib/typescript/src/Wallet/components/WalletActionSelector.d.ts.map +1 -1
  145. package/lib/typescript/src/Wallet/components/WalletSettings.d.ts +1 -1
  146. package/lib/typescript/src/Wallet/components/WalletSettings.d.ts.map +1 -1
  147. package/lib/typescript/src/Wallet/components/WalletSetup.d.ts.map +1 -1
  148. package/lib/typescript/src/Wallet/components/WithdrawCard.d.ts.map +1 -1
  149. package/lib/typescript/src/Wallet/index.d.ts.map +1 -1
  150. package/package.json +1 -2
  151. package/src/Components/Pagination.tsx +33 -0
  152. package/src/ProfileManager/Components/VouchCard.tsx +3 -27
  153. package/src/Wallet/components/AccountCard.tsx +22 -21
  154. package/src/Wallet/components/AccountLimitManager.tsx +36 -54
  155. package/src/Wallet/components/AccountManager.tsx +95 -61
  156. package/src/Wallet/components/AccountSnoozeManager.tsx +39 -37
  157. package/src/Wallet/components/DepositCard.tsx +55 -53
  158. package/src/Wallet/components/ItemOrderCard.tsx +13 -12
  159. package/src/Wallet/components/ItemOrderDetailCard.tsx +23 -22
  160. package/src/Wallet/components/ManageAccountCard.tsx +78 -47
  161. package/src/Wallet/components/OrderManager.tsx +47 -37
  162. package/src/Wallet/components/RemoveAccount.tsx +12 -15
  163. package/src/Wallet/components/WalletActionSelector.tsx +70 -69
  164. package/src/Wallet/components/WalletSettings.tsx +137 -139
  165. package/src/Wallet/components/WalletSetup.tsx +41 -51
  166. package/src/Wallet/components/WithdrawCard.tsx +56 -56
  167. package/src/Wallet/index.tsx +16 -15
  168. package/src/constants/styles.ts +1 -1
  169. 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 { View, TouchableOpacity, ScrollView } from 'react-native';
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 WalletSettings = ({ player, my_referral, deposit_limit, withdraw_limit, onPremium, onClose }:BEWalletProps) => {
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
- if(!player){ return <></> }
32
- return (
33
- <View style={{ flex:1 }}>
34
- <View style={{ padding:20 }}>
35
- <Text size={26} color={Colors.brand.midnight} weight='bold'>WALLET SETTINGS</Text>
36
- <Text style={{ marginTop:10 }} size={16} color={Colors.brand.midnight} weight='regular'>Below are your overall wallet settings & configurations. These are set based on account type and past transaction history.</Text>
37
- </View>
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
- <View style={{ padding:10 }}>
68
-
69
- <View style={{ flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.shades.shade100 }}>
70
- <View style={{ flex:1 }}>
71
- <Text size={14} color={Colors.brand.midnight} weight='semibold'>ACH Daily Limit</Text>
72
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>The maximum deposit amount allowed per day from an ACH account</Text>
73
- </View>
74
- <View style={{ backgroundColor:Colors.shades.shade100, padding:10, marginLeft:10, borderRadius:8 }}>
75
- <Text size={14} color={Colors.brand.midnight} weight="bold">${deposit_limit.ach_daily_limit}</Text>
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={{ marginTop:10, flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.shades.shade100 }}>
79
- <View style={{ flex:1 }}>
80
- <Text size={14} color={Colors.brand.midnight} weight='semibold'>Card / Paypal Daily Limit</Text>
81
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>The maximum deposit amount allowed per day from a card account</Text>
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={{ backgroundColor:Colors.shades.shade100, padding:10, marginLeft:10, borderRadius:8 }}>
84
- <Text size={14} color={Colors.brand.midnight} weight="bold">${deposit_limit.card_daily_limit}</Text>
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
- </View>
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 size={14} color={Colors.brand.midnight} weight='semibold'>Instant Deposit Limit</Text>
90
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>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>
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 style={{ backgroundColor:Colors.shades.shade100, padding:10, marginLeft:10, borderRadius:8 }}>
93
- <Text size={14} color={Colors.brand.midnight} weight="bold">${deposit_limit.instant_limit}</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.shades.shade100 }}>
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 size={14} color={Colors.brand.midnight} weight='semibold'>Hold Days</Text>
99
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>The number of days a deposit transaction will be held (not settled) before it can be withdrawn</Text>
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 style={{ backgroundColor:Colors.shades.shade100, padding:10, marginLeft:10, borderRadius:8 }}>
102
- <Text size={14} color={Colors.brand.midnight} weight="bold">{deposit_limit.hold_days}</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.shades.shade100 }}>
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 size={14} color={Colors.brand.midnight} weight='semibold'>Instant Deposit Available</Text>
108
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>Your instant deposit limit minus your unsettled deposits</Text>
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 style={{ backgroundColor:Colors.shades.shade100, padding:10, marginLeft:10, borderRadius:8 }}>
111
- <Text size={14} color={deposit_limit.instant_available > 0 ? Colors.utility.success : Colors.utility.error} weight="bold">${deposit_limit.instant_available.toFixed(2)}</Text>
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
- </View>
118
- :active_tab == 'withdraw' ?
119
- <View>
120
- {withdraw_limit ?
116
+ )
117
+ case 'withdraw':
118
+ if(active_tab != 'withdraw' || !withdraw_limit){ return <></> }
119
+ return (
121
120
  <View nativeID="withdraw_settings">
122
- <View style={{ backgroundColor:Colors.shades.shade100, padding:10 }}>
123
- <Text size={14} color={Colors.brand.midnight} weight='semibold'>Withdraw Settings</Text>
124
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>Below are your current withdraw settings and limits. These may change based on historical transaction results.</Text>
125
- </View>
126
- <View style={{ padding:10 }}>
127
- <View style={{ flexDirection:'row', alignItems:'flex-start', padding:5, borderBottomWidth:1, borderColor:Colors.shades.shade100 }}>
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 size={14} color={Colors.brand.midnight} weight='semibold'>Weekly Withdraw Transaction Limit</Text>
130
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>The number of withdraws allowed per rolling week.</Text>
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 style={{ backgroundColor:Colors.shades.shade100, padding:10, marginLeft:10, borderRadius:8 }}>
133
- <Text size={14} color={Colors.brand.midnight} weight="bold">{withdraw_limit.withdraws_per_week}</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.shades.shade100 }}>
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 size={14} color={Colors.brand.midnight} weight='semibold'>Withdraws Remaining</Text>
140
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>Withdraw transaction limit minus the number of withdraws already processed in the last 7 days</Text>
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 style={{ backgroundColor:Colors.shades.shade100, padding:10, marginLeft:10, borderRadius:8 }}>
143
- <Text size={14} color={Colors.brand.midnight} weight="bold">{withdraw_limit.withdraws_per_week - withdraw_limit.week_withdraw_count}</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.shades.shade100 }}>
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 size={14} color={Colors.brand.midnight} weight='semibold'>ACH Withdraw Daily Limit</Text>
150
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>Maximum amount of withdraws that can be made per rolling 24 hours to an ACH account.</Text>
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 style={{ backgroundColor:Colors.shades.shade100, padding:10, marginLeft:10, borderRadius:8 }}>
153
- <Text size={14} color={Colors.brand.midnight} weight="bold">{withdraw_limit.ach_daily_limit}</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.shades.shade100 }}>
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 size={14} color={Colors.brand.midnight} weight='semibold'>Card Withdraw Daily Limit</Text>
159
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>Maximum amount of withdraws that can be made per rolling 24 hours to a card account.</Text>
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 style={{ backgroundColor:Colors.shades.shade100, padding:10, marginLeft:10, borderRadius:8 }}>
162
- <Text size={14} color={Colors.brand.midnight} weight="bold">{withdraw_limit.card_daily_limit}</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
- </View>
169
- :active_tab == 'referral' ?
170
- <View>
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={{ backgroundColor:Colors.shades.shade100, padding:10 }}>
174
- <Text size={14} color={Colors.brand.midnight} weight='semibold'>Referral Settings</Text>
175
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>Below are your current referral settings. Share your code with others to earn cash from referrals.</Text>
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
- {false ?
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 size={14} color={Colors.brand.midnight} weight='semibold'>My Referral Code</Text>
187
- <Text style={{ marginTop:5 }} size={12} color={Colors.brand.midnight} weight='regular'>{WalletHelpers.getReferralDescription(promo)}</Text>
182
+ <Text theme="h2">My Referral Code</Text>
183
+ <Text style={{ marginTop:5 }} theme="description">{WalletHelpers.getReferralDescription(promo)}</Text>
188
184
  </View>
189
- <View style={{ backgroundColor:Colors.shades.shade100, padding:10, marginLeft:10, borderRadius:8 }}>
190
- <Text size={14} color={Colors.brand.midnight} weight="bold">{player_referral.referral_code}</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
- </View>
197
- :<></>}
198
- </ScrollView>
199
- {false && player?.type == 'freemium' ?
200
- <View style={{ backgroundColor:Colors.shades.shade600, borderRadius:8, padding:10, margin:10 }}>
201
- <Text size={14} color={Colors.brand.midnight} weight='semibold' textAlign="center">Want better limits and higher referral awards?</Text>
202
- <TouchableOpacity style={{ marginTop:5, borderRadius:8, backgroundColor:Colors.incentive.gold, padding:15 }} onPress={() => {if(onPremium){ return onPremium() }}}>
203
- <Text size={14} color={Colors.shades.white} weight='bold' textAlign="center">VIEW PREMIUM</Text>
204
- </TouchableOpacity>
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
- title_color={Colors.brand.electric}
211
- borderWidth={1}
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 { View, Image, TouchableOpacity, Linking, ScrollView } from "react-native";
2
+ import { Image, Keyboard, Linking, TouchableWithoutFeedback } from "react-native";
3
3
  import type { MyPlayerProps, WalletSettingsProps } from '../../types';
4
- import { Button, Checkbox, Icons, Text, TextInput } from '../../Components';
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} color={Colors.brand.midnight} weight='bold'>MY WALLET</Text>
60
+ <Text size={26} theme='h1'>MY WALLET</Text>
58
61
  {onNext ?
59
- <Text style={{ marginTop:10 }} size={16} color={Colors.brand.midnight} weight='regular'>Welcome to your wallet. Go through the wizard to get set up to deposit and withdraw!</Text>
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} color={Colors.brand.midnight} weight='regular'>Welcome to your wallet. This is where your sensitive account details are kept. Please review our terms and conditions!</Text>
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} color={Colors.brand.midnight} weight='regular'>Welcome to your wallet. Please enter your security pin to continue!</Text>
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
- <ScrollView style={{ flex:1 }}>
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} color={Colors.brand.slate} weight='semibold' textAlign='center'>BettorEdge Wallet</Text>
71
- <Text style={{ marginTop:5 }} size={26} color={Colors.brand.midnight} weight='bold' textAlign='center'>Terms and Conditions</Text>
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
- <TouchableOpacity onPress={() => Linking.openURL('https://www.bettoredge.com/wallet-terms-of-use')}>
82
- <Text size={14} color={Colors.brand.midnight} textAlign='center'>Press here to review our <Text size={14} color={Colors.brand.electric} weight='bold'>Wallet Terms of Use</Text>. To continue setting up your wallet please review and agree to the terms.</Text>
83
- </TouchableOpacity>
84
- <TouchableOpacity
85
- style={{ marginTop:15, flexDirection:'row', alignItems:'center', backgroundColor:Colors.highlights.highlight400Faded, padding:20, borderRadius:8 }}
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} color={Colors.brand.midnight}>I have read and agree to the terms</Text>
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
- </TouchableOpacity>
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} color={Colors.brand.slate} weight='semibold' textAlign='center'>BettorEdge Wallet</Text>
95
- <Text style={{ marginTop:5 }} size={26} color={Colors.brand.midnight} weight='bold' textAlign='center'>{pin_view == 'set' ? 'Set' : 'Confirm'} Security PIN</Text>
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} color={Colors.brand.midnight} 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>
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} color={Colors.brand.slate} weight='semibold' textAlign='center'>BettorEdge Wallet</Text>
132
- <Text style={{ marginTop:5 }} size={26} color={Colors.brand.midnight} weight='bold' textAlign='center'>Enter Security PIN</Text>
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} color={Colors.brand.midnight} textAlign='center'>Before you can continue to your wallet. Please enter your security pin.</Text>
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.utility.warning} weight='bold' textAlign='center'>{auth_error}</Text>
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} color={Colors.brand.midnight} weight='bold' textAlign='center'>WALLET SECURED!</Text>
169
- <Text style={{ marginTop:5 }} size={14} color={Colors.brand.midnight} textAlign='center'>Select next to continue your wallet set up by adding a transaction account.</Text>
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
- </ScrollView>
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
- title_color={Colors.utility.error}
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
- backgroundColor={Colors.brand.electric}
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
- backgroundColor={Colors.utility.success}
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
- backgroundColor={Colors.utility.success}
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
- title_color={Colors.utility.error}
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
- backgroundColor={Colors.utility.success}
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
- title_color={Colors.utility.error}
240
- backgroundColor='transparent'
229
+ type='close'
241
230
  onPress={() => onClose()}
242
231
  />
243
- <TouchableOpacity
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.brand.midnight}/>
249
- </TouchableOpacity>
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