be-components 0.3.2 → 0.3.4

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 (108) hide show
  1. package/lib/commonjs/ApiOverrides/index.js +4 -0
  2. package/lib/commonjs/ApiOverrides/index.js.map +1 -1
  3. package/lib/commonjs/Components/Icons.js +50 -0
  4. package/lib/commonjs/Components/Icons.js.map +1 -1
  5. package/lib/commonjs/Components/ImageUploader.js +10 -1
  6. package/lib/commonjs/Components/ImageUploader.js.map +1 -1
  7. package/lib/commonjs/Components/LinearDiagnal.js +82 -0
  8. package/lib/commonjs/Components/LinearDiagnal.js.map +1 -0
  9. package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js +81 -32
  10. package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js.map +1 -1
  11. package/lib/commonjs/ProfileManager/Components/BasicStatus.js +89 -20
  12. package/lib/commonjs/ProfileManager/Components/BasicStatus.js.map +1 -1
  13. package/lib/commonjs/ProfileManager/Components/DOBManager.js +55 -33
  14. package/lib/commonjs/ProfileManager/Components/DOBManager.js.map +1 -1
  15. package/lib/commonjs/ProfileManager/Components/EmailManager.js +69 -34
  16. package/lib/commonjs/ProfileManager/Components/EmailManager.js.map +1 -1
  17. package/lib/commonjs/ProfileManager/Components/PasswordManager.js +47 -25
  18. package/lib/commonjs/ProfileManager/Components/PasswordManager.js.map +1 -1
  19. package/lib/commonjs/ProfileManager/Components/PhoneManager.js +70 -35
  20. package/lib/commonjs/ProfileManager/Components/PhoneManager.js.map +1 -1
  21. package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js +45 -29
  22. package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js.map +1 -1
  23. package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js +59 -17
  24. package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js.map +1 -1
  25. package/lib/commonjs/ProfileManager/Components/ProfileWizard.js +57 -30
  26. package/lib/commonjs/ProfileManager/Components/ProfileWizard.js.map +1 -1
  27. package/lib/commonjs/ProfileManager/Components/VouchCard.js +15 -23
  28. package/lib/commonjs/ProfileManager/Components/VouchCard.js.map +1 -1
  29. package/lib/commonjs/ProfileManager/api/index.js +1 -1
  30. package/lib/commonjs/ProfileManager/index.js +5 -2
  31. package/lib/commonjs/ProfileManager/index.js.map +1 -1
  32. package/lib/commonjs/constants/styles.js +21 -1
  33. package/lib/commonjs/constants/styles.js.map +1 -1
  34. package/lib/module/ApiOverrides/index.js +4 -0
  35. package/lib/module/ApiOverrides/index.js.map +1 -1
  36. package/lib/module/Components/Icons.js +50 -0
  37. package/lib/module/Components/Icons.js.map +1 -1
  38. package/lib/module/Components/ImageUploader.js +10 -1
  39. package/lib/module/Components/ImageUploader.js.map +1 -1
  40. package/lib/module/Components/LinearDiagnal.js +74 -0
  41. package/lib/module/Components/LinearDiagnal.js.map +1 -0
  42. package/lib/module/ProfileManager/Components/BasicInfoManager.js +82 -33
  43. package/lib/module/ProfileManager/Components/BasicInfoManager.js.map +1 -1
  44. package/lib/module/ProfileManager/Components/BasicStatus.js +90 -21
  45. package/lib/module/ProfileManager/Components/BasicStatus.js.map +1 -1
  46. package/lib/module/ProfileManager/Components/DOBManager.js +56 -34
  47. package/lib/module/ProfileManager/Components/DOBManager.js.map +1 -1
  48. package/lib/module/ProfileManager/Components/EmailManager.js +71 -36
  49. package/lib/module/ProfileManager/Components/EmailManager.js.map +1 -1
  50. package/lib/module/ProfileManager/Components/PasswordManager.js +48 -26
  51. package/lib/module/ProfileManager/Components/PasswordManager.js.map +1 -1
  52. package/lib/module/ProfileManager/Components/PhoneManager.js +72 -37
  53. package/lib/module/ProfileManager/Components/PhoneManager.js.map +1 -1
  54. package/lib/module/ProfileManager/Components/ProfilePicManager.js +45 -31
  55. package/lib/module/ProfileManager/Components/ProfilePicManager.js.map +1 -1
  56. package/lib/module/ProfileManager/Components/ProfileWelcome.js +60 -18
  57. package/lib/module/ProfileManager/Components/ProfileWelcome.js.map +1 -1
  58. package/lib/module/ProfileManager/Components/ProfileWizard.js +57 -30
  59. package/lib/module/ProfileManager/Components/ProfileWizard.js.map +1 -1
  60. package/lib/module/ProfileManager/Components/VouchCard.js +15 -23
  61. package/lib/module/ProfileManager/Components/VouchCard.js.map +1 -1
  62. package/lib/module/ProfileManager/api/index.js +1 -1
  63. package/lib/module/ProfileManager/index.js +5 -2
  64. package/lib/module/ProfileManager/index.js.map +1 -1
  65. package/lib/module/constants/styles.js +20 -0
  66. package/lib/module/constants/styles.js.map +1 -1
  67. package/lib/typescript/src/ApiOverrides/index.d.ts.map +1 -1
  68. package/lib/typescript/src/Components/Icons.d.ts +1 -0
  69. package/lib/typescript/src/Components/Icons.d.ts.map +1 -1
  70. package/lib/typescript/src/Components/ImageUploader.d.ts +1 -1
  71. package/lib/typescript/src/Components/ImageUploader.d.ts.map +1 -1
  72. package/lib/typescript/src/Components/LinearDiagnal.d.ts +14 -0
  73. package/lib/typescript/src/Components/LinearDiagnal.d.ts.map +1 -0
  74. package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
  75. package/lib/typescript/src/ProfileManager/Components/BasicStatus.d.ts +9 -2
  76. package/lib/typescript/src/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
  77. package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts.map +1 -1
  78. package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts.map +1 -1
  79. package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
  80. package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
  81. package/lib/typescript/src/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
  82. package/lib/typescript/src/ProfileManager/Components/ProfileWelcome.d.ts +9 -2
  83. package/lib/typescript/src/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
  84. package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts +5 -2
  85. package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
  86. package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts.map +1 -1
  87. package/lib/typescript/src/ProfileManager/index.d.ts +5 -2
  88. package/lib/typescript/src/ProfileManager/index.d.ts.map +1 -1
  89. package/lib/typescript/src/constants/styles.d.ts +26 -0
  90. package/lib/typescript/src/constants/styles.d.ts.map +1 -1
  91. package/package.json +1 -1
  92. package/src/ApiOverrides/index.ts +4 -0
  93. package/src/Components/Icons.tsx +21 -0
  94. package/src/Components/ImageUploader.tsx +4 -3
  95. package/src/Components/LinearDiagnal.tsx +52 -0
  96. package/src/ProfileManager/Components/BasicInfoManager.tsx +110 -76
  97. package/src/ProfileManager/Components/BasicStatus.tsx +55 -24
  98. package/src/ProfileManager/Components/DOBManager.tsx +46 -28
  99. package/src/ProfileManager/Components/EmailManager.tsx +48 -33
  100. package/src/ProfileManager/Components/PasswordManager.tsx +36 -18
  101. package/src/ProfileManager/Components/PhoneManager.tsx +82 -66
  102. package/src/ProfileManager/Components/ProfilePicManager.tsx +38 -23
  103. package/src/ProfileManager/Components/ProfileWelcome.tsx +33 -14
  104. package/src/ProfileManager/Components/ProfileWizard.tsx +72 -21
  105. package/src/ProfileManager/Components/VouchCard.tsx +8 -11
  106. package/src/ProfileManager/api/index.ts +1 -1
  107. package/src/ProfileManager/index.tsx +8 -4
  108. package/src/constants/styles.ts +9 -0
