be-components 0.3.3 → 0.3.5
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/ApiOverrides/index.js +31 -7
- package/lib/commonjs/ApiOverrides/index.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/LoginForm.js +1 -1
- package/lib/commonjs/Authenticator/index.js.map +1 -1
- package/lib/commonjs/Components/Icons.js +50 -0
- package/lib/commonjs/Components/Icons.js.map +1 -1
- package/lib/commonjs/Components/ImageUploader.js +10 -1
- package/lib/commonjs/Components/ImageUploader.js.map +1 -1
- package/lib/commonjs/Components/LinearDiagnal.js +82 -0
- package/lib/commonjs/Components/LinearDiagnal.js.map +1 -0
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js +81 -32
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicStatus.js +128 -20
- package/lib/commonjs/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js +80 -57
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/DOBManager.js +55 -33
- package/lib/commonjs/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/EmailManager.js +69 -34
- package/lib/commonjs/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js +47 -25
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js +70 -35
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js +45 -29
- package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js +59 -17
- package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js +140 -52
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js +25 -3
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/VouchCard.js +121 -36
- package/lib/commonjs/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/commonjs/ProfileManager/api/index.js +1 -1
- package/lib/commonjs/ProfileManager/index.js +3 -1
- package/lib/commonjs/ProfileManager/index.js.map +1 -1
- package/lib/commonjs/constants/styles.js +21 -1
- package/lib/commonjs/constants/styles.js.map +1 -1
- package/lib/module/ApiOverrides/index.js +31 -7
- package/lib/module/ApiOverrides/index.js.map +1 -1
- package/lib/module/Authenticator/Components/LoginForm.js +1 -1
- package/lib/module/Authenticator/index.js.map +1 -1
- package/lib/module/Components/Icons.js +50 -0
- package/lib/module/Components/Icons.js.map +1 -1
- package/lib/module/Components/ImageUploader.js +10 -1
- package/lib/module/Components/ImageUploader.js.map +1 -1
- package/lib/module/Components/LinearDiagnal.js +74 -0
- package/lib/module/Components/LinearDiagnal.js.map +1 -0
- package/lib/module/ProfileManager/Components/BasicInfoManager.js +82 -33
- package/lib/module/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/BasicStatus.js +129 -21
- package/lib/module/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/module/ProfileManager/Components/CodeRedeem.js +80 -57
- package/lib/module/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/module/ProfileManager/Components/DOBManager.js +56 -34
- package/lib/module/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/EmailManager.js +71 -36
- package/lib/module/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PasswordManager.js +48 -26
- package/lib/module/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PhoneManager.js +72 -37
- package/lib/module/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfilePicManager.js +45 -31
- package/lib/module/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWelcome.js +60 -18
- package/lib/module/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWizard.js +140 -52
- package/lib/module/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/module/ProfileManager/Components/SettingsManager.js +25 -3
- package/lib/module/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/VouchCard.js +122 -37
- package/lib/module/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/module/ProfileManager/api/index.js +1 -1
- package/lib/module/ProfileManager/index.js +3 -1
- package/lib/module/ProfileManager/index.js.map +1 -1
- package/lib/module/constants/styles.js +20 -0
- package/lib/module/constants/styles.js.map +1 -1
- package/lib/typescript/src/ApiOverrides/index.d.ts +5 -2
- package/lib/typescript/src/ApiOverrides/index.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/src/Components/Icons.d.ts +1 -0
- package/lib/typescript/src/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/src/Components/ImageUploader.d.ts +1 -1
- package/lib/typescript/src/Components/ImageUploader.d.ts.map +1 -1
- package/lib/typescript/src/Components/LinearDiagnal.d.ts +14 -0
- package/lib/typescript/src/Components/LinearDiagnal.d.ts.map +1 -0
- package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/BasicStatus.d.ts +9 -2
- package/lib/typescript/src/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfileWelcome.d.ts +9 -2
- package/lib/typescript/src/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts +3 -1
- package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts +3 -2
- package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts +11 -2
- package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/index.d.ts +5 -2
- package/lib/typescript/src/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/src/constants/styles.d.ts +26 -0
- package/lib/typescript/src/constants/styles.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/ApiOverrides/index.ts +31 -11
- package/src/Authenticator/Components/LoginForm.tsx +1 -1
- package/src/Authenticator/index.tsx +0 -1
- package/src/Components/Icons.tsx +21 -0
- package/src/Components/ImageUploader.tsx +4 -3
- package/src/Components/LinearDiagnal.tsx +52 -0
- package/src/ProfileManager/Components/BasicInfoManager.tsx +110 -76
- package/src/ProfileManager/Components/BasicStatus.tsx +77 -23
- package/src/ProfileManager/Components/CodeRedeem.tsx +42 -35
- package/src/ProfileManager/Components/DOBManager.tsx +46 -28
- package/src/ProfileManager/Components/EmailManager.tsx +48 -33
- package/src/ProfileManager/Components/PasswordManager.tsx +36 -18
- package/src/ProfileManager/Components/PhoneManager.tsx +82 -66
- package/src/ProfileManager/Components/ProfilePicManager.tsx +38 -23
- package/src/ProfileManager/Components/ProfileWelcome.tsx +33 -14
- package/src/ProfileManager/Components/ProfileWizard.tsx +125 -43
- package/src/ProfileManager/Components/SettingsManager.tsx +14 -6
- package/src/ProfileManager/Components/VouchCard.tsx +77 -27
- package/src/ProfileManager/api/index.ts +1 -1
- package/src/ProfileManager/index.tsx +7 -3
- package/src/constants/styles.ts +9 -0
|
@@ -2,28 +2,51 @@ import React, { useEffect, useState } from 'react';
|
|
|
2
2
|
import { View, Platform, TouchableOpacity, Image, ScrollView } from 'react-native';
|
|
3
3
|
import { Button, Icons, Text } from '../../Components';
|
|
4
4
|
import Colors from '../../constants/colors';
|
|
5
|
-
import type { MyPlayerProps } from '../api/types';
|
|
6
|
-
import { ProfileApi } from '../api';
|
|
5
|
+
import type { CodeRequestProps, MyPlayerProps, PlayerReferralProps, PromoProps } from '../api/types';
|
|
6
|
+
import { ProfileApi, ProfileHelpers } from '../api';
|
|
7
7
|
import moment from 'moment-mini';
|
|
8
|
+
import type { PublicPlayerProps } from '../../types';
|
|
9
|
+
import { view_styles } from '../../constants/styles';
|
|
8
10
|
|
|
9
11
|
type VouchCardProps = {
|
|
10
12
|
player:MyPlayerProps,
|
|
13
|
+
walkthrough?:boolean,
|
|
14
|
+
code_details: {
|
|
15
|
+
code_request?:CodeRequestProps,
|
|
16
|
+
referrer?:PublicPlayerProps,
|
|
17
|
+
promo?:PromoProps,
|
|
18
|
+
player_referral?:PlayerReferralProps
|
|
19
|
+
}
|
|
11
20
|
onPlayerUpdate:(player:MyPlayerProps) => void,
|
|
21
|
+
onClaimGift:() => void,
|
|
12
22
|
onClose:() => void
|
|
13
23
|
}
|
|
14
24
|
|
|
15
|
-
const VouchCard = ({ player, onPlayerUpdate, onClose }:VouchCardProps) => {
|
|
25
|
+
const VouchCard = ({ player, walkthrough, code_details, onPlayerUpdate, onClaimGift, onClose }:VouchCardProps) => {
|
|
16
26
|
const [ vouching, setVouching ] = useState(false);
|
|
27
|
+
const [ job_complete, setJobComplete ] = useState(false);
|
|
17
28
|
const [ vouched, setVouched ] = useState<any | undefined>(undefined)
|
|
18
29
|
const [ disclaimer_confirmed, setDisclaimerConfirmed ] = useState(false);
|
|
19
30
|
const [ id_disclaimer_confirmed, setIDDisclaimerConfirmed ] = useState(false);
|
|
20
31
|
const [ info_visible, setInfoVisible ] = useState(false);
|
|
21
32
|
|
|
33
|
+
const { code_request, promo } = code_details;
|
|
34
|
+
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
getPlayerFromServer()
|
|
37
|
+
},[])
|
|
38
|
+
|
|
39
|
+
const getPlayerFromServer = async() => {
|
|
40
|
+
const me = await ProfileApi.getMyDetails();
|
|
41
|
+
onPlayerUpdate(me)
|
|
42
|
+
}
|
|
22
43
|
|
|
23
44
|
useEffect(() => {
|
|
24
45
|
initializeVouch()
|
|
25
46
|
if(!vouched){ return }
|
|
26
47
|
vouched.mount('#vouched-element')
|
|
48
|
+
const tokens = ProfileApi.getVouchKeys()
|
|
49
|
+
console.log(tokens)
|
|
27
50
|
},[vouched])
|
|
28
51
|
|
|
29
52
|
const initializeVouch = () => {
|
|
@@ -101,26 +124,16 @@ const VouchCard = ({ player, onPlayerUpdate, onClose }:VouchCardProps) => {
|
|
|
101
124
|
//await player_saveVouchToken(pvt)
|
|
102
125
|
},
|
|
103
126
|
|
|
104
|
-
onDone: (
|
|
105
|
-
|
|
106
|
-
console.log("Scanning complete", { token: job.token });
|
|
107
|
-
|
|
108
|
-
// An alternative way to update your system based on the results of the job.
|
|
109
|
-
// Your backend could perform the following:
|
|
110
|
-
// 1. query jobs with the token
|
|
111
|
-
// 2. store relevant job information such as the id and success property into the user's profile
|
|
112
|
-
//fetch(`/yourapi/idv?job_token=${job.token}`);
|
|
127
|
+
onDone: ()=> {
|
|
128
|
+
|
|
113
129
|
console.log('vouch complete!')
|
|
114
130
|
setVouched(undefined)
|
|
115
131
|
setTimeout(() => {
|
|
116
132
|
setVouching(false)
|
|
133
|
+
setJobComplete(true);
|
|
117
134
|
checkPlayerStatus()
|
|
118
|
-
},
|
|
135
|
+
}, 8000);
|
|
119
136
|
// Redirect to the next page based on the job success
|
|
120
|
-
if( job.result.success){
|
|
121
|
-
//window.location.replace("https");
|
|
122
|
-
} else {
|
|
123
|
-
}
|
|
124
137
|
},
|
|
125
138
|
// theme
|
|
126
139
|
theme: {
|
|
@@ -160,11 +173,11 @@ const VouchCard = ({ player, onPlayerUpdate, onClose }:VouchCardProps) => {
|
|
|
160
173
|
return (
|
|
161
174
|
<View style={{ flex:1 }}>
|
|
162
175
|
<View style={{ flex:1 }}>
|
|
163
|
-
<View
|
|
164
|
-
<Text size={
|
|
165
|
-
<Text style={{ marginTop:
|
|
176
|
+
<View style={{ padding:20 }}>
|
|
177
|
+
<Text size={30} color={Colors.brand.midnight} weight='bold'>Help us identify you</Text>
|
|
178
|
+
<Text style={{ marginTop:15 }} size={16} color={Colors.brand.midnight} weight='regular'>We need to take extra steps to verify your account. Scan your Driver's License or state issued ID and take a selfie for instant verification</Text>
|
|
166
179
|
</View>
|
|
167
|
-
<TouchableOpacity style={{padding:10, borderRadius:8, backgroundColor:Colors.highlights.highlight500Faded,
|
|
180
|
+
<TouchableOpacity style={{padding:10, borderRadius:8, backgroundColor:Colors.highlights.highlight500Faded, margin:20}} onPress={() => setInfoVisible(!info_visible)}>
|
|
168
181
|
<View style={{ flexDirection:'row', alignItems:'center' }}>
|
|
169
182
|
<Text style={{ flex:1 }} size={14} weight='semibold' color={Colors.brand.midnight}>Why is this step required?</Text>
|
|
170
183
|
<Icons.ChevronIcon direction={info_visible?'up':'down'} size={10} color={Colors.brand.midnight} />
|
|
@@ -181,7 +194,7 @@ const VouchCard = ({ player, onPlayerUpdate, onClose }:VouchCardProps) => {
|
|
|
181
194
|
/>
|
|
182
195
|
</View>
|
|
183
196
|
{player.vouched_status == 'unverified' ?
|
|
184
|
-
<View>
|
|
197
|
+
<View style={{ padding:10 }}>
|
|
185
198
|
<TouchableOpacity
|
|
186
199
|
style={{ flexDirection:'row', alignItems:'center', padding:10, marginLeft:15, marginRight:15, borderRadius:8, backgroundColor:Colors.shades.shade100, marginTop:5 }}
|
|
187
200
|
onPress={() => setDisclaimerConfirmed(!disclaimer_confirmed)}>
|
|
@@ -210,27 +223,64 @@ const VouchCard = ({ player, onPlayerUpdate, onClose }:VouchCardProps) => {
|
|
|
210
223
|
</View>
|
|
211
224
|
:<></>}
|
|
212
225
|
</View>
|
|
226
|
+
{code_request && !['fulfilled','closed'].includes(code_request.status) && promo ?
|
|
227
|
+
<TouchableOpacity
|
|
228
|
+
disabled={player.vouched_status!='verified' ? true : false}
|
|
229
|
+
style={{ margin:15, marginTop:-50, backgroundColor:Colors.shades.white, borderRadius:8, ...view_styles.float }}
|
|
230
|
+
onPress={() => onClaimGift()}
|
|
231
|
+
>
|
|
232
|
+
<View style={{ flexDirection:'row' }}>
|
|
233
|
+
<View style={{ padding:10, justifyContent:'center', alignItems:'center' }}>
|
|
234
|
+
<Icons.GiftIcon size={40} color={Colors.incentive.gold} />
|
|
235
|
+
{player.vouched_status == 'verified' ?
|
|
236
|
+
<Text style={{ marginTop:5 }} textAlign='center' size={12} color={Colors.incentive.gold}>CLAIM NOW</Text>
|
|
237
|
+
:<></>}
|
|
238
|
+
</View>
|
|
239
|
+
<View style={{flex:1, backgroundColor:Colors.incentive.gold_faded, padding:10 }}>
|
|
240
|
+
<Text style={{ paddingBottom:10, borderBottomWidth:1, borderBottomColor:Colors.shades.shade600 }} size={16} color={Colors.brand.midnight} weight='bold'>{player.vouched_status == 'verified'?`Congrats! Press Here to claim your gift!`: 'Almost there! Last step to get your gift!'}</Text>
|
|
241
|
+
<Text style={{ paddingTop:5 }} size={12} color={Colors.brand.midnight} weight='semibold'>{ProfileHelpers.getReferralDescription(promo)}</Text>
|
|
242
|
+
</View>
|
|
243
|
+
</View>
|
|
244
|
+
{player.vouched_status == 'verified' ?
|
|
245
|
+
<View style={{ position:'absolute', top: -60, right:0, left:0, justifyContent:'center', alignItems:'center' }}>
|
|
246
|
+
<View style={{ borderRadius:22, padding:10, marginBottom:7, backgroundColor:Colors.shades.white }}>
|
|
247
|
+
<Text size={14} color={Colors.incentive.gold} weight='bold'>CLAIM ME NOW!</Text>
|
|
248
|
+
</View>
|
|
249
|
+
<Icons.ChevronIcon direction='down' size={8} color={Colors.incentive.gold} />
|
|
250
|
+
</View>
|
|
251
|
+
:<></>}
|
|
252
|
+
</TouchableOpacity>
|
|
253
|
+
:<></>}
|
|
213
254
|
{player.vouched_status == 'failed' ?
|
|
214
255
|
<View style={{ margin:10, borderRadius:8, padding:10, backgroundColor:Colors.utility.warning }}>
|
|
215
256
|
<Text textAlign='center' size={14} weight='bold' color={Colors.shades.white}>We are currently reviewing your account. If you do not hear from us within 48 hours, please reach out to support@bettoredge.com</Text>
|
|
216
257
|
</View>
|
|
217
258
|
:<></>}
|
|
218
259
|
<View nativeID='action_row' style={{ flexDirection:'row', padding:10 }}>
|
|
260
|
+
{walkthrough ?
|
|
261
|
+
<Button
|
|
262
|
+
title='EXIT SETUP'
|
|
263
|
+
title_color={Colors.utility.error}
|
|
264
|
+
backgroundColor='transparent'
|
|
265
|
+
onPress={() => onClose()}
|
|
266
|
+
/>
|
|
267
|
+
:
|
|
219
268
|
<Button
|
|
220
|
-
padding={15}
|
|
221
269
|
style={{ flex:1, marginRight:5 }}
|
|
270
|
+
title='BACK'
|
|
271
|
+
padding={15}
|
|
272
|
+
title_color={Colors.brand.electric}
|
|
222
273
|
borderWidth={1}
|
|
223
274
|
borderColor={Colors.brand.electric}
|
|
224
|
-
title_color={Colors.brand.electric}
|
|
225
|
-
title='CLOSE'
|
|
226
275
|
onPress={() => onClose()}
|
|
227
276
|
/>
|
|
277
|
+
}
|
|
228
278
|
{player.vouched_status == 'unverified' ?
|
|
229
279
|
<Button
|
|
230
|
-
title='SCAN MY ID'
|
|
280
|
+
title={!job_complete ? 'SCAN MY ID' : 'REVIEWING ACCOUNT'}
|
|
231
281
|
title_color={Colors.shades.white}
|
|
232
282
|
loading={vouching}
|
|
233
|
-
disabled={!scan_ready}
|
|
283
|
+
disabled={!scan_ready || job_complete}
|
|
234
284
|
style={{ flex:3, opacity:scan_ready && scan_ready&&!vouching?1:0.5 }}
|
|
235
285
|
padding={15}
|
|
236
286
|
backgroundColor={Colors.utility.success}
|
|
@@ -251,7 +251,7 @@ getReferralDescription : (promo:PromoProps) => {
|
|
|
251
251
|
case 'promo_code': return `Get ${promo.amount} promo bucks after you verify your account`
|
|
252
252
|
case 'promo_sweepstakes': return `Have a chance at UP TO 500 promo bucks after you verify your account`
|
|
253
253
|
case 'referral_code': return `Get ${promo.amount} promo bucks after you verify your account. Your referrer will get the same after you make your first deposit`
|
|
254
|
-
case 'referral_sweepstakes': return `Have a
|
|
254
|
+
case 'referral_sweepstakes': return `Have a chance at UP TO 500 promo bucks after you verify your account. Your referrer will get the same after you make your first deposit`
|
|
255
255
|
default: return ''
|
|
256
256
|
}
|
|
257
257
|
} ,
|
|
@@ -11,6 +11,7 @@ type ProfileOverviewProps = {
|
|
|
11
11
|
width:number,
|
|
12
12
|
show_welcome?:boolean,
|
|
13
13
|
//access_token:string,
|
|
14
|
+
hide_powered_by?:boolean,
|
|
14
15
|
hidden_groups?:string[],
|
|
15
16
|
hidden_steps?:string[],
|
|
16
17
|
hidden_levels?:string[],
|
|
@@ -18,10 +19,12 @@ type ProfileOverviewProps = {
|
|
|
18
19
|
onLogout:() => void,
|
|
19
20
|
onPlayerUpdate?:(p:MyPlayerProps, attribute?:string) => void,
|
|
20
21
|
profile_attribute?:'basic'|'phone'|'email'|'dob'|'password'|'vouch'|'notification'|'preferences',
|
|
21
|
-
walkthrough?:
|
|
22
|
+
walkthrough?: {
|
|
23
|
+
level: 'verify' | 'basic'
|
|
24
|
+
}
|
|
22
25
|
}
|
|
23
26
|
|
|
24
|
-
const ProfileManager = ({ profile_attribute, onPlayerUpdate, show_welcome, hidden_groups, hidden_steps, hidden_levels, walkthrough, width, onClose, onLogout }: ProfileOverviewProps ) => {
|
|
27
|
+
const ProfileManager = ({ profile_attribute, hide_powered_by, onPlayerUpdate, show_welcome, hidden_groups, hidden_steps, hidden_levels, walkthrough, width, onClose, onLogout }: ProfileOverviewProps ) => {
|
|
25
28
|
const [ loading, setLoading ] = useState(false);
|
|
26
29
|
const [ draft_player, setDraftPlayer ] = useState<MyPlayerProps>();
|
|
27
30
|
const [ player_balance, setPlayerBalance ] = useState<PlayerBalanceProps>();
|
|
@@ -85,7 +88,7 @@ const ProfileManager = ({ profile_attribute, onPlayerUpdate, show_welcome, hidde
|
|
|
85
88
|
{player_balance ?
|
|
86
89
|
<View style={{ paddingRight:10 }}>
|
|
87
90
|
<Text size={16} color={Colors.brand.midnight} weight='bold' textAlign='right'>${player_balance.balance.toFixed(2)}</Text>
|
|
88
|
-
<Text style={{ marginTop:3 }} size={12} color={Colors.brand.midnight} weight='regular' textAlign='right'>Promo
|
|
91
|
+
<Text style={{ marginTop:3 }} size={12} color={Colors.brand.midnight} weight='regular' textAlign='right'>Promo {player_balance.promo_balance.toFixed(2)}</Text>
|
|
89
92
|
</View>
|
|
90
93
|
:<></>}
|
|
91
94
|
</View>
|
|
@@ -95,6 +98,7 @@ const ProfileManager = ({ profile_attribute, onPlayerUpdate, show_welcome, hidde
|
|
|
95
98
|
player_settings={player_settings}
|
|
96
99
|
settings={settings}
|
|
97
100
|
show_welcome={show_welcome}
|
|
101
|
+
hide_powered_by={hide_powered_by}
|
|
98
102
|
width={width}
|
|
99
103
|
hidden_groups={hidden_groups}
|
|
100
104
|
hidden_steps={hidden_steps}
|
package/src/constants/styles.ts
CHANGED
|
@@ -14,6 +14,15 @@ export const view_styles = StyleSheet.create({
|
|
|
14
14
|
}
|
|
15
15
|
})
|
|
16
16
|
|
|
17
|
+
export const button_styles = StyleSheet.create({
|
|
18
|
+
wizard_valid: {
|
|
19
|
+
backgroundColor:Colors.shades.white, height:50, width:50, justifyContent:'center', alignItems:'center', borderRadius:100, ...view_styles.float
|
|
20
|
+
},
|
|
21
|
+
wizard_invalid: {
|
|
22
|
+
backgroundColor:Colors.shades.white, height:50, width:50, justifyContent:'center', alignItems:'center', borderRadius:100, opacity:0.5
|
|
23
|
+
}
|
|
24
|
+
})
|
|
25
|
+
|
|
17
26
|
|
|
18
27
|
export const text_styles = StyleSheet.create({
|
|
19
28
|
dark_heading_1: {
|