be-components 1.5.3 → 1.5.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.
Files changed (69) hide show
  1. package/lib/commonjs/CompetitionManager/api/index.js +0 -2
  2. package/lib/commonjs/CompetitionManager/api/index.js.map +1 -1
  3. package/lib/commonjs/CompetitionSeasonManager/api/index.js +0 -1
  4. package/lib/commonjs/CompetitionSeasonManager/api/index.js.map +1 -1
  5. package/lib/commonjs/CompetitionSeasonManager/components/CompetitionsForm.js +3 -2
  6. package/lib/commonjs/CompetitionSeasonManager/components/CompetitionsForm.js.map +1 -1
  7. package/lib/commonjs/CompetitionSeasonManager/index.js +3 -1
  8. package/lib/commonjs/CompetitionSeasonManager/index.js.map +1 -1
  9. package/lib/commonjs/Components/SearchBox.js +4 -2
  10. package/lib/commonjs/Components/SearchBox.js.map +1 -1
  11. package/lib/commonjs/Engage/api/index.js +23 -3
  12. package/lib/commonjs/Engage/api/index.js.map +1 -1
  13. package/lib/commonjs/Engage/components/CompanyCard.js +83 -0
  14. package/lib/commonjs/Engage/components/CompanyCard.js.map +1 -0
  15. package/lib/commonjs/Engage/components/EngageHeader.js +181 -0
  16. package/lib/commonjs/Engage/components/EngageHeader.js.map +1 -0
  17. package/lib/commonjs/Engage/components/PrivateCodePrompt.js +158 -0
  18. package/lib/commonjs/Engage/components/PrivateCodePrompt.js.map +1 -0
  19. package/lib/commonjs/Engage/index.js +73 -2
  20. package/lib/commonjs/Engage/index.js.map +1 -1
  21. package/lib/module/CompetitionManager/api/index.js +0 -2
  22. package/lib/module/CompetitionManager/api/index.js.map +1 -1
  23. package/lib/module/CompetitionSeasonManager/api/index.js +0 -1
  24. package/lib/module/CompetitionSeasonManager/api/index.js.map +1 -1
  25. package/lib/module/CompetitionSeasonManager/components/CompetitionsForm.js +3 -2
  26. package/lib/module/CompetitionSeasonManager/components/CompetitionsForm.js.map +1 -1
  27. package/lib/module/CompetitionSeasonManager/index.js +3 -1
  28. package/lib/module/CompetitionSeasonManager/index.js.map +1 -1
  29. package/lib/module/Components/SearchBox.js +4 -2
  30. package/lib/module/Components/SearchBox.js.map +1 -1
  31. package/lib/module/Engage/api/index.js +23 -3
  32. package/lib/module/Engage/api/index.js.map +1 -1
  33. package/lib/module/Engage/components/CompanyCard.js +76 -0
  34. package/lib/module/Engage/components/CompanyCard.js.map +1 -0
  35. package/lib/module/Engage/components/EngageHeader.js +172 -0
  36. package/lib/module/Engage/components/EngageHeader.js.map +1 -0
  37. package/lib/module/Engage/components/PrivateCodePrompt.js +149 -0
  38. package/lib/module/Engage/components/PrivateCodePrompt.js.map +1 -0
  39. package/lib/module/Engage/index.js +75 -4
  40. package/lib/module/Engage/index.js.map +1 -1
  41. package/lib/typescript/src/CompetitionManager/api/index.d.ts.map +1 -1
  42. package/lib/typescript/src/CompetitionSeasonManager/api/index.d.ts.map +1 -1
  43. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionsForm.d.ts +2 -1
  44. package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionsForm.d.ts.map +1 -1
  45. package/lib/typescript/src/CompetitionSeasonManager/index.d.ts +2 -1
  46. package/lib/typescript/src/CompetitionSeasonManager/index.d.ts.map +1 -1
  47. package/lib/typescript/src/Components/SearchBox.d.ts +2 -1
  48. package/lib/typescript/src/Components/SearchBox.d.ts.map +1 -1
  49. package/lib/typescript/src/Engage/api/index.d.ts +7 -0
  50. package/lib/typescript/src/Engage/api/index.d.ts.map +1 -1
  51. package/lib/typescript/src/Engage/components/CompanyCard.d.ts +9 -0
  52. package/lib/typescript/src/Engage/components/CompanyCard.d.ts.map +1 -0
  53. package/lib/typescript/src/Engage/components/EngageHeader.d.ts +9 -0
  54. package/lib/typescript/src/Engage/components/EngageHeader.d.ts.map +1 -0
  55. package/lib/typescript/src/Engage/components/PrivateCodePrompt.d.ts +13 -0
  56. package/lib/typescript/src/Engage/components/PrivateCodePrompt.d.ts.map +1 -0
  57. package/lib/typescript/src/Engage/index.d.ts.map +1 -1
  58. package/package.json +1 -1
  59. package/src/CompetitionManager/api/index.ts +0 -2
  60. package/src/CompetitionSeasonManager/api/index.ts +0 -1
  61. package/src/CompetitionSeasonManager/components/CompetitionsForm.tsx +4 -3
  62. package/src/CompetitionSeasonManager/index.tsx +4 -2
  63. package/src/Components/SearchBox.tsx +4 -3
  64. package/src/Engage/api/index.ts +18 -3
  65. package/src/Engage/components/CompanyCard.tsx +48 -0
  66. package/src/Engage/components/EngageHeader.tsx +139 -0
  67. package/src/Engage/components/PrivateCodePrompt.tsx +94 -0
  68. package/src/Engage/index.tsx +181 -132
  69. package/src/types.d.ts +1 -0
