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.
- package/lib/commonjs/CompetitionManager/api/index.js +0 -2
- package/lib/commonjs/CompetitionManager/api/index.js.map +1 -1
- package/lib/commonjs/CompetitionSeasonManager/api/index.js +0 -1
- package/lib/commonjs/CompetitionSeasonManager/api/index.js.map +1 -1
- package/lib/commonjs/CompetitionSeasonManager/components/CompetitionsForm.js +3 -2
- package/lib/commonjs/CompetitionSeasonManager/components/CompetitionsForm.js.map +1 -1
- package/lib/commonjs/CompetitionSeasonManager/index.js +3 -1
- package/lib/commonjs/CompetitionSeasonManager/index.js.map +1 -1
- package/lib/commonjs/Components/SearchBox.js +4 -2
- package/lib/commonjs/Components/SearchBox.js.map +1 -1
- package/lib/commonjs/Engage/api/index.js +23 -3
- package/lib/commonjs/Engage/api/index.js.map +1 -1
- package/lib/commonjs/Engage/components/CompanyCard.js +83 -0
- package/lib/commonjs/Engage/components/CompanyCard.js.map +1 -0
- package/lib/commonjs/Engage/components/EngageHeader.js +181 -0
- package/lib/commonjs/Engage/components/EngageHeader.js.map +1 -0
- package/lib/commonjs/Engage/components/PrivateCodePrompt.js +158 -0
- package/lib/commonjs/Engage/components/PrivateCodePrompt.js.map +1 -0
- package/lib/commonjs/Engage/index.js +73 -2
- package/lib/commonjs/Engage/index.js.map +1 -1
- package/lib/module/CompetitionManager/api/index.js +0 -2
- package/lib/module/CompetitionManager/api/index.js.map +1 -1
- package/lib/module/CompetitionSeasonManager/api/index.js +0 -1
- package/lib/module/CompetitionSeasonManager/api/index.js.map +1 -1
- package/lib/module/CompetitionSeasonManager/components/CompetitionsForm.js +3 -2
- package/lib/module/CompetitionSeasonManager/components/CompetitionsForm.js.map +1 -1
- package/lib/module/CompetitionSeasonManager/index.js +3 -1
- package/lib/module/CompetitionSeasonManager/index.js.map +1 -1
- package/lib/module/Components/SearchBox.js +4 -2
- package/lib/module/Components/SearchBox.js.map +1 -1
- package/lib/module/Engage/api/index.js +23 -3
- package/lib/module/Engage/api/index.js.map +1 -1
- package/lib/module/Engage/components/CompanyCard.js +76 -0
- package/lib/module/Engage/components/CompanyCard.js.map +1 -0
- package/lib/module/Engage/components/EngageHeader.js +172 -0
- package/lib/module/Engage/components/EngageHeader.js.map +1 -0
- package/lib/module/Engage/components/PrivateCodePrompt.js +149 -0
- package/lib/module/Engage/components/PrivateCodePrompt.js.map +1 -0
- package/lib/module/Engage/index.js +75 -4
- package/lib/module/Engage/index.js.map +1 -1
- package/lib/typescript/src/CompetitionManager/api/index.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionSeasonManager/api/index.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionsForm.d.ts +2 -1
- package/lib/typescript/src/CompetitionSeasonManager/components/CompetitionsForm.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionSeasonManager/index.d.ts +2 -1
- package/lib/typescript/src/CompetitionSeasonManager/index.d.ts.map +1 -1
- package/lib/typescript/src/Components/SearchBox.d.ts +2 -1
- package/lib/typescript/src/Components/SearchBox.d.ts.map +1 -1
- package/lib/typescript/src/Engage/api/index.d.ts +7 -0
- package/lib/typescript/src/Engage/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Engage/components/CompanyCard.d.ts +9 -0
- package/lib/typescript/src/Engage/components/CompanyCard.d.ts.map +1 -0
- package/lib/typescript/src/Engage/components/EngageHeader.d.ts +9 -0
- package/lib/typescript/src/Engage/components/EngageHeader.d.ts.map +1 -0
- package/lib/typescript/src/Engage/components/PrivateCodePrompt.d.ts +13 -0
- package/lib/typescript/src/Engage/components/PrivateCodePrompt.d.ts.map +1 -0
- package/lib/typescript/src/Engage/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/CompetitionManager/api/index.ts +0 -2
- package/src/CompetitionSeasonManager/api/index.ts +0 -1
- package/src/CompetitionSeasonManager/components/CompetitionsForm.tsx +4 -3
- package/src/CompetitionSeasonManager/index.tsx +4 -2
- package/src/Components/SearchBox.tsx +4 -3
- package/src/Engage/api/index.ts +18 -3
- package/src/Engage/components/CompanyCard.tsx +48 -0
- package/src/Engage/components/EngageHeader.tsx +139 -0
- package/src/Engage/components/PrivateCodePrompt.tsx +94 -0
- package/src/Engage/index.tsx +181 -132
- package/src/types.d.ts +1 -0
package/src/Engage/index.tsx
CHANGED
|
@@ -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 }}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
<
|
|
209
|
-
|
|
210
|
-
|
|
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
|
-
<
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
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
|
-
<
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
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={{
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
<
|
|
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
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
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
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
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
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
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
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
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={[]}
|