be-components 3.3.1 → 3.3.2
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/MarketComponents/components/AthleteMarket/index.js +9 -4
- package/lib/commonjs/MarketComponents/components/AthleteMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.js +8 -3
- package/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/EventMarket/index.js +6 -2
- package/lib/commonjs/MarketComponents/components/EventMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.js +9 -2
- package/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/AthleteMarket/index.js +9 -4
- package/lib/module/MarketComponents/components/AthleteMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/AthleteTournamentMarket/index.js +8 -3
- package/lib/module/MarketComponents/components/AthleteTournamentMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/EventMarket/index.js +6 -2
- package/lib/module/MarketComponents/components/EventMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/TeamTournamentMarket/index.js +9 -2
- package/lib/module/MarketComponents/components/TeamTournamentMarket/index.js.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.d.ts +2 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.d.ts +2 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/AthleteMarket/index.d.ts +2 -1
- package/lib/typescript/lib/module/MarketComponents/components/AthleteMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/AthleteTournamentMarket/index.d.ts +2 -1
- package/lib/typescript/lib/module/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/TeamTournamentMarket/index.d.ts +2 -1
- package/lib/typescript/lib/module/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/AthleteMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/AthleteMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/AthleteTournamentMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TeamTournamentMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/index.d.ts +6 -3
- package/lib/typescript/src/MarketComponents/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/MarketComponents/components/AthleteMarket/index.tsx +8 -5
- package/src/MarketComponents/components/AthleteTournamentMarket/index.tsx +7 -4
- package/src/MarketComponents/components/EventMarket/index.tsx +3 -3
- package/src/MarketComponents/components/TeamTournamentMarket/index.tsx +21 -18
|
@@ -16,6 +16,7 @@ type TeamTournamentMarketProps = {
|
|
|
16
16
|
hide_stat_banner?:boolean,
|
|
17
17
|
width?:number,
|
|
18
18
|
market:MarketProps,
|
|
19
|
+
direction?:'horizontal'|'vertical',
|
|
19
20
|
show_event?:boolean,
|
|
20
21
|
hide_liquidity?:boolean,
|
|
21
22
|
latest_trades:TradeProps[],
|
|
@@ -28,7 +29,7 @@ type TeamTournamentMarketProps = {
|
|
|
28
29
|
onTradeLongPress:(trade:TradeProps) => void
|
|
29
30
|
}
|
|
30
31
|
|
|
31
|
-
const TeamTournamentMarket = ({ tournament, show_event, hide_liquidity, hide_stat_banner, width, team, market, event_order_stats, default_price_view, latest_trades, show_grades, best_available_orders, onOrder, onView, onTradeLongPress }:TeamTournamentMarketProps) => {
|
|
32
|
+
const TeamTournamentMarket = ({ tournament, direction, show_event, hide_liquidity, hide_stat_banner, width, team, market, event_order_stats, default_price_view, latest_trades, show_grades, best_available_orders, onOrder, onView, onTradeLongPress }:TeamTournamentMarketProps) => {
|
|
32
33
|
const { liquidity, open_order_count } = MarketComponentHelpers.getLiqudity(event_order_stats);
|
|
33
34
|
const is_locked = useMemo(() => MarketComponentHelpers.isTournamentMarketLocked(tournament, market.market_id),[JSON.stringify(tournament.supported_markets)])
|
|
34
35
|
|
|
@@ -77,24 +78,26 @@ const TeamTournamentMarket = ({ tournament, show_event, hide_liquidity, hide_sta
|
|
|
77
78
|
<Text size={12} color={Colors.brand.midnight} textAlign='center' weight='semibold'>{tournament.tournament_name}</Text>
|
|
78
79
|
</View>
|
|
79
80
|
:<></>}
|
|
80
|
-
<View style={{
|
|
81
|
-
<
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
<
|
|
87
|
-
|
|
81
|
+
<View style={{ flexDirection:direction == 'horizontal' ? 'row' : 'column' }}>
|
|
82
|
+
<View style={{ ...view_styles.section_body, flexDirection:direction == 'horizontal' ? 'row' : 'column', flexGrow:2, padding:0, justifyContent:'center', alignItems:'center' }}>
|
|
83
|
+
<TeamImage
|
|
84
|
+
team={team}
|
|
85
|
+
size={24}
|
|
86
|
+
/>
|
|
87
|
+
<View style={{ padding:10, paddingBottom:0 }}>
|
|
88
|
+
<Text weight='bold' size={14} color={Colors.brand.midnight} textAlign='center'>{team.market_name} {team.name}</Text>
|
|
89
|
+
<Text style={{ marginTop:3 }} color={Colors.brand.midnight} weight='regular' textAlign='center' size={12}>{team.division}</Text>
|
|
90
|
+
</View>
|
|
91
|
+
</View>
|
|
92
|
+
<View nativeID='market_sides' style={{ flexDirection:'row',flexGrow:1.5, justifyContent:'center', alignItems:'center', padding:10 }}>
|
|
93
|
+
{market.side_options.sort((a,b) => {
|
|
94
|
+
let a_t = a.side == market.trade_side ? 1 : 0
|
|
95
|
+
let b_t = b.side == market.trade_side ? 1 : 0
|
|
96
|
+
return a_t - b_t
|
|
97
|
+
}).map((so, index) => {
|
|
98
|
+
return renderSides({ item:so, index, market })
|
|
99
|
+
})}
|
|
88
100
|
</View>
|
|
89
|
-
</View>
|
|
90
|
-
<View nativeID='market_sides' style={{ flexDirection:'row', justifyContent:'center', alignItems:'center', padding:10 }}>
|
|
91
|
-
{market.side_options.sort((a,b) => {
|
|
92
|
-
let a_t = a.side == market.trade_side ? 1 : 0
|
|
93
|
-
let b_t = b.side == market.trade_side ? 1 : 0
|
|
94
|
-
return a_t - b_t
|
|
95
|
-
}).map((so, index) => {
|
|
96
|
-
return renderSides({ item:so, index, market })
|
|
97
|
-
})}
|
|
98
101
|
</View>
|
|
99
102
|
{!hide_liquidity ?
|
|
100
103
|
<View style={{ backgroundColor:Colors.shades.shade100, padding:10, flexDirection:'row', alignItems:'center', borderBottomLeftRadius:8, borderBottomRightRadius:8 }}>
|