@@ -1,16 +1,18 @@
1
1
  import React, { useEffect, useState } from 'react';
2
- import { View, ActivityIndicator, FlatList } from 'react-native';
2
+ import { View, ActivityIndicator, FlatList, ScrollView } from 'react-native';
3
3
  import type { BracketCompetitionProps, BracketProps, CompanyProps, CompetitionPayoutTypeProps, CompetitionProps, CompetitionResultTypeProps, CompetitionSeasonProps, CompetitionTypeProps, EventProps, LeagueProps, PublicPlayerProps, SquaresCompetitionProps } from '../types';
4
4
  import Colors from '../constants/colors';
5
5
  import { EngageApi, EngageHelpers } from './api';
6
6
  import CompetitionCard from './components/CompetitionCard';
7
7
  import { view_styles } from '../constants/styles';
8
- import { Button, Text } from '../Components';
8
+ import { Button, Icons, Text } from '../Components';
9
9
  import SquaresCompetitionCard from './components/SquaresCompetitionCard';
10
10
  import BracketCompetitionCard from './components/BracketCompetitionCard';
11
11
  import moment from 'moment-mini';
12
12
  import SocketManager from '../Socket';
13
13
  import SeasonCard from './components/SeasonCard';
14
+ import EngageHeader from './components/EngageHeader';
15
+ import PrivateCodePrompt from './components/PrivateCodePrompt';
14
16
 
15
17
 