@@ -1,6 +1,6 @@
1
1
  import React, { useEffect, useState } from 'react';
2
2
  import { View, FlatList, TouchableOpacity, Image, Linking } from 'react-native';
3
- import type { MyPlayerProps, ProfileLevelProps, ProfileStepProps, SettingProps } from "../api/types"
3
+ import type { CodeRequestProps, MyPlayerProps, PlayerReferralProps, ProfileLevelProps, ProfileStepProps, PromoProps, SettingProps } from "../api/types"
4
4
  import { Button, Icons, Text } from '../../Components';
5
5
  import Colors from '../../constants/colors';
6
6
  import BasicInfoManager from './BasicInfoManager';
@@ -13,8 +13,9 @@ import VouchCard from './VouchCard';
13
13
  import ProfilePicManager from './ProfilePicManager';
14
14
  import ProfileWelcome from './ProfileWelcome';
15
15
  import CodeRedeem from './CodeRedeem';
16
- import type { PlayerSettingProps } from '../../types';
16
+ import type { PlayerSettingProps, PublicPlayerProps } from '../../types';
17
17
  import SettingsManager from './SettingsManager';
18
+ import { ProfileApi } from '../api';
18
19
 
19
20
  type ProfileWizardProps = {
20
21
  player:MyPlayerProps,
@@ -22,10 +23,13 @@ type ProfileWizardProps = {
22
23
  settings:SettingProps[]
23
24
  show_welcome?:boolean,
24
25
  width:number,
26
+ hide_powered_by?:boolean,
25
27
  hidden_groups?:string[],
26
28
  hidden_levels?:string[],
27
29
  hidden_steps?:string[],
28
- init_walkthrough?:boolean,
30
+ init_walkthrough?:{
31
+ level: 'basic'|'verify'
32
+ },
29
33
  profile_attribute?:'basic'|'phone'|'email'|'dob'|'password'|'vouch'|'notification'|'preferences',
30
34
  onClose:() => void,
31
35
  onLogout:() => void,
@@ -33,11 +37,20 @@ type ProfileWizardProps = {
33
37
  onPlayerUpdate:(player:MyPlayerProps, attribute?:string) => void
34
38
  onUpdatePlayerSetting:(player_setting:PlayerSettingProps) => void
35
39
  }
40
+ // { num:5, check: 'code', label: 'Promo', description: `Lets get you started with some promo bucks!`, complete:false },
36
41
 
37
- const ProfileWizard = ({ player, settings, player_settings, init_walkthrough, show_welcome, profile_attribute, width, hidden_groups, hidden_levels, hidden_steps, onUpdatePlayerSetting, onPlayerUpdate, onSelectLevel, onClose, onLogout }:ProfileWizardProps) => {
42
+ const ProfileWizard = ({ player, hide_powered_by, settings, player_settings, init_walkthrough, show_welcome, profile_attribute, width, hidden_groups, hidden_levels, hidden_steps, onUpdatePlayerSetting, onPlayerUpdate, onSelectLevel, onClose, onLogout }:ProfileWizardProps) => {
38
43
  const [ draft_player, setDraftPlayer ] = useState(player);
44
+ const [ code_details, setCodeDetails ] = useState<
45
+ {
46
+ code_request?:CodeRequestProps,
47
+ referrer?:PublicPlayerProps,
48
+ promo?:PromoProps,
49
+ player_referral?:PlayerReferralProps
50
+ }
51
+ >({})
39
52
  const [ show_logout, setShowLogout ] = useState(false);
40
- const [ walkthrough, setWalkthrough ] = useState<boolean | undefined>(false);
53
+ const [ walkthrough, setWalkthrough ] = useState<string | undefined>(undefined);
41
54
  const [ active_level, setActiveLevel ] = useState<ProfileLevelProps>()
42
55
  const [ active_step, setActiveStep ] = useState<ProfileStepProps>()
43
56
  const [ groups, setGroups ] = useState([
@@ -69,7 +82,6 @@ const ProfileWizard = ({ player, settings, player_settings, init_walkthrough, s
69
82
  { num:2, check: 'phone', label: 'Phone', description: `Lets make sure you can access your account in case you forget your password`, complete:false },
70
83
  { num:3, check: 'dob', label: 'Date of Birth', description: `We need to ensure you are at least 18 to play`, complete:false },
71
84
  { num:4, check: 'vouch', label: 'Verify', description: `We need to ensure you are at least 18 to play`, complete:false },
72
- { num:5, check: 'code', label: 'Promo', description: `Lets get you started with some promo bucks!`, complete:false },
73
85
 
74
86
  ]
75
87
  }
@@ -95,9 +107,25 @@ const ProfileWizard = ({ player, settings, player_settings, init_walkthrough, s
95
107
  }
96
108
  ])
97
109
 
110
+ useEffect(() => {
111
+ getCodeFromServer()
112
+ },[])
113
+
114
+ const getCodeFromServer = async() => {
115
+ const request_resp = await ProfileApi.getMyCodeDetails()
116
+ setCodeDetails(request_resp)
117
+ }
118
+
119
+ useEffect(() => {
120
+ if(!init_walkthrough){ return }
121
+ setWalkthrough(init_walkthrough.level)
122
+ let walkthroughLevel = groups.find(g => g.profile_levels.find(l => l.identifier == init_walkthrough.level))?.profile_levels.find(l => l.identifier == init_walkthrough.level)
123
+ setActiveLevel(walkthroughLevel)
124
+ if(!show_welcome){ setActiveStep(walkthroughLevel?.profile_steps[0]) }
125
+ },[init_walkthrough])
126
+
98
127
  useEffect(() => {
99
128
  if(!player){ return }
100
- setWalkthrough(init_walkthrough ? true : false)
101
129
  setDraftPlayer(player)
102
130
  const groups = setupSteps(player)
103
131
  setGroups(groups);
@@ -110,7 +138,6 @@ const ProfileWizard = ({ player, settings, player_settings, init_walkthrough, s
110
138
  let profile_step:ProfileStepProps|undefined = undefined
111
139
  groups.map(g => g.profile_levels.map((l:ProfileLevelProps) => {
112
140
  let step = l.profile_steps.find(ps => ps.check == profile_attribute)
113
- console.log(step)
114
141
  if(step){
115
142
  profile_step = step
116
143
  profile_level = l
@@ -226,11 +253,25 @@ const ProfileWizard = ({ player, settings, player_settings, init_walkthrough, s
226
253
  }
227
254
 
228
255
  const renderSteps = (data:{ item: ProfileStepProps, index:number }) => {
256
+ if(!active_level){ return <></> }
229
257
  const active = data.item.check == active_step?.check ? true : false
230
258
  if(!active_level){ return <></> }
231
259
  return (
232
- <TouchableOpacity style={{ padding:10, width: width / active_level?.profile_steps.length, backgroundColor:getStepColor(data.item, active) }} onPress={() => setActiveStep(data.item)}>
233
- <Text size={14} color={active?Colors.shades.white:Colors.brand.midnight} weight='bold' textAlign='center'>{data.item.label}</Text>
260
+ <TouchableOpacity
261
+ style={{
262
+ padding:10,
263
+ width: (width - 20) / active_level.profile_steps.length,
264
+ backgroundColor:getStepColor(data.item, active),
265
+ borderTopRightRadius: data.index == active_level.profile_steps.length - 1 ? 22 : 0,
266
+ borderBottomRightRadius: data.index == active_level.profile_steps.length - 1 ? 22 : 0,
267
+ borderBottomLeftRadius: data.index == 0 ? 22: 0,
268
+ borderTopLeftRadius: data.index == 0 ? 22: 0
269
+
270
+ }}
271
+ onPress={() => setActiveStep(data.item)}>
272
+ {!walkthrough ?
273
+ <Text size={14} textAlign='center' color={active?Colors.shades.white:Colors.brand.midnight} weight={active?'bold':'regular'}>{data.item.label}</Text>
274
+ :<></>}
234
275
  </TouchableOpacity>
235
276
  )
236
277
  }
@@ -248,6 +289,7 @@ const ProfileWizard = ({ player, settings, player_settings, init_walkthrough, s
248
289
  keyExtractor={(item) => item.key}
249
290
  />
250
291
  </View>
292
+ {!hide_powered_by ?
251
293
  <TouchableOpacity style={{ justifyContent:'center', alignItems:'center' }}
252
294
  onPress={() => {
253
295
  Linking.openURL(`https://app.bettoredge.com`)
@@ -258,6 +300,7 @@ const ProfileWizard = ({ player, settings, player_settings, init_walkthrough, s
258
300
  resizeMode='center'
259
301
  />
260
302
  </TouchableOpacity>
303
+ :<></>}
261
304
  <View style={{flexDirection:'row', padding:10}}>
262
305
  <Button
263
306
  title='CLOSE'
@@ -303,6 +346,7 @@ const ProfileWizard = ({ player, settings, player_settings, init_walkthrough, s
303
346
  </View>
304
347
  :
305
348
  <View style={{ flex:1 }}>
349
+ {!walkthrough ?
306
350
  <TouchableOpacity style={{ flexDirection:'row', alignItems:'center', padding:10, borderTopWidth:2, borderColor:Colors.shades.shade600 }} onPress={() => {
307
351
  setActiveLevel(undefined)
308
352
  setActiveStep(undefined)
@@ -318,7 +362,8 @@ const ProfileWizard = ({ player, settings, player_settings, init_walkthrough, s
318
362
  </View>
319
363
  :<></>}
320
364
  </TouchableOpacity>
321
- <View style={{ borderWidth:1, borderColor:Colors.shades.shade600, borderRadius:22 }}>
365
+ :<></>}
366
+ <View style={{ borderWidth:1, borderColor:Colors.shades.shade600, borderRadius:22, margin:10 }}>
322
367
  <FlatList
323
368
  data={active_level?.profile_steps}
324
369
  renderItem={renderSteps}
@@ -332,18 +377,20 @@ const ProfileWizard = ({ player, settings, player_settings, init_walkthrough, s
332
377
  <ProfileWelcome
333
378
  player={draft_player}
334
379
  width={width}
380
+ code_details={code_details}
335
381
  onStartSetup={() => {
336
382
  if(!active_level){ return }
337
- setWalkthrough(true);
338
- let next_step = active_level.profile_steps[0]
339
- setActiveStep(next_step)
383
+ if(walkthrough){
384
+ let next_step = active_level.profile_steps[0]
385
+ setActiveStep(next_step)
386
+ }
340
387
  }}
341
388
  onClose={() => onClose()}
342
389
  />
343
390
  :active_step?.check == 'basic' ?
344
391
  <BasicInfoManager
345
392
  player={draft_player}
346
- walkthrough={walkthrough}
393
+ walkthrough={walkthrough == 'basic' ? true : false}
347
394
  onClose={() => {
348
395
  if(profile_attribute){ return onClose() }
349
396
  return setActiveLevel(undefined)
@@ -360,7 +407,7 @@ const ProfileWizard = ({ player, settings, player_settings, init_walkthrough, s
360
407
  :active_step?.check == 'profile_pic'?
361
408
  <ProfilePicManager
362
409
  player={draft_player}
363
- walkthrough={walkthrough}
410
+ walkthrough={walkthrough == 'basic' ? true : false}
364
411
  onClose={() => {
365
412
  if(profile_attribute){ return onClose() }
366
413
  return setActiveLevel(undefined)
@@ -379,7 +426,7 @@ const ProfileWizard = ({ player, settings, player_settings, init_walkthrough, s
379
426
  if(profile_attribute){ return onClose() }
380
427
  return setActiveLevel(undefined)
381
428
  }}
382
- walkthrough={walkthrough}
429
+ walkthrough={walkthrough == 'basic' ? true : false}
383
430
  onNext={() => {
384
431
  if(!active_level){ return }
385
432
  let next_step = active_level.profile_steps[3]
@@ -390,7 +437,7 @@ const ProfileWizard = ({ player, settings, player_settings, init_walkthrough, s
390
437
  :active_step?.check == 'email' ?
391
438
  <EmailManager
392
439
  player={draft_player}
393
- walkthrough={walkthrough}
440
+ walkthrough={walkthrough == 'verify' ? true : false}
394
441
  onClose={() => {
395
442
  if(profile_attribute){ return onClose() }
396
443
  return setActiveLevel(undefined)
@@ -409,7 +456,7 @@ const ProfileWizard = ({ player, settings, player_settings, init_walkthrough, s
409
456
  if(profile_attribute){ return onClose() }
410
457
  return setActiveLevel(undefined)
411
458
  }}
412
- walkthrough={walkthrough}
459
+ walkthrough={walkthrough == 'verify' ? true : false}
413
460
  onNext={() => {
414
461
  if(!active_level){ return }
415
462
  let next_step = active_level.profile_steps[2]
@@ -420,13 +467,15 @@ const ProfileWizard = ({ player, settings, player_settings, init_walkthrough, s
420
467
  :active_step?.check == 'basic_review' ?
421
468
  <BasicStatus
422
469
  player={draft_player}
470
+ code_details={code_details}
423
471
  onClose={() => {
424
472
  if(profile_attribute){ return onClose() }
425
473
  return setActiveLevel(undefined)
426
474
  }}
427
475
  onVerify={() => {
428
- let new_level = groups[0]?.profile_levels[1]
476
+ let new_level = groups[0]?.profile_levels.find(l => l.identifier == 'verify')
429
477
  if(!new_level){return }
478
+ setWalkthrough('verify')
430
479
  setActiveLevel(new_level)
431
480
  onSelectLevel(new_level)
432
481
  setActiveStep(new_level.profile_steps[0])
@@ -439,7 +488,7 @@ const ProfileWizard = ({ player, settings, player_settings, init_walkthrough, s
439
488
  if(profile_attribute){ return onClose() }
440
489
  return setActiveLevel(undefined)
441
490
  }}
442
- walkthrough={walkthrough}
491
+ walkthrough={walkthrough == 'verify' ? true : false}
443
492
  onNext={() => {
444
493
  if(!active_level){ return }
445
494
  let next_step = active_level.profile_steps[3]
@@ -513,4 +562,6 @@ const ProfileWizard = ({ player, settings, player_settings, init_walkthrough, s
513
562
  )
514
563
  }
515
564
 
565
+
566
+
516
567
  export default ProfileWizard
@@ -160,11 +160,11 @@ const VouchCard = ({ player, onPlayerUpdate, onClose }:VouchCardProps) => {
160
160
  return (
161
161
  <View style={{ flex:1 }}>
162
162
  <View style={{ flex:1 }}>
163
- <View nativeID='vouch_header' style={{ borderTopRightRadius: 8, borderTopLeftRadius: 8, backgroundColor:Colors.shades.shade100, padding:10 }}>
164
- <Text size={16} color={Colors.brand.midnight} weight='semibold'>Help us identify you</Text>
165
- <Text style={{ marginTop:3 }} color={Colors.brand.midnight} size={14} weight='light'>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>
163
+ <View style={{ padding:20 }}>
164
+ <Text size={30} color={Colors.brand.midnight} weight='bold'>Help us identify you</Text>
165
+ <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
166
  </View>
167
- <TouchableOpacity style={{padding:10, borderRadius:8, backgroundColor:Colors.highlights.highlight500Faded, marginLeft:15, marginRight:15, marginTop:10}} onPress={() => setInfoVisible(!info_visible)}>
167
+ <TouchableOpacity style={{padding:10, borderRadius:8, backgroundColor:Colors.highlights.highlight500Faded, margin:20}} onPress={() => setInfoVisible(!info_visible)}>
168
168
  <View style={{ flexDirection:'row', alignItems:'center' }}>
169
169
  <Text style={{ flex:1 }} size={14} weight='semibold' color={Colors.brand.midnight}>Why is this step required?</Text>
170
170
  <Icons.ChevronIcon direction={info_visible?'up':'down'} size={10} color={Colors.brand.midnight} />
@@ -181,7 +181,7 @@ const VouchCard = ({ player, onPlayerUpdate, onClose }:VouchCardProps) => {
181
181
  />
182
182
  </View>
183
183
  {player.vouched_status == 'unverified' ?
184
- <View>
184
+ <View style={{ padding:10 }}>
185
185
  <TouchableOpacity
186
186
  style={{ flexDirection:'row', alignItems:'center', padding:10, marginLeft:15, marginRight:15, borderRadius:8, backgroundColor:Colors.shades.shade100, marginTop:5 }}
187
187
  onPress={() => setDisclaimerConfirmed(!disclaimer_confirmed)}>
@@ -217,12 +217,9 @@ const VouchCard = ({ player, onPlayerUpdate, onClose }:VouchCardProps) => {
217
217
  :<></>}
218
218
  <View nativeID='action_row' style={{ flexDirection:'row', padding:10 }}>
219
219
  <Button
220
- padding={15}
221
- style={{ flex:1, marginRight:5 }}
222
- borderWidth={1}
223
- borderColor={Colors.brand.electric}
224
- title_color={Colors.brand.electric}
225
- title='CLOSE'
220
+ title='EXIT SETUP'
221
+ title_color={Colors.utility.error}
222
+ backgroundColor='transparent'
226
223
  onPress={() => onClose()}
227
224
  />
228
225
  {player.vouched_status == 'unverified' ?
@@ -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 change at UP TO 500 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 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?:boolean
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>();
@@ -68,7 +71,7 @@ const ProfileManager = ({ profile_attribute, onPlayerUpdate, show_welcome, hidde
68
71
  }
69
72
 
70
73
  return (
71
- <View style={{ flex:1, width }}>
74
+ <View style={{ flex:1, width, minHeight:650 }}>
72
75
  <View style={{ flex:1 }}>
73
76
  <View style={{ flexDirection:'row', alignItems:'center' }}>
74
77
  <View nativeID='profile_picture' style={{ padding:10 }}>
@@ -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 {player_balance.promo_balance.toFixed(2)}</Text>
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}
@@ -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: {