be-components 2.8.2 → 3.0.0
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 +3 -3
- package/lib/commonjs/ApiOverrides/index.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/LoginForm.js +4 -1
- package/lib/commonjs/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/StrategyForm.js +6 -0
- package/lib/commonjs/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/commonjs/Authenticator/api/index.js +4 -5
- package/lib/commonjs/Authenticator/api/index.js.map +1 -1
- package/lib/commonjs/Competition/components/AthleteMarketCard.js +1 -3
- package/lib/commonjs/Competition/components/AthleteMarketCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionPlay.js +3 -3
- package/lib/commonjs/Competition/components/CompetitionPlay.js.map +1 -1
- package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js +1 -3
- package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js.map +1 -1
- package/lib/commonjs/Competition/index.js +9 -14
- package/lib/commonjs/Competition/index.js.map +1 -1
- package/lib/commonjs/Components/Button.js +3 -2
- package/lib/commonjs/Components/Button.js.map +1 -1
- package/lib/commonjs/Components/Icons.js +642 -942
- package/lib/commonjs/Components/Icons.js.map +1 -1
- package/lib/commonjs/Components/ImageUploader.js +96 -45
- package/lib/commonjs/Components/ImageUploader.js.map +1 -1
- package/lib/commonjs/Components/Jerseys.js +114 -124
- package/lib/commonjs/Components/Jerseys.js.map +1 -1
- package/lib/commonjs/Components/LinearDiagnal.js +2 -2
- package/lib/commonjs/Components/LinearDiagnal.js.map +1 -1
- package/lib/commonjs/Components/Spring.js +19 -7
- package/lib/commonjs/Components/Spring.js.map +1 -1
- package/lib/commonjs/Components/Text.js +6 -6
- package/lib/commonjs/Components/Text.js.map +1 -1
- package/lib/commonjs/Components/TextInput.js +2 -2
- package/lib/commonjs/Components/TextInput.js.map +1 -1
- package/lib/commonjs/Components/ViewportObserver.js +7 -0
- package/lib/commonjs/Components/ViewportObserver.js.map +1 -1
- package/lib/commonjs/EventComponents/TeamProfile/index.js +2 -2
- package/lib/commonjs/EventComponents/TeamProfile/index.js.map +1 -1
- package/lib/commonjs/Font.css +4 -4
- package/lib/commonjs/LocationTracker/LocationStatus.js +7 -4
- package/lib/commonjs/LocationTracker/LocationStatus.js.map +1 -1
- package/lib/commonjs/LocationTracker/api/index.js +225 -96
- package/lib/commonjs/LocationTracker/api/index.js.map +1 -1
- package/lib/commonjs/LocationTracker/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/api/index.js +0 -2
- package/lib/commonjs/MarketComponents/api/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/AthleteMarket/index.js +0 -2
- package/lib/commonjs/MarketComponents/components/AthleteMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/EventMarket/index.js +0 -1
- package/lib/commonjs/MarketComponents/components/EventMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/MatchMarket/index.js +1 -3
- package/lib/commonjs/MarketComponents/components/MatchMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/index.js +6 -5
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TournamentMarket/index.js +10 -6
- package/lib/commonjs/MarketComponents/components/TournamentMarket/index.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js +8 -7
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js +4 -1
- package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/commonjs/SocialComponents/AudioPlayer.js +2 -3
- package/lib/commonjs/SocialComponents/AudioPlayer.js.map +1 -1
- package/lib/commonjs/SocialComponents/PlayerProfile/components/PostsList.js +60 -51
- package/lib/commonjs/SocialComponents/PlayerProfile/components/PostsList.js.map +1 -1
- package/lib/commonjs/SocialComponents/PlayerProfile/index.js +5 -7
- package/lib/commonjs/SocialComponents/PlayerProfile/index.js.map +1 -1
- package/lib/commonjs/Squares/components/BidForm.js +1 -7
- package/lib/commonjs/Squares/components/BidForm.js.map +1 -1
- package/lib/commonjs/Squares/components/BidToggle.js +0 -1
- package/lib/commonjs/Squares/components/BidToggle.js.map +1 -1
- package/lib/commonjs/Squares/components/SquareCard.js +2 -1
- package/lib/commonjs/Squares/components/SquareCard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquaresBoard.js +11 -7
- package/lib/commonjs/Squares/components/SquaresBoard.js.map +1 -1
- package/lib/commonjs/Squares/index.js +10 -10
- package/lib/commonjs/Squares/index.js.map +1 -1
- package/lib/commonjs/constants/styles.js +9 -9
- package/lib/commonjs/constants/styles.js.map +1 -1
- package/lib/commonjs/index.js +2 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/ApiOverrides/index.js +3 -3
- package/lib/module/ApiOverrides/index.js.map +1 -1
- package/lib/module/Authenticator/Components/LoginForm.js +4 -1
- package/lib/module/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/module/Authenticator/Components/StrategyForm.js +6 -0
- package/lib/module/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/module/Authenticator/api/index.js +4 -5
- package/lib/module/Authenticator/api/index.js.map +1 -1
- package/lib/module/Competition/components/AthleteMarketCard.js +1 -3
- package/lib/module/Competition/components/AthleteMarketCard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionPlay.js +1 -1
- package/lib/module/Competition/components/CompetitionPlay.js.map +1 -1
- package/lib/module/Competition/components/EnterCompetitionPrompt.js +1 -3
- package/lib/module/Competition/components/EnterCompetitionPrompt.js.map +1 -1
- package/lib/module/Competition/index.js +10 -15
- package/lib/module/Competition/index.js.map +1 -1
- package/lib/module/Components/Button.js +3 -2
- package/lib/module/Components/Button.js.map +1 -1
- package/lib/module/Components/Icons.js +640 -942
- package/lib/module/Components/Icons.js.map +1 -1
- package/lib/module/Components/ImageUploader.js +96 -45
- package/lib/module/Components/ImageUploader.js.map +1 -1
- package/lib/module/Components/Jerseys.js +112 -124
- package/lib/module/Components/Jerseys.js.map +1 -1
- package/lib/module/Components/LinearDiagnal.js +1 -1
- package/lib/module/Components/LinearDiagnal.js.map +1 -1
- package/lib/module/Components/Spring.js +19 -7
- package/lib/module/Components/Spring.js.map +1 -1
- package/lib/module/Components/Text.js +6 -6
- package/lib/module/Components/Text.js.map +1 -1
- package/lib/module/Components/TextInput.js +2 -2
- package/lib/module/Components/TextInput.js.map +1 -1
- package/lib/module/Components/ViewportObserver.js +7 -0
- package/lib/module/Components/ViewportObserver.js.map +1 -1
- package/lib/module/EventComponents/TeamProfile/index.js +1 -1
- package/lib/module/EventComponents/TeamProfile/index.js.map +1 -1
- package/lib/module/Font.css +4 -4
- package/lib/module/LocationTracker/LocationStatus.js +5 -4
- package/lib/module/LocationTracker/LocationStatus.js.map +1 -1
- package/lib/module/LocationTracker/api/index.js +222 -96
- package/lib/module/LocationTracker/api/index.js.map +1 -1
- package/lib/module/LocationTracker/index.js.map +1 -1
- package/lib/module/MarketComponents/api/index.js +0 -2
- package/lib/module/MarketComponents/api/index.js.map +1 -1
- package/lib/module/MarketComponents/components/AthleteMarket/index.js +0 -2
- package/lib/module/MarketComponents/components/AthleteMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/EventMarket/index.js +0 -1
- package/lib/module/MarketComponents/components/EventMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/MatchMarket/index.js +1 -3
- package/lib/module/MarketComponents/components/MatchMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/TeamEventMarket/index.js +5 -4
- package/lib/module/MarketComponents/components/TeamEventMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/TournamentMarket/index.js +11 -7
- package/lib/module/MarketComponents/components/TournamentMarket/index.js.map +1 -1
- package/lib/module/ProfileManager/Components/PasswordManager.js +8 -7
- package/lib/module/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfilePicManager.js +4 -1
- package/lib/module/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/module/SocialComponents/AudioPlayer.js +2 -3
- package/lib/module/SocialComponents/AudioPlayer.js.map +1 -1
- package/lib/module/SocialComponents/PlayerProfile/components/PostsList.js +59 -50
- package/lib/module/SocialComponents/PlayerProfile/components/PostsList.js.map +1 -1
- package/lib/module/SocialComponents/PlayerProfile/index.js +6 -8
- package/lib/module/SocialComponents/PlayerProfile/index.js.map +1 -1
- package/lib/module/Squares/components/BidForm.js +1 -7
- package/lib/module/Squares/components/BidForm.js.map +1 -1
- package/lib/module/Squares/components/BidToggle.js +0 -1
- package/lib/module/Squares/components/BidToggle.js.map +1 -1
- package/lib/module/Squares/components/SquareCard.js +2 -1
- package/lib/module/Squares/components/SquareCard.js.map +1 -1
- package/lib/module/Squares/components/SquaresBoard.js +12 -8
- package/lib/module/Squares/components/SquaresBoard.js.map +1 -1
- package/lib/module/Squares/index.js +11 -11
- package/lib/module/Squares/index.js.map +1 -1
- package/lib/module/constants/styles.js +9 -9
- package/lib/module/constants/styles.js.map +1 -1
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/ApiOverrides/index.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/EnterCompetitionPrompt.d.ts +1 -1
- package/lib/typescript/src/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
- package/lib/typescript/src/Competition/index.d.ts.map +1 -1
- package/lib/typescript/src/Components/Icons.d.ts +1 -2
- package/lib/typescript/src/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/src/Components/ImageUploader.d.ts +2 -2
- package/lib/typescript/src/Components/ImageUploader.d.ts.map +1 -1
- package/lib/typescript/src/Components/Jerseys.d.ts.map +1 -1
- package/lib/typescript/src/Components/Spring.d.ts.map +1 -1
- package/lib/typescript/src/Components/Text.d.ts.map +1 -1
- package/lib/typescript/src/Components/TextInput.d.ts +2 -2
- package/lib/typescript/src/Components/TextInput.d.ts.map +1 -1
- package/lib/typescript/src/Components/ViewportObserver.d.ts.map +1 -1
- package/lib/typescript/src/EventComponents/index.d.ts.map +1 -1
- package/lib/typescript/src/LocationTracker/LocationStatus.d.ts +2 -1
- package/lib/typescript/src/LocationTracker/LocationStatus.d.ts.map +1 -1
- package/lib/typescript/src/LocationTracker/api/index.d.ts +5 -3
- package/lib/typescript/src/LocationTracker/api/index.d.ts.map +1 -1
- package/lib/typescript/src/LocationTracker/index.d.ts +2 -1
- package/lib/typescript/src/LocationTracker/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/api/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TeamEventMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/index.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
- package/lib/typescript/src/SocialComponents/PlayerProfile/components/PostsList.d.ts +1 -1
- package/lib/typescript/src/SocialComponents/PlayerProfile/components/PostsList.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/BidForm.d.ts +1 -1
- package/lib/typescript/src/Squares/components/BidForm.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquaresBoard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/index.d.ts.map +1 -1
- package/lib/typescript/src/constants/styles.d.ts +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +23 -7
- package/src/ApiOverrides/index.ts +4 -3
- package/src/Authenticator/Components/LoginForm.tsx +4 -1
- package/src/Authenticator/Components/StrategyForm.tsx +6 -0
- package/src/Authenticator/api/index.ts +6 -8
- package/src/Competition/components/AthleteMarketCard.tsx +1 -1
- package/src/Competition/components/CompetitionPlay.tsx +1 -1
- package/src/Competition/components/EnterCompetitionPrompt.tsx +3 -3
- package/src/Competition/index.tsx +11 -12
- package/src/Components/Button.tsx +20 -20
- package/src/Components/Icons.tsx +778 -897
- package/src/Components/ImageUploader.tsx +59 -12
- package/src/Components/Jerseys.tsx +127 -132
- package/src/Components/LinearDiagnal.tsx +1 -1
- package/src/Components/Spring.tsx +24 -7
- package/src/Components/Text.tsx +6 -9
- package/src/Components/TextInput.tsx +3 -3
- package/src/Components/ViewportObserver.tsx +4 -0
- package/src/EventComponents/TeamProfile/index.tsx +1 -1
- package/src/Font.css +4 -4
- package/src/LocationTracker/LocationStatus.tsx +6 -6
- package/src/LocationTracker/api/index.tsx +172 -59
- package/src/LocationTracker/index.tsx +2 -1
- package/src/MarketComponents/api/index.ts +0 -2
- package/src/MarketComponents/components/AthleteMarket/index.tsx +2 -2
- package/src/MarketComponents/components/EventMarket/index.tsx +1 -1
- package/src/MarketComponents/components/MatchMarket/index.tsx +3 -4
- package/src/MarketComponents/components/TeamEventMarket/index.tsx +16 -12
- package/src/MarketComponents/components/TournamentMarket/index.tsx +12 -11
- package/src/ProfileManager/Components/PasswordManager.tsx +6 -7
- package/src/ProfileManager/Components/ProfilePicManager.tsx +4 -1
- package/src/SocialComponents/AudioPlayer.tsx +4 -4
- package/src/SocialComponents/PlayerProfile/components/PostsList.tsx +14 -7
- package/src/SocialComponents/PlayerProfile/index.tsx +4 -4
- package/src/Squares/components/BidForm.tsx +4 -5
- package/src/Squares/components/BidToggle.tsx +1 -1
- package/src/Squares/components/SquareCard.tsx +2 -2
- package/src/Squares/components/SquaresBoard.tsx +22 -20
- package/src/Squares/index.tsx +10 -7
- package/src/constants/styles.ts +9 -9
- package/src/index.tsx +2 -0
|
@@ -11,7 +11,7 @@ import EventMarket from '../../components/EventMarket';
|
|
|
11
11
|
|
|
12
12
|
import { MarketComponentApi, MarketComponentHelpers } from '../../api';
|
|
13
13
|
import { MarketButtonHelpers } from '../MarketButton/api';
|
|
14
|
-
import LinearGradient from '
|
|
14
|
+
import { LinearGradient } from 'expo-linear-gradient';
|
|
15
15
|
import { useIsInViewport } from '../../../Components/ViewportObserver';
|
|
16
16
|
import ContestStatsCard from '../ContestStats';
|
|
17
17
|
import PodcastCard from '../PodcastCard';
|
|
@@ -70,7 +70,9 @@ const TeamEventMarket = ({ event, league, init_expanded, show_id, hide_liquidity
|
|
|
70
70
|
|
|
71
71
|
useEffect(() => {
|
|
72
72
|
MarketComponentApi.setEnvironment();
|
|
73
|
-
if(init_expanded){
|
|
73
|
+
if(init_expanded){
|
|
74
|
+
expandedEvent();
|
|
75
|
+
}
|
|
74
76
|
if(event.sponsor_id){ getCompanyFromServer(event.sponsor_id) }
|
|
75
77
|
},[])
|
|
76
78
|
|
|
@@ -111,7 +113,6 @@ const TeamEventMarket = ({ event, league, init_expanded, show_id, hide_liquidity
|
|
|
111
113
|
|
|
112
114
|
if(loaded){ return setExpandedData({ ...expanded_data, expanded: true }) }
|
|
113
115
|
setExpandedData({ ...expanded_data, expanded:true, loading:true });
|
|
114
|
-
|
|
115
116
|
//Need to load our athletes in here!
|
|
116
117
|
const away_athletes = await MarketComponentApi.getAthletesByTeamId(event.away_team_id);
|
|
117
118
|
const home_athletes = await MarketComponentApi.getAthletesByTeamId(event.home_team_id);
|
|
@@ -336,7 +337,7 @@ const TeamEventMarket = ({ event, league, init_expanded, show_id, hide_liquidity
|
|
|
336
337
|
title={event_status == 'active' ? 'Refresh' : 'Activate'}
|
|
337
338
|
style={{ opacity: activate_loading ? 0.5 : 1, marginLeft:5 }}
|
|
338
339
|
disabled={activate_loading}
|
|
339
|
-
loading={activate_loading}
|
|
340
|
+
loading={activate_loading}
|
|
340
341
|
title_color={Colors.shades.white}
|
|
341
342
|
backgroundColor={Colors.utility.success}
|
|
342
343
|
onPress={() => onActivate(event.event_id, 'team')}
|
|
@@ -349,7 +350,7 @@ const TeamEventMarket = ({ event, league, init_expanded, show_id, hide_liquidity
|
|
|
349
350
|
:<></>}
|
|
350
351
|
</LinearGradient>
|
|
351
352
|
:
|
|
352
|
-
<View nativeID='event_header_data' style={{ flexDirection:'row', alignItems:'center', padding:10, borderBottomWidth:1, borderBottomColor:Colors.shades.shade600 }}>
|
|
353
|
+
<View nativeID='event_header_data' style={{ flexDirection:'row', alignItems:'center', flexWrap:'wrap', padding:10, borderBottomWidth:1, borderBottomColor:Colors.shades.shade600 }}>
|
|
353
354
|
<View style={{ flex:1, flexDirection:'row', alignItems:'center' }}>
|
|
354
355
|
{league ?
|
|
355
356
|
<Image
|
|
@@ -577,18 +578,21 @@ const TeamEventMarket = ({ event, league, init_expanded, show_id, hide_liquidity
|
|
|
577
578
|
<Button
|
|
578
579
|
title='SEE ALL'
|
|
579
580
|
padding={15}
|
|
581
|
+
backgroundColor='transparent'
|
|
580
582
|
title_color={Colors.brand.electric}
|
|
581
583
|
onPress={() => onViewAdditionalMarkets(event.event_id, 'team')}
|
|
582
584
|
/>
|
|
583
585
|
}
|
|
584
586
|
</View>
|
|
585
|
-
<
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
587
|
+
<View>
|
|
588
|
+
<FlatList
|
|
589
|
+
data={non_primary_markets}
|
|
590
|
+
renderItem={renderNonPrimaryMarkets}
|
|
591
|
+
showsHorizontalScrollIndicator={false}
|
|
592
|
+
keyExtractor={(item) => `${item.market_id}:${item.side_type}:${item.side_id}`}
|
|
593
|
+
horizontal
|
|
594
|
+
/>
|
|
595
|
+
</View>
|
|
592
596
|
{podcasts.length > 0 ?
|
|
593
597
|
<View style={{ flexDirection:'row', marginTop:10, borderBottomRightRadius:8, borderBottomLeftRadius:8, backgroundColor:Colors.shades.shade100 }}>
|
|
594
598
|
<View style={{ padding:5, paddingRight:20, paddingLeft:20, justifyContent:'center', backgroundColor:Colors.brand.midnight, borderBottomLeftRadius:8 }}>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useRef, useState } from 'react';
|
|
2
|
-
import { View, FlatList, TouchableOpacity, ActivityIndicator, Image } from 'react-native';
|
|
2
|
+
import { View, FlatList, TouchableOpacity, ActivityIndicator, Image, ScrollView } from 'react-native';
|
|
3
3
|
import { view_styles } from '../../../constants/styles';
|
|
4
4
|
import Colors from '../../../constants/colors';
|
|
5
5
|
import type { AthleteProps, BestAvailableOrderProps, EventOrderStatProps, LeagueProps, MarketProps, MatchProps, OrderProps, TeamProps, TournamentProps, TradeProps } from '../../../types';
|
|
@@ -61,7 +61,6 @@ const TournamentMarket = ({ tournament, wrap_markets, width, market_selector_loc
|
|
|
61
61
|
});
|
|
62
62
|
const { loaded, athletes, active_type, loading, matches, teams, active_market, match_trades } = tournament_data;
|
|
63
63
|
const [ show_markets, setShowMarkets ] = useState(false);
|
|
64
|
-
|
|
65
64
|
const ref = useRef(null);
|
|
66
65
|
const is_in_viewport = useIsInViewport(ref)
|
|
67
66
|
|
|
@@ -108,8 +107,8 @@ const TournamentMarket = ({ tournament, wrap_markets, width, market_selector_loc
|
|
|
108
107
|
const tms = await MarketComponentApi.getTeamsByIds(t_ids);
|
|
109
108
|
setTournamentData({
|
|
110
109
|
...tournament_data,
|
|
111
|
-
loaded: true,
|
|
112
110
|
loading:false,
|
|
111
|
+
loaded: true,
|
|
113
112
|
active_type: type as 'futures' | 'matches',
|
|
114
113
|
athletes: aths,
|
|
115
114
|
match_trades: trades,
|
|
@@ -145,7 +144,7 @@ const TournamentMarket = ({ tournament, wrap_markets, width, market_selector_loc
|
|
|
145
144
|
let m_order_stats = match_order_stats.filter(os => os.event_id == data.item.match_id && os.event_type == 'match');
|
|
146
145
|
|
|
147
146
|
return (
|
|
148
|
-
<View
|
|
147
|
+
<View key={`${tournament.tournament_id}_${data.item.match_id}`}>
|
|
149
148
|
<MatchMarket
|
|
150
149
|
match={data.item}
|
|
151
150
|
league={league}
|
|
@@ -176,7 +175,7 @@ const TournamentMarket = ({ tournament, wrap_markets, width, market_selector_loc
|
|
|
176
175
|
let team_trades = latest_trades.filter(t => t.side_type == 'team' && t.side_id == data.item.team_id);
|
|
177
176
|
let team_order_stats = event_order_stats.filter(os => os.side_type == 'team' && os.side_id == data.item.team_id);
|
|
178
177
|
return (
|
|
179
|
-
<View>
|
|
178
|
+
<View key={data.item.team_id.toString()}>
|
|
180
179
|
<TeamTournamentMarket
|
|
181
180
|
team={data.item}
|
|
182
181
|
event_type='tournament'
|
|
@@ -203,7 +202,7 @@ const TournamentMarket = ({ tournament, wrap_markets, width, market_selector_loc
|
|
|
203
202
|
let team_trades = latest_trades.filter(t => t.side_type == 'athlete' && t.side_id == data.item.athlete_id);
|
|
204
203
|
let team_order_stats = event_order_stats.filter(os => os.side_type == 'athlete' && os.side_id == data.item.athlete_id);
|
|
205
204
|
return (
|
|
206
|
-
<View>
|
|
205
|
+
<View key={data.item.athlete_id.toString()}>
|
|
207
206
|
<AthleteTournamentMarket
|
|
208
207
|
athlete={data.item}
|
|
209
208
|
event_type='tournament'
|
|
@@ -327,11 +326,13 @@ const TournamentMarket = ({ tournament, wrap_markets, width, market_selector_loc
|
|
|
327
326
|
{active_type == 'futures' && show_teams && teams.length > 0 ?
|
|
328
327
|
<View>
|
|
329
328
|
{wrap_markets ?
|
|
330
|
-
<
|
|
331
|
-
{
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
329
|
+
<ScrollView>
|
|
330
|
+
<View style={{ flexDirection:'row', flexWrap:'wrap', justifyContent:'center' }}>
|
|
331
|
+
{sorted_teams.map((t,i) => {
|
|
332
|
+
return renderTeams({ item:t, index:i })
|
|
333
|
+
})}
|
|
334
|
+
</View>
|
|
335
|
+
</ScrollView>
|
|
335
336
|
:
|
|
336
337
|
<FlatList
|
|
337
338
|
data={sorted_teams}
|
|
@@ -92,7 +92,7 @@ const PasswordManager = ({ player, walkthrough, onPlayerUpdate, onNext, onClose
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
return (
|
|
95
|
-
<View style={{ flex:1
|
|
95
|
+
<View style={{ flex:1}}>
|
|
96
96
|
{walkthrough ?
|
|
97
97
|
<View style={{ padding:20 }}>
|
|
98
98
|
<Text size={30} color={Colors.brand.midnight} weight='bold'>Secure Your Account</Text>
|
|
@@ -100,7 +100,7 @@ const PasswordManager = ({ player, walkthrough, onPlayerUpdate, onNext, onClose
|
|
|
100
100
|
</View>
|
|
101
101
|
:<></>}
|
|
102
102
|
{draft_player.no_password || change_visible ?
|
|
103
|
-
<View style={{
|
|
103
|
+
<View style={{ padding:20, flex:1 }}>
|
|
104
104
|
{!draft_player.no_password ?
|
|
105
105
|
<View style={{ margin:10, backgroundColor:Colors.shades.white, borderRadius:22, flexDirection:'row', alignItems:'center' }}>
|
|
106
106
|
<View style={{ paddingLeft:15, paddingRight:15 }}>
|
|
@@ -114,12 +114,12 @@ const PasswordManager = ({ player, walkthrough, onPlayerUpdate, onNext, onClose
|
|
|
114
114
|
placeholder='My Current Password'
|
|
115
115
|
secureTextEntry
|
|
116
116
|
placeholderTextColor={Colors.brand.slate}
|
|
117
|
-
style={{
|
|
117
|
+
style={{ borderTopLeftRadius:0, borderBottomLeftRadius:0, flex:1 }}
|
|
118
118
|
onChangeText={(text) => setDraftPassword({ ...draft_password, current_password : text })}
|
|
119
119
|
/>
|
|
120
120
|
</View>
|
|
121
121
|
:<></>}
|
|
122
|
-
<View style={{ margin:10, marginTop:0, backgroundColor:Colors.shades.white, borderRadius:22, flexDirection:'row', alignItems:'center' }}>
|
|
122
|
+
<View style={{ flex:1, margin:10, marginTop:0, backgroundColor:Colors.shades.white, borderRadius:22, flexDirection:'row', alignItems:'center' }}>
|
|
123
123
|
<View style={{ paddingLeft:15, paddingRight:15 }}>
|
|
124
124
|
<Icons.LockClosedIcon
|
|
125
125
|
color={Colors.brand.midnight}
|
|
@@ -157,7 +157,7 @@ const PasswordManager = ({ player, walkthrough, onPlayerUpdate, onNext, onClose
|
|
|
157
157
|
|
|
158
158
|
</View>
|
|
159
159
|
:
|
|
160
|
-
<View style={{ flex:1, justifyContent:'center', alignItems:'center' }}>
|
|
160
|
+
<View style={{ flex:1, justifyContent:'center', alignItems:'center', padding:10 }}>
|
|
161
161
|
<View style={{ borderRadius:8, backgroundColor:Colors.shades.shade600, justifyContent:'center', alignItems:'center', padding:30 }}>
|
|
162
162
|
|
|
163
163
|
<Text style={{ marginBottom:30 }} size={24} color={Colors.brand.midnight} weight='bold'>Password Set</Text>
|
|
@@ -165,8 +165,7 @@ const PasswordManager = ({ player, walkthrough, onPlayerUpdate, onNext, onClose
|
|
|
165
165
|
<Icons.LockClosedIcon size={40} color={Colors.utility.success} />
|
|
166
166
|
<Button
|
|
167
167
|
title='CHANGE'
|
|
168
|
-
style={{ marginTop:20, padding:15,
|
|
169
|
-
|
|
168
|
+
style={{ marginTop:20, padding:15, flex:0 }}
|
|
170
169
|
title_color={Colors.shades.white}
|
|
171
170
|
backgroundColor={Colors.brand.electric}
|
|
172
171
|
onPress={() => setDraftPassword({ ...draft_password, change_visible: true })}
|
|
@@ -46,7 +46,10 @@ const ProfilePicManager = ({ player, onPlayerUpdate, walkthrough, onNext, onClos
|
|
|
46
46
|
public_id={`${player.player_id}_${Math.random()}`}
|
|
47
47
|
onStartUpload={() => setLoading(true)}
|
|
48
48
|
onCancelUpload={() => setLoading(false)}
|
|
49
|
-
onFinishUpload={(obj) =>
|
|
49
|
+
onFinishUpload={(obj) => {
|
|
50
|
+
console.log(obj)
|
|
51
|
+
handleUpdatePic(obj.secure_url)
|
|
52
|
+
}}
|
|
50
53
|
>
|
|
51
54
|
<Button
|
|
52
55
|
title={player.profile_pic ? 'CHANGE' : 'ADD PICTURE'}
|
|
@@ -13,6 +13,7 @@ type AudioPlayerProps = {
|
|
|
13
13
|
onClose:() => void
|
|
14
14
|
}
|
|
15
15
|
const AudioPlayer = ({podcast_episode_id, player_id, onClose}:AudioPlayerProps) => {
|
|
16
|
+
|
|
16
17
|
const [ audio_size, setAudioSize ] = useState({ width:50 });
|
|
17
18
|
const [ audio_data, setAudioData ] = useState<{
|
|
18
19
|
audio_loading:boolean,
|
|
@@ -49,7 +50,7 @@ const AudioPlayer = ({podcast_episode_id, player_id, onClose}:AudioPlayerProps)
|
|
|
49
50
|
});
|
|
50
51
|
const { player_loading, player_podcast } = player_data;
|
|
51
52
|
|
|
52
|
-
const audio_ref:any = useRef(null)
|
|
53
|
+
const audio_ref:any = useRef(null);
|
|
53
54
|
|
|
54
55
|
useEffect(() => {
|
|
55
56
|
const handleBeforeUnload = async(event:any) => {
|
|
@@ -207,8 +208,7 @@ const AudioPlayer = ({podcast_episode_id, player_id, onClose}:AudioPlayerProps)
|
|
|
207
208
|
|
|
208
209
|
|
|
209
210
|
|
|
210
|
-
|
|
211
|
-
if(Platform.OS != 'web'){ return <></> } //Only built for web at this moment
|
|
211
|
+
if(Platform.OS != 'web'){ return <></> }
|
|
212
212
|
|
|
213
213
|
return (
|
|
214
214
|
<View style={{ ...view_styles.section, flex:1 }} onLayout={(ev) => {
|
|
@@ -274,7 +274,7 @@ const AudioPlayer = ({podcast_episode_id, player_id, onClose}:AudioPlayerProps)
|
|
|
274
274
|
</View>
|
|
275
275
|
</View>
|
|
276
276
|
}
|
|
277
|
-
{podcast_episode ?
|
|
277
|
+
{Platform.OS == 'web' && podcast_episode ?
|
|
278
278
|
<audio onLoad={(ev) => console.log(ev)} ref={audio_ref} onDurationChange={() => handleLoad()} onTimeUpdate={() => handleTimeChange()} src={podcast_episode.url} />
|
|
279
279
|
:<></>}
|
|
280
280
|
</View>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { View, FlatList, ActivityIndicator } from 'react-native';
|
|
2
|
+
//import { View, FlatList, ActivityIndicator } from 'react-native';
|
|
3
3
|
import { useEffect, useState } from "react"
|
|
4
4
|
import type { OrderProps, PostProps, PublicPlayerProps } from "../../../types"
|
|
5
5
|
import { SocialProfileApi } from '../api';
|
|
6
|
-
import PostCard from '../../PostCard';
|
|
7
|
-
import Colors from '../../../constants/colors';
|
|
8
|
-
import { Button } from '../../../Components';
|
|
6
|
+
//import PostCard from '../../PostCard';
|
|
7
|
+
//import Colors from '../../../constants/colors';
|
|
8
|
+
//import { Button } from '../../../Components';
|
|
9
9
|
|
|
10
10
|
type PostsListProps = {
|
|
11
11
|
viewing_player:PublicPlayerProps,
|
|
@@ -16,7 +16,7 @@ type PostsListProps = {
|
|
|
16
16
|
onViewComments:(post_id:string) => void
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
const PostsList = ({ viewing_player
|
|
19
|
+
const PostsList = ({ viewing_player}:PostsListProps) => {
|
|
20
20
|
const [ post_data, setPostData ] = useState<{
|
|
21
21
|
posts_loading:boolean,
|
|
22
22
|
posts:PostProps[],
|
|
@@ -28,7 +28,7 @@ const PostsList = ({ viewing_player, player_id, onRequestAuthenticate, onCopyOrd
|
|
|
28
28
|
orders:[],
|
|
29
29
|
posts_offset:0
|
|
30
30
|
});
|
|
31
|
-
const {
|
|
31
|
+
const { posts, orders } = post_data;
|
|
32
32
|
|
|
33
33
|
useEffect(() => {
|
|
34
34
|
getPostData(0);
|
|
@@ -58,8 +58,11 @@ const PostsList = ({ viewing_player, player_id, onRequestAuthenticate, onCopyOrd
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
|
|
61
|
+
/*
|
|
61
62
|
const renderPosts = (data: { item:PostProps, index:number }) => {
|
|
62
63
|
const post_orders = data.item.memo_orders ? orders.filter(o => data.item.memo_orders.includes(o.order_id)) : []
|
|
64
|
+
return <></>
|
|
65
|
+
|
|
63
66
|
return (
|
|
64
67
|
<View>
|
|
65
68
|
<PostCard
|
|
@@ -74,9 +77,12 @@ const PostsList = ({ viewing_player, player_id, onRequestAuthenticate, onCopyOrd
|
|
|
74
77
|
/>
|
|
75
78
|
</View>
|
|
76
79
|
)
|
|
80
|
+
|
|
77
81
|
}
|
|
82
|
+
*/
|
|
78
83
|
|
|
79
|
-
|
|
84
|
+
return <></>
|
|
85
|
+
/*
|
|
80
86
|
return (
|
|
81
87
|
<View>
|
|
82
88
|
<View>
|
|
@@ -102,6 +108,7 @@ const PostsList = ({ viewing_player, player_id, onRequestAuthenticate, onCopyOrd
|
|
|
102
108
|
</View>
|
|
103
109
|
</View>
|
|
104
110
|
)
|
|
111
|
+
*/
|
|
105
112
|
}
|
|
106
113
|
|
|
107
114
|
export default React.memo(PostsList, (left,right) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { View, ActivityIndicator, Image, ScrollView, FlatList, TouchableOpacity, Linking } from 'react-native';
|
|
2
|
+
import { View, ActivityIndicator, Image, ScrollView, FlatList, TouchableOpacity, Linking, Platform } from 'react-native';
|
|
3
3
|
import type { OrderProps, PlayerFollowerProps, PlayerFollowerStatsProps, PlayerLinkProps, PublicPlayerProps } from '../../types';
|
|
4
4
|
import { SocialProfileApi } from './api';
|
|
5
5
|
import Colors from '../../constants/colors';
|
|
@@ -295,11 +295,11 @@ const PlayerProfile = ({ viewing_player_id, maxWidth, padding_insets, player_id,
|
|
|
295
295
|
</View>
|
|
296
296
|
<View style={{ ...view_styles.section }}>
|
|
297
297
|
<View style={{ ...view_styles.section_header }}>
|
|
298
|
-
<View
|
|
298
|
+
<View>
|
|
299
299
|
<Text theme='header'>Followers</Text>
|
|
300
300
|
<Text style={{ marginTop:3 }} theme='body_2'>Who is follwoing @{player.username}</Text>
|
|
301
301
|
</View>
|
|
302
|
-
<View style={{ padding:10 }}>
|
|
302
|
+
<View style={{ padding:10, flex:1, alignItems:'flex-end' }}>
|
|
303
303
|
<Text theme='header_2'>{player_follower_stats?.follower_count ?? 0}</Text>
|
|
304
304
|
</View>
|
|
305
305
|
<Button
|
|
@@ -380,7 +380,7 @@ const PlayerProfile = ({ viewing_player_id, maxWidth, padding_insets, player_id,
|
|
|
380
380
|
|
|
381
381
|
/>
|
|
382
382
|
</View>
|
|
383
|
-
{active_toggle == 'Posts' ?
|
|
383
|
+
{active_toggle == 'Posts' && Platform.OS == 'web' ?
|
|
384
384
|
<PostsList
|
|
385
385
|
viewing_player={player}
|
|
386
386
|
player_id={player_id}
|
|
@@ -21,9 +21,8 @@ type BidFormProps = {
|
|
|
21
21
|
square_bids:PlayerSquareProps[],
|
|
22
22
|
squares:SquareProps[]
|
|
23
23
|
}
|
|
24
|
-
const BidForm = ({ player_id, player_balance,
|
|
24
|
+
const BidForm = ({ player_id, player_balance, market_type, home_abbr, away_abbr, submit_ready, square_bids, squares, onSubmitBid, onClearBids, onBidAmountChange, onRequestAuthenticate }:BidFormProps) => {
|
|
25
25
|
const [ promo_balance, setPromoBalance ] = useState(false);
|
|
26
|
-
|
|
27
26
|
const cl = market_type == 'FOR_MONEY' ? '$' : 'E'
|
|
28
27
|
const total_bid_amount = square_bids.reduce((a,b) => a + b.purchase_price, 0)
|
|
29
28
|
|
|
@@ -45,10 +44,10 @@ const BidForm = ({ player_id, player_balance, width, market_type, home_abbr, awa
|
|
|
45
44
|
</View>
|
|
46
45
|
)
|
|
47
46
|
}
|
|
48
|
-
|
|
47
|
+
|
|
49
48
|
return (
|
|
50
|
-
<View style={{ ...view_styles.section,
|
|
51
|
-
<ScrollView
|
|
49
|
+
<View style={{ ...view_styles.section, padding:0, maxHeight:550, maxWidth:600 }}>
|
|
50
|
+
<ScrollView>
|
|
52
51
|
<View style={ view_styles.section_header }>
|
|
53
52
|
<View style={{ flex:1 }}>
|
|
54
53
|
<Text theme="header">SET BID AMOUNTS</Text>
|
|
@@ -17,7 +17,7 @@ const BidToggle = ({ cl, amount, onAmountChange }:BidToggleProps) => {
|
|
|
17
17
|
<TouchableOpacity style={{ justifyContent:'center', alignItems:'center', padding:12, borderRightWidth:1, borderRightColor:Colors.accents.accent200}} onPress={() => onAmountChange('decrease')}>
|
|
18
18
|
<Text size={16} weight='semibold' color={Colors.brand.electric} textAlign='center'>-</Text>
|
|
19
19
|
</TouchableOpacity>
|
|
20
|
-
<Text style={{
|
|
20
|
+
<Text style={{ marginLeft:4, marginRight:4 }} theme="header_2">{cl}{amount.toFixed(2)}</Text>
|
|
21
21
|
<TouchableOpacity style={{ justifyContent:'center', alignItems:'center', padding:12, borderLeftWidth:1, borderLeftColor:Colors.accents.accent200}} onPress={() => onAmountChange('increase')}>
|
|
22
22
|
<Text size={16} weight='semibold' color={Colors.brand.electric} textAlign='center'>+</Text>
|
|
23
23
|
</TouchableOpacity>
|
|
@@ -130,7 +130,7 @@ const SquareCard = ({ player_id, square, player_square, event, event_status, mar
|
|
|
130
130
|
|
|
131
131
|
const isUserIconVisible = (square_state:SquareStateProps) => {
|
|
132
132
|
if(!square_state){ return false }
|
|
133
|
-
if(player_square?.player_id == player_id){ return true }
|
|
133
|
+
if(player_id && player_square?.player_id == player_id){ return true }
|
|
134
134
|
if(draft_square_offer){ return true }
|
|
135
135
|
if(draft_player_square){ return true }
|
|
136
136
|
if(player_square && player_square.player_id == player_id){ return true }
|
|
@@ -175,7 +175,7 @@ const SquareCard = ({ player_id, square, player_square, event, event_status, mar
|
|
|
175
175
|
:<></>}
|
|
176
176
|
<View>
|
|
177
177
|
{square_state == 'no_bid' ?
|
|
178
|
-
<Icons.UnbidSquare color={event?.home?.primary_color} secondary_color={event?.away?.primary_color}/>
|
|
178
|
+
<Icons.UnbidSquare size={42} color={event?.home?.primary_color} secondary_color={event?.away?.primary_color}/>
|
|
179
179
|
:
|
|
180
180
|
<Text size={12} weight='regular' color={getSquareFontColor(square_state)} textAlign='center'>{getSquareText(square_state)}</Text>
|
|
181
181
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button, Icons, Text } from "../../Components";
|
|
2
2
|
import type { EventProps, PlayerSquareProps, SquareOfferProps, SquareProps, SquareResultProps, SquaresCompetitionProps } from "../../types"
|
|
3
|
-
import { View, FlatList, Image, TouchableOpacity } from 'react-native';
|
|
3
|
+
import { View, FlatList, Image, TouchableOpacity, ScrollView, Platform } from 'react-native';
|
|
4
4
|
import SquareCard from "./SquareCard";
|
|
5
5
|
import Countdown from './Countdown';
|
|
6
6
|
import { SqauresHelpers } from "../api";
|
|
@@ -57,19 +57,21 @@ const SquaresBoard = ({
|
|
|
57
57
|
}
|
|
58
58
|
const event_status = SqauresHelpers.getCompStatus(event, squares_competition);
|
|
59
59
|
return (
|
|
60
|
-
<
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
60
|
+
<View>
|
|
61
|
+
<SquareCard
|
|
62
|
+
player_id={player_id}
|
|
63
|
+
square={data.item}
|
|
64
|
+
outbid_player_square={outbid_player_square}
|
|
65
|
+
market_type={squares_competition.market_type}
|
|
66
|
+
player_square={player_square}
|
|
67
|
+
draft_player_square={draft_player_square}
|
|
68
|
+
draft_square_offer={draft_square_offer}
|
|
69
|
+
square_offer={square_offer}
|
|
70
|
+
event={event}
|
|
71
|
+
event_status={event_status}
|
|
72
|
+
onSquareSelect={(square, action) => handleSquareSelect(square, action)}
|
|
73
|
+
/>
|
|
74
|
+
</View>
|
|
73
75
|
)
|
|
74
76
|
}
|
|
75
77
|
|
|
@@ -80,7 +82,7 @@ const SquaresBoard = ({
|
|
|
80
82
|
<FlatList
|
|
81
83
|
data={x_squares.sort((a,b) => a.square_score_x - b.square_score_x)}
|
|
82
84
|
horizontal
|
|
83
|
-
scrollEnabled={true}
|
|
85
|
+
scrollEnabled={Platform.OS == 'web' ? true : false}
|
|
84
86
|
renderItem={renderXSquares}
|
|
85
87
|
keyExtractor={(item) => item.sq_square_id.toString()}
|
|
86
88
|
/>
|
|
@@ -122,8 +124,8 @@ const SquaresBoard = ({
|
|
|
122
124
|
</View>
|
|
123
125
|
</TouchableOpacity>
|
|
124
126
|
{expanded ?
|
|
125
|
-
<View style={view_styles.section_body} nativeID="board">
|
|
126
|
-
<
|
|
127
|
+
<View style={{ ...view_styles.section_body, flex:1 }} nativeID="board">
|
|
128
|
+
<ScrollView horizontal style={{ flexDirection:'row', marginLeft:20 }}>
|
|
127
129
|
<View>
|
|
128
130
|
<View style={{ flexDirection:'row', marginLeft:4 }}>
|
|
129
131
|
{unique_score_y.map(num => {
|
|
@@ -137,14 +139,14 @@ const SquaresBoard = ({
|
|
|
137
139
|
<View style={{ backgroundColor:Colors.shades.shade100, padding:2, borderRadius:8, marginLeft:2 }}>
|
|
138
140
|
<FlatList
|
|
139
141
|
data={unique_score_y}
|
|
140
|
-
scrollEnabled
|
|
141
142
|
renderItem={renderYSquares}
|
|
143
|
+
scrollEnabled={Platform.OS == 'web' ? true : false}
|
|
142
144
|
keyExtractor={(item) => `x_${item}`}
|
|
143
145
|
/>
|
|
144
146
|
</View>
|
|
145
147
|
</View>
|
|
146
|
-
</
|
|
147
|
-
<View style={{ position:'absolute', top: 47, backgroundColor:'transparent' }}>
|
|
148
|
+
</ScrollView>
|
|
149
|
+
<View style={{ position:'absolute', top: 47,left:20, backgroundColor:'transparent' }}>
|
|
148
150
|
{unique_score_y.map(num => {
|
|
149
151
|
return (
|
|
150
152
|
<View key={`x_${num}`} style={{ margin:3, justifyContent:'center', alignItems:'center', height:40, width:20, backgroundColor:'transparent' }}>
|
package/src/Squares/index.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useState } from "react"
|
|
2
|
-
import { ActivityIndicator, View, Image, TouchableOpacity, ScrollView } from 'react-native';
|
|
2
|
+
import { ActivityIndicator, View, Image, TouchableOpacity, ScrollView, Modal } from 'react-native';
|
|
3
3
|
import type { BEEventProps, BuySquaresResponseProps, EventProps, LeagueProps, OfferResponseProps, PlayerBalanceProps, PlayerSquareProps, PublicPlayerProps, SquareOfferProps, SquarePrizeProps, SquareProps, SquareResultProps, SquaresCompetitionProps, SquaresPayoutProps, SquaresTypeProps } from "../types"
|
|
4
4
|
import Colors from "../constants/colors";
|
|
5
5
|
import { SqauresHelpers, SquaresApi } from "./api";
|
|
@@ -79,7 +79,6 @@ const SquaresModule = ({ sq_comp_id, player_id, distinct_id, onRequestAuthentica
|
|
|
79
79
|
|
|
80
80
|
const { square_bids, draft_square_offers, submit_ready } = board_data;
|
|
81
81
|
const { loading, league, event, players, loaded, squares_competition, square_prizes, squares, squares_type, squares_payout_type, square_results, square_offers, player_square_history, player_squares } = module_data;
|
|
82
|
-
|
|
83
82
|
const squares_expected_value = SqauresHelpers.getMyExpectedValue(squares, [ ...player_squares.filter(ps => ps.status == 'active' && ps.player_id == player_id) ], squares_competition, player_id)
|
|
84
83
|
const my_squares = player_squares.filter(ps => ps.status == 'active' && ps.player_id == player_id);
|
|
85
84
|
const home_abbr = event?.home?.abbr??squares_competition?.event_backup?.home?.abbr
|
|
@@ -393,7 +392,7 @@ const SquaresModule = ({ sq_comp_id, player_id, distinct_id, onRequestAuthentica
|
|
|
393
392
|
<Text theme="header">{square_bids.length} Squares</Text>
|
|
394
393
|
<Button
|
|
395
394
|
title="SET AMOUNTS"
|
|
396
|
-
style={{ marginLeft:10 }}
|
|
395
|
+
style={{ marginLeft:10, flex:1 }}
|
|
397
396
|
title_color={Colors.shades.white}
|
|
398
397
|
backgroundColor={Colors.brand.electric}
|
|
399
398
|
onPress={() => setBidFormExpanded(true)}
|
|
@@ -447,8 +446,12 @@ const SquaresModule = ({ sq_comp_id, player_id, distinct_id, onRequestAuthentica
|
|
|
447
446
|
subscribed_events={['V1_UPDATE_SQUARE_DETAILS']}
|
|
448
447
|
/>
|
|
449
448
|
</ScrollView>
|
|
450
|
-
|
|
451
|
-
|
|
449
|
+
<Modal
|
|
450
|
+
transparent
|
|
451
|
+
visible={bid_form_expanded}
|
|
452
|
+
animationType='slide'
|
|
453
|
+
>
|
|
454
|
+
<View style={{ flex:1, justifyContent:'flex-end', backgroundColor:Colors.shades.black_faded }}>
|
|
452
455
|
<BidForm
|
|
453
456
|
player_id={player_id}
|
|
454
457
|
player_balance={player_balance}
|
|
@@ -464,8 +467,8 @@ const SquaresModule = ({ sq_comp_id, player_id, distinct_id, onRequestAuthentica
|
|
|
464
467
|
onRequestAuthenticate={() => onRequestAuthenticate(squares_competition.auth_strategy_id)}
|
|
465
468
|
onSubmitBid={(promo_balance) => handleSubmitBid(promo_balance)}
|
|
466
469
|
/>
|
|
467
|
-
|
|
468
|
-
|
|
470
|
+
</View>
|
|
471
|
+
</Modal>
|
|
469
472
|
{draft_square_offers.length > 0 ?
|
|
470
473
|
<View style={{ position:'absolute', bottom:0, left:0, right:0, top:0, justifyContent:module_size.width > 500 ? 'center' : 'flex-end', alignItems:'center', backgroundColor:Colors.shades.black_faded }}>
|
|
471
474
|
<OfferForm
|
package/src/constants/styles.ts
CHANGED
|
@@ -17,9 +17,9 @@ export const view_styles = StyleSheet.create({
|
|
|
17
17
|
float: {
|
|
18
18
|
shadowColor: "rgba(0, 0, 0, 0.06)", shadowOffset: { width: 0, height: 10 }, shadowRadius: 10, shadowOpacity: 1
|
|
19
19
|
},
|
|
20
|
-
section: { margin:10, backgroundColor:Colors.shades.white, borderRadius:8, shadowColor: "rgba(0, 0, 0, 0.06)", shadowOffset: { width: 0, height: 10 }, shadowRadius: 10, shadowOpacity: 1 },
|
|
20
|
+
section: { margin:10, backgroundColor:Colors.shades.white, borderRadius:8, shadowColor: "rgba(0, 0, 0, 0.06)", shadowOffset: { width: 0, height: 10 }, shadowRadius: 10, shadowOpacity: 1, elevation: 4 },
|
|
21
21
|
section_header: { padding:10, borderTopRightRadius:8, borderTopLeftRadius:8, paddingLeft:20, paddingRight:20, flexDirection:'row', alignItems:'center', borderBottomWidth:1, borderBottomColor:Colors.shades.shade600 },
|
|
22
|
-
section_body: {
|
|
22
|
+
section_body: { padding:20 },
|
|
23
23
|
section_footer: { padding:10, borderBottomRightRadius:8, borderBottomLeftRadius:8, paddingLeft:20, paddingRight:20, flexDirection:'row', alignItems:'center', borderTopWidth:1, borderTopColor:Colors.shades.shade600, backgroundColor:Colors.shades.shade100 },
|
|
24
24
|
body_row : { padding:5, flexDirection:'row', alignItems:'center' }
|
|
25
25
|
})
|
|
@@ -59,12 +59,12 @@ export const text_styles = StyleSheet.create({
|
|
|
59
59
|
fontSize: 12,
|
|
60
60
|
color:Colors.shades.white
|
|
61
61
|
},
|
|
62
|
-
header: { color:Colors.brand.midnight, fontSize: 16, fontFamily: '
|
|
63
|
-
header_2: { color:Colors.brand.midnight, fontSize: 14, fontFamily: '
|
|
64
|
-
error_header_2: { color:Colors.utility.error, fontSize: 14, fontFamily: '
|
|
62
|
+
header: { color:Colors.brand.midnight, fontSize: 16, fontFamily: 'BarlowBold', textAlign:'left' },
|
|
63
|
+
header_2: { color:Colors.brand.midnight, fontSize: 14, fontFamily: 'BarlowSemibold', textAlign:'left' },
|
|
64
|
+
error_header_2: { color:Colors.utility.error, fontSize: 14, fontFamily: 'BarlowSemibold', textAlign:'left' },
|
|
65
65
|
|
|
66
|
-
body: { color:Colors.brand.midnight, fontSize: 14, fontFamily: '
|
|
67
|
-
error_body: { color:Colors.utility.error, fontSize: 14, fontFamily: '
|
|
68
|
-
body_2: { color:Colors.brand.midnight, fontSize: 12, fontFamily: '
|
|
69
|
-
error_body_2: { color:Colors.utility.error, fontSize: 12, fontFamily: '
|
|
66
|
+
body: { color:Colors.brand.midnight, fontSize: 14, fontFamily: 'BarlowRegular', textAlign:'left' },
|
|
67
|
+
error_body: { color:Colors.utility.error, fontSize: 14, fontFamily: 'BarlowRegular', textAlign:'left' },
|
|
68
|
+
body_2: { color:Colors.brand.midnight, fontSize: 12, fontFamily: 'BarlowRegular', textAlign:'left' },
|
|
69
|
+
error_body_2: { color:Colors.utility.error, fontSize: 12, fontFamily: 'BarlowRegular', textAlign:'left' }
|
|
70
70
|
})
|