16
18
  type EngageModuleProps = {
@@ -29,6 +31,7 @@ const EngageModule = ({ onSelectBracketCompetition, onSelectCompetition, onSelec
29
31
  onCreateSeason, onCreateCompetition, onCreateBracketCompetition, onCreateSquares
30
32
  }:EngageModuleProps) => {
31
33
  const [ module_size, setModuleSize ] = useState({ width:0, height:0 });
34
+ const [ show_code_prompt, setShowCodePrompt ] = useState(false);
32
35
  const [ socket_state, setSocketState ] = useState<{
33
36
  connected:boolean,
34
37
  reload_needed?:boolean
@@ -67,7 +70,6 @@ const EngageModule = ({ onSelectBracketCompetition, onSelectCompetition, onSelec
67
70
  });
68
71
  const { loading, competitions, competition_seasons, competition_result_types, squares_competitions, brackets, leagues, bracket_competitions, events, competition_types, companies, players } = module_data;
69
72
 
70
-
71
73
  useEffect(() => {
72
74
  EngageApi.setEnvironment();
73
75
  getDataFromServer()
@@ -118,6 +120,7 @@ const EngageModule = ({ onSelectBracketCompetition, onSelectCompetition, onSelec
118
120
  })
119
121
  }
120
122
 
123
+
121
124
  const renderSquaresCompetitions = (data: { item:SquaresCompetitionProps, index:number }) => {
122
125
  const admin = players.find(p => p.player_id == data.item.admin_id);
123
126
  const company = companies.find(c => c.company_id == data.item.company_id);
@@ -200,152 +203,198 @@ const EngageModule = ({ onSelectBracketCompetition, onSelectCompetition, onSelec
200
203
  }
201
204
 
202
205
  return (
203
- <View style={{ flex:1, backgroundColor:Colors.shades.white }} onLayout={(ev) => {
204
- const { height, width } = ev.nativeEvent.layout;
205
- setModuleSize({ width, height })
206
- }}>
207
- <View style={{ ...view_styles.body_row, margin:10, backgroundColor:Colors.shades.white, borderRadius:22, borderWidth:4, borderColor:Colors.shades.shade100}}>
208
- <Button
209
- title='COMPETITIONS'
210
- title_color={active_tab == 'competitions' ? Colors.shades.white : Colors.brand.midnight}
211
- title_weight={active_tab == 'competitions' ? 'bold' : 'regular'}
212
- padding={15}
213
- title_size={12}
214
- style={{flex:1}}
215
- borderRadiusOverride={{
216
- borderTopLeftRadius: 22,
217
- borderBottomLeftRadius:22,
218
- borderTopRightRadius:0,
219
- borderBottomRightRadius:0
220
- }}
221
- backgroundColor={active_tab == 'competitions' ? Colors.brand.midnight : Colors.shades.white}
222
- onPress={() => setActiveTab('competitions')}
206
+ <View style={{ flex:1, backgroundColor:Colors.shades.white }} >
207
+ <ScrollView style={{ flex:1 }} onLayout={(ev) => {
208
+ const { height, width } = ev.nativeEvent.layout;
209
+ setModuleSize({ width, height })
210
+ }}>
211
+ <EngageHeader
212
+ companies={companies}
213
+ width={module_size.width}
223
214
  />
224
- <Button
225
- title='SQUARES'
226
- title_size={12}
227
- title_color={active_tab == 'squares' ? Colors.shades.white : Colors.brand.midnight}
228
- title_weight={active_tab == 'squares' ? 'bold' : 'regular'}
229
- padding={15}
230
- style={{flex:1}}
231
- borderRadius={0}
232
- backgroundColor={active_tab == 'squares' ? Colors.brand.midnight : Colors.shades.white}
233
- onPress={() => setActiveTab('squares')}
234
- />
235
- <Button
236
- title='BRACKETS'
237
- style={{flex:1}}
238
- title_size={12}
239
- title_color={active_tab == 'brackets' ? Colors.shades.white : Colors.brand.midnight}
240
- title_weight={active_tab == 'brackets' ? 'bold' : 'regular'}
241
- padding={15}
242
- borderRadiusOverride={{
243
- borderTopLeftRadius: 0,
244
- borderBottomLeftRadius:0,
245
- borderTopRightRadius:22,
246
- borderBottomRightRadius:22
247
- }}
248
- backgroundColor={active_tab == 'brackets' ? Colors.brand.midnight : Colors.shades.white}
249
- onPress={() => setActiveTab('brackets')}
250
- />
251
- </View>
252
- {active_tab == 'competitions' ?
253
- <View style={{ ...view_styles.section_body, justifyContent:'flex-start', padding:0 }}>
254
- {competition_seasons.length > 0 ?
255
- <View>
256
- <View style={{ ...view_styles.section_header, backgroundColor:Colors.shades.shade100, borderRadius:0, marginBottom:10 }}>
257
- <View style={{ flex:1 }}>
258
- <Text theme='header'>Public Seasons</Text>
259
- <Text style={{ marginTop:3 }} theme='body'>Seasons are multi-competition contests. Payouts are split between each competition and the season long winners.</Text>
260
- </View>
261
- {onCreateSeason ?
262
- <Button
263
- title='NEW'
264
- title_color={Colors.shades.white}
265
- backgroundColor={Colors.utility.success}
266
- onPress={() => onCreateSeason()}
267
- />
268
- :<></>}
215
+ <View style={{ ...view_styles.body_row, margin:10, backgroundColor:Colors.shades.white, borderRadius:22, borderWidth:4, borderColor:Colors.shades.shade100}}>
216
+ <Button
217
+ title='COMPETITIONS'
218
+ title_color={active_tab == 'competitions' ? Colors.shades.white : Colors.brand.midnight}
219
+ title_weight={active_tab == 'competitions' ? 'bold' : 'regular'}
220
+ padding={15}
221
+ title_size={12}
222
+ style={{flex:1}}
223
+ borderRadiusOverride={{
224
+ borderTopLeftRadius: 22,
225
+ borderBottomLeftRadius:22,
226
+ borderTopRightRadius:0,
227
+ borderBottomRightRadius:0
228
+ }}
229
+ backgroundColor={active_tab == 'competitions' ? Colors.brand.midnight : Colors.shades.white}
230
+ onPress={() => setActiveTab('competitions')}
231
+ />
232
+ <Button
233
+ title='SQUARES'
234
+ title_size={12}
235
+ title_color={active_tab == 'squares' ? Colors.shades.white : Colors.brand.midnight}
236
+ title_weight={active_tab == 'squares' ? 'bold' : 'regular'}
237
+ padding={15}
238
+ style={{flex:1}}
239
+ borderRadius={0}
240
+ backgroundColor={active_tab == 'squares' ? Colors.brand.midnight : Colors.shades.white}
241
+ onPress={() => setActiveTab('squares')}
242
+ />
243
+ <Button
244
+ title='BRACKETS'
245
+ style={{flex:1}}
246
+ title_size={12}
247
+ title_color={active_tab == 'brackets' ? Colors.shades.white : Colors.brand.midnight}
248
+ title_weight={active_tab == 'brackets' ? 'bold' : 'regular'}
249
+ padding={15}
250
+ borderRadiusOverride={{
251
+ borderTopLeftRadius: 0,
252
+ borderBottomLeftRadius:0,
253
+ borderTopRightRadius:22,
254
+ borderBottomRightRadius:22
255
+ }}
256
+ backgroundColor={active_tab == 'brackets' ? Colors.brand.midnight : Colors.shades.white}
257
+ onPress={() => setActiveTab('brackets')}
258
+ />
259
+ </View>
260
+ <View style={{ ...view_styles.section_header, backgroundColor:Colors.shades.shade600, borderRadius:0, marginBottom:10 }}>
261
+ <Icons.EyeOffIcon size={18} color={Colors.brand.midnight} />
262
+ <View style={{ flex:1, marginLeft:10 }}>
263
+ <Text theme='header'>Find Private</Text>
264
+ <Text style={{ marginTop:3 }} theme='body'>Did you receive a private code? Enter it here.</Text>
269
265
  </View>
270
- <FlatList
271
- data={competition_seasons.sort((a,b) => moment(a.scheduled_datetime).unix() - moment(b.scheduled_datetime).unix())}
272
- horizontal
273
- keyExtractor={(item) => item.competition_season_id.toString()}
274
- renderItem={renderSeasons}
266
+ <Button
267
+ title='ENTER PRIVATE CODE'
268
+ padding={15}
269
+ title_color={Colors.shades.white}
270
+ backgroundColor={Colors.utility.success}
271
+ onPress={() => setShowCodePrompt(true)}
275
272
  />
276
273
  </View>
277
- :<></>}
278
- <View style={{ marginBottom:15, marginTop:10 }}>
279
- <View style={{ ...view_styles.section_header, backgroundColor:Colors.shades.shade100, borderRadius:0 }}>
280
- <View style={{ flex:1 }}>
281
- <Text theme='header'>Public Competitions</Text>
282
- <Text style={{ marginTop:3 }} theme='body'>Below are available pick-em and wager based competitions. All competitions are offered with 0 fees. All ticket sales are paid out to the winners!</Text>
274
+ {active_tab == 'competitions' ?
275
+ <View style={{ ...view_styles.section_body, justifyContent:'flex-start', padding:0 }}>
276
+ {competition_seasons.length > 0 ?
277
+ <View style={{ marginTop:10 }}>
278
+ <View style={{ ...view_styles.section_header, backgroundColor:Colors.shades.shade100, borderRadius:0, marginBottom:10 }}>
279
+ <View style={{ flex:1 }}>
280
+ <Text theme='header'>Public Seasons</Text>
281
+ <Text style={{ marginTop:3 }} theme='body'>Seasons are multi-competition contests. Payouts are split between each competition and the season long winners.</Text>
282
+ </View>
283
+ {onCreateSeason ?
284
+ <Button
285
+ title='NEW'
286
+ title_color={Colors.shades.white}
287
+ backgroundColor={Colors.utility.success}
288
+ onPress={() => onCreateSeason()}
289
+ />
290
+ :<></>}
283
291
  </View>
284
- {onCreateCompetition ?
285
- <Button
286
- title='NEW'
287
- title_color={Colors.shades.white}
288
- backgroundColor={Colors.utility.success}
289
- onPress={() => onCreateCompetition()}
292
+ <FlatList
293
+ data={competition_seasons.sort((a,b) => moment(a.scheduled_datetime).unix() - moment(b.scheduled_datetime).unix())}
294
+ horizontal
295
+ keyExtractor={(item) => item.competition_season_id.toString()}
296
+ renderItem={renderSeasons}
290
297
  />
291
- :<></>}
292
298
  </View>
299
+ :<></>}
300
+ <View style={{ marginBottom:15, marginTop:10 }}>
301
+ <View style={{ ...view_styles.section_header, backgroundColor:Colors.shades.shade100, borderRadius:0 }}>
302
+ <View style={{ flex:1 }}>
303
+ <Text theme='header'>Public Competitions</Text>
304
+ <Text style={{ marginTop:3 }} theme='body'>Below are available pick-em and wager based competitions. All competitions are offered with 0 fees. All ticket sales are paid out to the winners!</Text>
305
+ </View>
306
+ {onCreateCompetition ?
307
+ <Button
308
+ title='NEW'
309
+ title_color={Colors.shades.white}
310
+ backgroundColor={Colors.utility.success}
311
+ onPress={() => onCreateCompetition()}
312
+ />
313
+ :<></>}
314
+ </View>
315
+ </View>
316
+ <FlatList
317
+ data={competitions.sort((a,b) => moment(a.scheduled_datetime).unix() - moment(b.scheduled_datetime).unix())}
318
+ renderItem={renderCompetitions}
319
+ keyExtractor={(item) => item.competition_id.toString()}
320
+ />
293
321
  </View>
294
- <FlatList
295
- data={competitions.sort((a,b) => moment(a.scheduled_datetime).unix() - moment(b.scheduled_datetime).unix())}
296
- renderItem={renderCompetitions}
297
- keyExtractor={(item) => item.competition_id.toString()}
298
- />
299
- </View>
300
- :active_tab == 'squares' ?
301
- <View style={{ ...view_styles.section_body, padding:0 }}>
302
- <View style={{ marginBottom:15, marginTop:10 }}>
303
- <View style={{ ...view_styles.section_header, backgroundColor:Colors.shades.shade100, borderRadius:0 }}>
304
- <View style={{ flex:1 }}>
305
- <Text theme='header'>Public Auction Squares</Text>
306
- <Text style={{ marginTop:3 }} theme='body'>Below are available squares competitions. Bid on squares until the auction period ends. Win $ and prizes when your square hits at the end of each quarter!</Text>
322
+ :active_tab == 'squares' ?
323
+ <View style={{ ...view_styles.section_body, padding:0 }}>
324
+ <View style={{ marginBottom:15, marginTop:10 }}>
325
+ <View style={{ ...view_styles.section_header, backgroundColor:Colors.shades.shade100, borderRadius:0 }}>
326
+ <View style={{ flex:1 }}>
327
+ <Text theme='header'>Public Auction Squares</Text>
328
+ <Text style={{ marginTop:3 }} theme='body'>Below are available squares competitions. Bid on squares until the auction period ends. Win $ and prizes when your square hits at the end of each quarter!</Text>
329
+ </View>
330
+ {onCreateSquares ?
331
+ <Button
332
+ title='NEW'
333
+ title_color={Colors.shades.white}
334
+ backgroundColor={Colors.utility.success}
335
+ onPress={() => onCreateSquares()}
336
+ />
337
+ :<></>}
307
338
  </View>
308
- {onCreateSquares ?
309
- <Button
310
- title='NEW'
311
- title_color={Colors.shades.white}
312
- backgroundColor={Colors.utility.success}
313
- onPress={() => onCreateSquares()}
314
- />
315
- :<></>}
316
339
  </View>
340
+ <FlatList
341
+ data={squares_competitions.sort((a,b) => moment(a.begin_datetime).unix() - moment(b.begin_datetime).unix())}
342
+ renderItem={renderSquaresCompetitions}
343
+ keyExtractor={(item) => item.sq_comp_id.toString()}
344
+ />
317
345
  </View>
318
- <FlatList
319
- data={squares_competitions.sort((a,b) => moment(a.begin_datetime).unix() - moment(b.begin_datetime).unix())}
320
- renderItem={renderSquaresCompetitions}
321
- keyExtractor={(item) => item.sq_comp_id.toString()}
322
- />
323
- </View>
324
- :active_tab == 'brackets' ?
325
- <View style={{ ...view_styles.section_body, padding:0 }}>
326
- <View style={{ marginBottom:15, marginTop:10 }}>
327
- <View style={{ ...view_styles.section_header, backgroundColor:Colors.shades.shade100, borderRadius:0 }}>
328
- <View style={{ flex:1 }}>
329
- <Text theme='header'>Public Bracket Competitions</Text>
330
- <Text style={{ marginTop:3 }} theme='body'>Below are available bracket competitions. All competitions are offered with 0 fees. All ticket sales are paid out to the winners!</Text>
346
+ :active_tab == 'brackets' ?
347
+ <View style={{ ...view_styles.section_body, padding:0 }}>
348
+ <View style={{ marginBottom:15, marginTop:10 }}>
349
+ <View style={{ ...view_styles.section_header, backgroundColor:Colors.shades.shade100, borderRadius:0 }}>
350
+ <View style={{ flex:1 }}>
351
+ <Text theme='header'>Public Bracket Competitions</Text>
352
+ <Text style={{ marginTop:3 }} theme='body'>Below are available bracket competitions. All competitions are offered with 0 fees. All ticket sales are paid out to the winners!</Text>
353
+ </View>
354
+ {onCreateBracketCompetition ?
355
+ <Button
356
+ title='NEW'
357
+ title_color={Colors.shades.white}
358
+ backgroundColor={Colors.utility.success}
359
+ onPress={() => onCreateBracketCompetition()}
360
+ />
361
+ :<></>}
331
362
  </View>
332
- {onCreateBracketCompetition ?
333
- <Button
334
- title='NEW'
335
- title_color={Colors.shades.white}
336
- backgroundColor={Colors.utility.success}
337
- onPress={() => onCreateBracketCompetition()}
338
- />
339
- :<></>}
340
363
  </View>
364
+ <FlatList
365
+ data={bracket_competitions.sort((a,b) => moment(a.scheduled_datetime).unix() - moment(b.scheduled_datetime).unix())}
366
+ renderItem={renderBracketCompetitions}
367
+ keyExtractor={(item) => item.bracket_competition_id.toString()}
368
+ />
341
369
  </View>
342
- <FlatList
343
- data={bracket_competitions.sort((a,b) => moment(a.scheduled_datetime).unix() - moment(b.scheduled_datetime).unix())}
344
- renderItem={renderBracketCompetitions}
345
- keyExtractor={(item) => item.bracket_competition_id.toString()}
370
+ :<></>}
371
+ </ScrollView>
372
+ {show_code_prompt ?
373
+ <View style={{ position:'absolute', top:0, left:0, right:0, bottom:0, justifyContent:'flex-end', backgroundColor:Colors.shades.black_faded_heavy }}>
374
+ <PrivateCodePrompt
375
+ width={module_size.width - 20}
376
+ onFoundBracket={(b) => {
377
+ onSelectBracketCompetition(b)
378
+ setShowCodePrompt(false);
379
+ }}
380
+ onFoundCompetition={(c) => {
381
+ onSelectCompetition(c)
382
+ setShowCodePrompt(false);
383
+
384
+ }}
385
+ onFoundSeason={(s) => {
386
+ onSelectCompetitionSeason(s)
387
+ setShowCodePrompt(false);
388
+ }}
389
+ onFoundSquaresCompetition={(sc) => {
390
+ onSelectSquaresCompetition(sc)
391
+ setShowCodePrompt(false);
392
+ }}
393
+ onClose={() => setShowCodePrompt(false)}
346
394
  />
347
395
  </View>
348
396
  :<></>}
397
+
349
398
  <SocketManager
350
399
  onConnect={() => setSocketState({ ...socket_state, connected: true })}
351
400
  subscribed_events={[]}
package/src/types.d.ts CHANGED
@@ -39,6 +39,7 @@ export interface CompanyProps {
39
39
  width?:number,
40
40
  height?:number
41
41
  },
42
+ company_url?:string,
42
43
  brand_primary?:string,
43
44
  brand_secondary?:string,
44
45
  advertising_enabled:boolean,