be-components 6.1.1 → 6.1.3
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/BetMatch/api/index.js +56 -1
- package/lib/commonjs/BetMatch/api/index.js.map +1 -1
- package/lib/commonjs/BetMatch/components/BetMatchCard.js +53 -17
- package/lib/commonjs/BetMatch/components/BetMatchCard.js.map +1 -1
- package/lib/commonjs/BetMatch/components/ManageFilter.js +1342 -0
- package/lib/commonjs/BetMatch/components/ManageFilter.js.map +1 -0
- package/lib/commonjs/BetMatch/index.js +84 -24
- package/lib/commonjs/BetMatch/index.js.map +1 -1
- package/lib/commonjs/Components/AthleteLozenge.js +81 -0
- package/lib/commonjs/Components/AthleteLozenge.js.map +1 -0
- package/lib/commonjs/Components/Jerseys.js +30 -11
- package/lib/commonjs/Components/Jerseys.js.map +1 -1
- package/lib/commonjs/Components/LeagueLozenge.js +59 -0
- package/lib/commonjs/Components/LeagueLozenge.js.map +1 -0
- package/lib/commonjs/Components/MarketLozenge.js +48 -0
- package/lib/commonjs/Components/MarketLozenge.js.map +1 -0
- package/lib/commonjs/Components/PlayerLozenge.js +61 -0
- package/lib/commonjs/Components/PlayerLozenge.js.map +1 -0
- package/lib/commonjs/Components/TeamLozenge.js +70 -0
- package/lib/commonjs/Components/TeamLozenge.js.map +1 -0
- package/lib/commonjs/Components/index.js +28 -0
- package/lib/commonjs/Components/index.js.map +1 -1
- package/lib/commonjs/Premium/api/index.js +50 -0
- package/lib/commonjs/Premium/api/index.js.map +1 -0
- package/lib/commonjs/Premium/components/ALaCartePremium.js +67 -42
- package/lib/commonjs/Premium/components/ALaCartePremium.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/VouchCard.js +3 -3
- package/lib/commonjs/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/commonjs/ProfileManager/api/index.js +10 -1
- package/lib/commonjs/ProfileManager/api/index.js.map +1 -1
- package/lib/commonjs/ProfileManager/index.js +2 -2
- package/lib/commonjs/ProfileManager/index.js.map +1 -1
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/BetMatch/api/index.js +55 -0
- package/lib/module/BetMatch/api/index.js.map +1 -1
- package/lib/module/BetMatch/components/BetMatchCard.js +54 -18
- package/lib/module/BetMatch/components/BetMatchCard.js.map +1 -1
- package/lib/module/BetMatch/components/ManageFilter.js +1333 -0
- package/lib/module/BetMatch/components/ManageFilter.js.map +1 -0
- package/lib/module/BetMatch/index.js +86 -26
- package/lib/module/BetMatch/index.js.map +1 -1
- package/lib/module/Components/AthleteLozenge.js +73 -0
- package/lib/module/Components/AthleteLozenge.js.map +1 -0
- package/lib/module/Components/Jerseys.js +30 -11
- package/lib/module/Components/Jerseys.js.map +1 -1
- package/lib/module/Components/LeagueLozenge.js +51 -0
- package/lib/module/Components/LeagueLozenge.js.map +1 -0
- package/lib/module/Components/MarketLozenge.js +40 -0
- package/lib/module/Components/MarketLozenge.js.map +1 -0
- package/lib/module/Components/PlayerLozenge.js +53 -0
- package/lib/module/Components/PlayerLozenge.js.map +1 -0
- package/lib/module/Components/TeamLozenge.js +62 -0
- package/lib/module/Components/TeamLozenge.js.map +1 -0
- package/lib/module/Components/index.js +5 -1
- package/lib/module/Components/index.js.map +1 -1
- package/lib/module/Premium/api/index.js +43 -0
- package/lib/module/Premium/api/index.js.map +1 -0
- package/lib/module/Premium/components/ALaCartePremium.js +67 -42
- package/lib/module/Premium/components/ALaCartePremium.js.map +1 -1
- package/lib/module/ProfileManager/Components/VouchCard.js +3 -3
- package/lib/module/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/module/ProfileManager/api/index.js +10 -1
- package/lib/module/ProfileManager/api/index.js.map +1 -1
- package/lib/module/ProfileManager/index.js +2 -2
- package/lib/module/ProfileManager/index.js.map +1 -1
- package/lib/module/index.js +2 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/lib/commonjs/BetMatch/api/index.d.ts +6 -0
- package/lib/typescript/lib/commonjs/BetMatch/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/BetMatch/components/BetMatchCard.d.ts +6 -3
- package/lib/typescript/lib/commonjs/BetMatch/components/BetMatchCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/BetMatch/components/ManageFilter.d.ts +10 -0
- package/lib/typescript/lib/commonjs/BetMatch/components/ManageFilter.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/BetMatch/index.d.ts +6 -1
- package/lib/typescript/lib/commonjs/BetMatch/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/AthleteLozenge.d.ts +11 -0
- package/lib/typescript/lib/commonjs/Components/AthleteLozenge.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Components/Jerseys.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/LeagueLozenge.d.ts +10 -0
- package/lib/typescript/lib/commonjs/Components/LeagueLozenge.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Components/MarketLozenge.d.ts +10 -0
- package/lib/typescript/lib/commonjs/Components/MarketLozenge.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Components/PlayerLozenge.d.ts +9 -0
- package/lib/typescript/lib/commonjs/Components/PlayerLozenge.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Components/TeamLozenge.d.ts +10 -0
- package/lib/typescript/lib/commonjs/Components/TeamLozenge.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Components/index.d.ts +4 -0
- package/lib/typescript/lib/commonjs/Premium/api/index.d.ts +18 -0
- package/lib/typescript/lib/commonjs/Premium/api/index.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/Premium/components/ALaCartePremium.d.ts +4 -1
- package/lib/typescript/lib/commonjs/Premium/components/ALaCartePremium.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/api/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/ProfileManager/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/BetMatch/api/index.d.ts +6 -0
- package/lib/typescript/lib/module/BetMatch/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/BetMatch/components/BetMatchCard.d.ts +6 -3
- package/lib/typescript/lib/module/BetMatch/components/BetMatchCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/BetMatch/components/ManageFilter.d.ts +10 -0
- package/lib/typescript/lib/module/BetMatch/components/ManageFilter.d.ts.map +1 -0
- package/lib/typescript/lib/module/BetMatch/index.d.ts +6 -1
- package/lib/typescript/lib/module/BetMatch/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/AthleteLozenge.d.ts +11 -0
- package/lib/typescript/lib/module/Components/AthleteLozenge.d.ts.map +1 -0
- package/lib/typescript/lib/module/Components/Jerseys.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/LeagueLozenge.d.ts +10 -0
- package/lib/typescript/lib/module/Components/LeagueLozenge.d.ts.map +1 -0
- package/lib/typescript/lib/module/Components/MarketLozenge.d.ts +10 -0
- package/lib/typescript/lib/module/Components/MarketLozenge.d.ts.map +1 -0
- package/lib/typescript/lib/module/Components/PlayerLozenge.d.ts +9 -0
- package/lib/typescript/lib/module/Components/PlayerLozenge.d.ts.map +1 -0
- package/lib/typescript/lib/module/Components/TeamLozenge.d.ts +10 -0
- package/lib/typescript/lib/module/Components/TeamLozenge.d.ts.map +1 -0
- package/lib/typescript/lib/module/Components/index.d.ts +5 -1
- package/lib/typescript/lib/module/Components/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Premium/api/index.d.ts +17 -0
- package/lib/typescript/lib/module/Premium/api/index.d.ts.map +1 -0
- package/lib/typescript/lib/module/Premium/components/ALaCartePremium.d.ts +4 -1
- package/lib/typescript/lib/module/Premium/components/ALaCartePremium.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/api/index.d.ts +1 -0
- package/lib/typescript/lib/module/ProfileManager/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/index.d.ts +2 -1
- package/lib/typescript/lib/module/index.d.ts.map +1 -1
- package/lib/typescript/src/BetMatch/api/index.d.ts +7 -1
- package/lib/typescript/src/BetMatch/api/index.d.ts.map +1 -1
- package/lib/typescript/src/BetMatch/components/BetMatchCard.d.ts +7 -5
- package/lib/typescript/src/BetMatch/components/BetMatchCard.d.ts.map +1 -1
- package/lib/typescript/src/BetMatch/components/ManageFilter.d.ts +12 -0
- package/lib/typescript/src/BetMatch/components/ManageFilter.d.ts.map +1 -0
- package/lib/typescript/src/BetMatch/index.d.ts +10 -3
- package/lib/typescript/src/BetMatch/index.d.ts.map +1 -1
- package/lib/typescript/src/Components/AthleteLozenge.d.ts +13 -0
- package/lib/typescript/src/Components/AthleteLozenge.d.ts.map +1 -0
- package/lib/typescript/src/Components/Jerseys.d.ts.map +1 -1
- package/lib/typescript/src/Components/LeagueLozenge.d.ts +13 -0
- package/lib/typescript/src/Components/LeagueLozenge.d.ts.map +1 -0
- package/lib/typescript/src/Components/MarketLozenge.d.ts +13 -0
- package/lib/typescript/src/Components/MarketLozenge.d.ts.map +1 -0
- package/lib/typescript/src/Components/PlayerLozenge.d.ts +11 -0
- package/lib/typescript/src/Components/PlayerLozenge.d.ts.map +1 -0
- package/lib/typescript/src/Components/TeamLozenge.d.ts +12 -0
- package/lib/typescript/src/Components/TeamLozenge.d.ts.map +1 -0
- package/lib/typescript/src/Components/index.d.ts +5 -1
- package/lib/typescript/src/Components/index.d.ts.map +1 -1
- package/lib/typescript/src/Premium/api/index.d.ts +12 -0
- package/lib/typescript/src/Premium/api/index.d.ts.map +1 -0
- package/lib/typescript/src/Premium/components/ALaCartePremium.d.ts +5 -1
- package/lib/typescript/src/Premium/components/ALaCartePremium.d.ts.map +1 -1
- package/lib/typescript/src/Premium/index.d.ts +4 -1
- package/lib/typescript/src/Premium/index.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/api/index.d.ts +6 -2
- package/lib/typescript/src/ProfileManager/api/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +2 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/BetMatch/api/index.ts +44 -1
- package/src/BetMatch/components/BetMatchCard.tsx +50 -20
- package/src/BetMatch/components/ManageFilter.tsx +830 -0
- package/src/BetMatch/index.tsx +55 -28
- package/src/Components/AthleteLozenge.tsx +52 -0
- package/src/Components/Jerseys.tsx +19 -10
- package/src/Components/LeagueLozenge.tsx +36 -0
- package/src/Components/MarketLozenge.tsx +29 -0
- package/src/Components/PlayerLozenge.tsx +37 -0
- package/src/Components/TeamLozenge.tsx +44 -0
- package/src/Components/index.tsx +8 -0
- package/src/Premium/api/index.ts +32 -0
- package/src/Premium/components/ALaCartePremium.tsx +55 -31
- package/src/ProfileManager/Components/VouchCard.tsx +3 -3
- package/src/ProfileManager/api/index.ts +12 -3
- package/src/ProfileManager/index.tsx +2 -2
- package/src/index.tsx +3 -0
- package/src/types.d.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,gBAAgB,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AACpD,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,QAAQ,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,QAAQ,MAAM,YAAY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MAAM,kBAAkB,CAAC;AAC9C,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,SAAS,MAAM,WAAW,CAAC;AAClC,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,YAAY,MAAM,oCAAoC,CAAC;AAI9D,OAAO,EACL,aAAa,EACb,QAAQ,EACR,UAAU,EACV,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,OAAO,EACP,eAAe,EACf,eAAe,EACf,WAAW,EACX,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,QAAQ,EACR,SAAS,EACT,4BAA4B,EAC5B,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,UAAU,EACV,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,eAAe,EACf,OAAO,EACP,WAAW,EACX,iBAAiB,EACjB,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,EACZ,oBAAoB,EACpB,QAAQ,EACR,WAAW,EACX,UAAU,EACV,WAAW,EACX,aAAa,EACb,aAAa,EACb,aAAa,EACb,YAAY,EACZ,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,UAAU,EACX,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIOverrides } from "../../ApiOverrides";
|
|
2
2
|
import axios from "axios"
|
|
3
|
-
import type { AthleteProps, EventProps, LeagueProps, MarketProps, MatchProps, OrderProps, OrderResponseProps, PlayerFilterProps, PublicPlayerProps, TournamentProps } from "../../types";
|
|
3
|
+
import type { AthleteProps, EventProps, LeagueProps, MarketProps, MatchProps, OrderProps, OrderResponseProps, PlayerFilterProps, PublicPlayerProps, TeamProps, TournamentProps } from "../../types";
|
|
4
4
|
|
|
5
5
|
let AUTH_SVC_API = ''
|
|
6
6
|
let EVENT_SVC_API = ''
|
|
@@ -33,6 +33,14 @@ export const BetMatchApi = {
|
|
|
33
33
|
return []
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
+
searchPlayersByValue: async(search_value:string, offset:number):Promise<PublicPlayerProps[]> => {
|
|
37
|
+
try {
|
|
38
|
+
const resp = await axios.post(`${AUTH_SVC_API}/v1/players/player/search/value`, { search_value, offset })
|
|
39
|
+
return resp.data.players
|
|
40
|
+
} catch (e) {
|
|
41
|
+
return []
|
|
42
|
+
}
|
|
43
|
+
},
|
|
36
44
|
getPlayerFilterById: async(player_filter_id:string):Promise<PlayerFilterProps | undefined> => {
|
|
37
45
|
try {
|
|
38
46
|
const resp = await axios.get(`${MK_SVC_API}/v1/filters/filter/${player_filter_id}`);
|
|
@@ -134,6 +142,22 @@ export const BetMatchApi = {
|
|
|
134
142
|
}
|
|
135
143
|
|
|
136
144
|
},
|
|
145
|
+
searchAthletes: async( search_value:string, offset:number, league_ids?:string[] ):Promise<AthleteProps[]> => {
|
|
146
|
+
try {
|
|
147
|
+
const resp = await axios.post(`${EVENT_SVC_API}/v1/athletes/search`, { search_value, offset, league_ids })
|
|
148
|
+
return resp.data.athletes
|
|
149
|
+
} catch (e) {
|
|
150
|
+
return []
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
searchTeams: async( search_value:string, offset:number, league_ids?:string[] ):Promise<TeamProps[]> => {
|
|
154
|
+
try {
|
|
155
|
+
const resp = await axios.post(`${EVENT_SVC_API}/v1/teams/search`, { search_value, offset, league_ids })
|
|
156
|
+
return resp.data.teams
|
|
157
|
+
} catch (e) {
|
|
158
|
+
return []
|
|
159
|
+
}
|
|
160
|
+
},
|
|
137
161
|
getMarkets:async():Promise<MarketProps[]> => {
|
|
138
162
|
try {
|
|
139
163
|
const resp = await axios.get(`${MK_SVC_API}/v1/markets/all`);
|
|
@@ -151,4 +175,23 @@ export const BetMatchApi = {
|
|
|
151
175
|
return []
|
|
152
176
|
}
|
|
153
177
|
},
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
export const BetMatchHelpers = {
|
|
183
|
+
filterMarkets: (markets:MarketProps[], leagues:LeagueProps[], draft_filter?:PlayerFilterProps):MarketProps[] => {
|
|
184
|
+
if(!draft_filter){ return [] }
|
|
185
|
+
let filtered_markets = markets.filter(m => draft_filter.filter.market_types == 'event' ? m.type != 'Stat' : m.type == 'Stat');
|
|
186
|
+
if(draft_filter.filter.league_ids.length > 0){
|
|
187
|
+
let leagues_added = leagues.filter(l => draft_filter.filter.league_ids.map(id => id.toString()).includes(l.league_id.toString()))
|
|
188
|
+
let default_markets:string[] = []
|
|
189
|
+
leagues_added.map(l => {
|
|
190
|
+
if(!l.default_markets){ return }
|
|
191
|
+
l.default_markets.map(dm => default_markets.push(dm.market_id.toString()))
|
|
192
|
+
})
|
|
193
|
+
filtered_markets = filtered_markets.filter(m => default_markets.includes(m.market_id.toString()))
|
|
194
|
+
}
|
|
195
|
+
return filtered_markets
|
|
196
|
+
}
|
|
154
197
|
}
|
|
@@ -1,33 +1,37 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
1
|
+
import React, { useCallback, useEffect, useState } from 'react';
|
|
2
2
|
import { Button, Text, View } from "../../Components/Themed"
|
|
3
3
|
import { ActivityIndicator, FlatList, Image } from 'react-native';
|
|
4
|
-
import type { AthleteProps, ExternalPriceProps, LeagueProps, OrderProps, PublicPlayerProps, TeamProps } from '../../types';
|
|
4
|
+
import type { AthleteProps, ExternalPriceProps, LeagueProps, MyPlayerProps, OrderProps, PlayerPremiumItem, PremiumItemProps, PublicPlayerProps, TeamProps } from '../../types';
|
|
5
5
|
import moment from 'moment-mini';
|
|
6
6
|
import { AthleteImage, TeamImage } from '../../Components/Jerseys';
|
|
7
7
|
import OrderGradeBar from '../../MarketComponents/components/OrderGradeBar';
|
|
8
8
|
import { MarketComponentApi, MarketComponentHelpers } from '../../MarketComponents/api';
|
|
9
9
|
import { Icons } from '../../Components';
|
|
10
10
|
import { useColors } from '../../constants/useColors';
|
|
11
|
+
import { PremiumHelpers } from '../../Premium/api';
|
|
12
|
+
import ALaCartePremium from '../../Premium/components/ALaCartePremium';
|
|
11
13
|
|
|
12
14
|
type BetMatchCardProps = {
|
|
13
15
|
player?:PublicPlayerProps,
|
|
16
|
+
me?:MyPlayerProps,
|
|
14
17
|
contest_title:string,
|
|
15
18
|
time_detail:string,
|
|
16
19
|
league?:LeagueProps,
|
|
17
20
|
team?:TeamProps,
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
player_premium_items?:PlayerPremiumItem[],
|
|
22
|
+
premium_items?:PremiumItemProps[]
|
|
20
23
|
athlete?:AthleteProps,
|
|
21
24
|
order:OrderProps,
|
|
22
25
|
action_loading:boolean,
|
|
23
|
-
onViewPremium?:() => void,
|
|
26
|
+
onViewPremium?:(premium_item_id?:string) => void,
|
|
24
27
|
onSelectGrade:(order:OrderProps) => void,
|
|
25
28
|
onViewPlayer:(player:PublicPlayerProps) => void,
|
|
26
29
|
onOrder:(order:OrderProps) => void,
|
|
27
30
|
onReject:(order:OrderProps) => void,
|
|
31
|
+
onPurchasePremium:(ppi:PlayerPremiumItem) => void
|
|
28
32
|
}
|
|
29
33
|
const sections = ['header', 'page', 'offer', 'details','available', 'actions']
|
|
30
|
-
const BetMatchCard = ({
|
|
34
|
+
const BetMatchCard = ({ me, premium_items, player_premium_items, order, action_loading, player, contest_title, league, team, athlete, onViewPremium, onViewPlayer, onPurchasePremium, onOrder, onReject }:BetMatchCardProps) => {
|
|
31
35
|
const Colors = useColors();
|
|
32
36
|
const [ betmatch, setBetMatch ] = useState<{
|
|
33
37
|
loading:boolean,
|
|
@@ -37,10 +41,15 @@ const BetMatchCard = ({ order, action_loading, show_grades, show_external_prices
|
|
|
37
41
|
})
|
|
38
42
|
const { loading, external_price } = betmatch;
|
|
39
43
|
|
|
44
|
+
const premium_external_price = PremiumHelpers.getItemFromIdentifer('external_pricing', premium_items, player_premium_items);
|
|
45
|
+
const premium_order_grades = PremiumHelpers.getItemFromIdentifer('order_grades', premium_items, player_premium_items);
|
|
46
|
+
const show_external_prices = premium_external_price.player_premium_item?.status == 'active' || me?.type == 'premium' ? true : false
|
|
47
|
+
const show_grades = premium_order_grades.player_premium_item?.status == 'active' || me?.type == 'premium' ? true : false
|
|
48
|
+
|
|
40
49
|
useEffect(() => {
|
|
41
50
|
MarketComponentApi.setEnvironment();
|
|
42
51
|
getExternalPrice()
|
|
43
|
-
},[order.order_id]);
|
|
52
|
+
},[order.order_id, show_external_prices]);
|
|
44
53
|
|
|
45
54
|
const getExternalPrice = async() => {
|
|
46
55
|
if(!show_external_prices){ return }
|
|
@@ -63,7 +72,7 @@ const BetMatchCard = ({ order, action_loading, show_grades, show_external_prices
|
|
|
63
72
|
}, 250);
|
|
64
73
|
}
|
|
65
74
|
|
|
66
|
-
const renderSections = (data:{ item:string, index:number }) => {
|
|
75
|
+
const renderSections = useCallback((data:{ item:string, index:number }) => {
|
|
67
76
|
switch(data.item){
|
|
68
77
|
case 'header':
|
|
69
78
|
return (
|
|
@@ -80,7 +89,7 @@ const BetMatchCard = ({ order, action_loading, show_grades, show_external_prices
|
|
|
80
89
|
)
|
|
81
90
|
case 'offer':
|
|
82
91
|
return (
|
|
83
|
-
<View transparent type='row' style={{ margin:
|
|
92
|
+
<View transparent type='row' style={{ margin:10 }}>
|
|
84
93
|
<View float style={{ borderRadius:100, padding:2 }}>
|
|
85
94
|
{athlete ?
|
|
86
95
|
<AthleteImage
|
|
@@ -109,8 +118,8 @@ const BetMatchCard = ({ order, action_loading, show_grades, show_external_prices
|
|
|
109
118
|
)
|
|
110
119
|
case 'details':
|
|
111
120
|
return (
|
|
112
|
-
<View transparent style={{ margin:
|
|
113
|
-
<View transparent type='row' style={{ padding:
|
|
121
|
+
<View transparent style={{ margin:10 }}>
|
|
122
|
+
<View transparent type='row' style={{ padding:10 }}>
|
|
114
123
|
<View transparent style={{ flex:1 }}>
|
|
115
124
|
<Text theme='description'>Offer Probability</Text>
|
|
116
125
|
<Text theme='h1' size={18} style={{ marginTop:4 }}>{(order.probability * 100).toFixed(2)}%</Text>
|
|
@@ -120,7 +129,8 @@ const BetMatchCard = ({ order, action_loading, show_grades, show_external_prices
|
|
|
120
129
|
<Text theme='h1' size={18} style={{ marginTop:4 }}>{MarketComponentHelpers.getOddsLabel(order.odds)}</Text>
|
|
121
130
|
</View>
|
|
122
131
|
</View>
|
|
123
|
-
|
|
132
|
+
{show_external_prices ?
|
|
133
|
+
<View transparent type='row' style={{ padding:10 }}>
|
|
124
134
|
<View transparent style={{ flex:1 }}>
|
|
125
135
|
<Text theme='description'>External Price</Text>
|
|
126
136
|
{loading ?
|
|
@@ -131,15 +141,24 @@ const BetMatchCard = ({ order, action_loading, show_grades, show_external_prices
|
|
|
131
141
|
<Text theme='h1' size={18} style={{ marginTop:4 }}>{external_price ? external_price.external_name: 'Unable to find'}</Text>
|
|
132
142
|
}
|
|
133
143
|
</View>
|
|
134
|
-
{show_external_prices ?
|
|
135
144
|
<View transparent style={{ flex:1 }}>
|
|
136
145
|
<Text theme='description'>Suggested Odds</Text>
|
|
137
146
|
<Text theme='h1' size={18} style={{ marginTop:4 }}>{external_price ? MarketComponentHelpers.getOddsLabel(external_price.odds): '...'}</Text>
|
|
138
147
|
</View>
|
|
139
|
-
:<></>}
|
|
140
148
|
</View>
|
|
141
|
-
|
|
142
|
-
|
|
149
|
+
:premium_external_price.premium_item ?
|
|
150
|
+
<ALaCartePremium
|
|
151
|
+
style={{ margin:5 }}
|
|
152
|
+
premium_item={premium_external_price.premium_item}
|
|
153
|
+
player_premium_item={premium_external_price.player_premium_item}
|
|
154
|
+
player={me}
|
|
155
|
+
identifier='external_pricing'
|
|
156
|
+
onPurchaseItem={onPurchasePremium}
|
|
157
|
+
onViewPremium={(id) => onViewPremium ? onViewPremium(id) : console.log('')}
|
|
158
|
+
/>
|
|
159
|
+
:<></>}
|
|
160
|
+
{show_grades ?
|
|
161
|
+
<View transparent type='row' style={{ padding:10 }}>
|
|
143
162
|
<View transparent style={{ flex:1 }}>
|
|
144
163
|
<Text theme='description'>Offer Grade</Text>
|
|
145
164
|
{!order?.grade || !show_grades ?
|
|
@@ -157,6 +176,17 @@ const BetMatchCard = ({ order, action_loading, show_grades, show_external_prices
|
|
|
157
176
|
</View>
|
|
158
177
|
<OrderGradeBar mask={!show_grades} grade={order.grade} view_type='card' onSelectGrade={() => console.log('')}/>
|
|
159
178
|
</View>
|
|
179
|
+
:premium_order_grades.premium_item ?
|
|
180
|
+
<ALaCartePremium
|
|
181
|
+
style={{ margin:5 }}
|
|
182
|
+
premium_item={premium_order_grades.premium_item}
|
|
183
|
+
player_premium_item={premium_order_grades.player_premium_item}
|
|
184
|
+
player={me}
|
|
185
|
+
identifier='order_grades'
|
|
186
|
+
onPurchaseItem={onPurchasePremium}
|
|
187
|
+
onViewPremium={(id) => onViewPremium ? onViewPremium(id) : console.log('')}
|
|
188
|
+
/>
|
|
189
|
+
:<></>}
|
|
160
190
|
</View>
|
|
161
191
|
)
|
|
162
192
|
case 'available':
|
|
@@ -176,14 +206,14 @@ const BetMatchCard = ({ order, action_loading, show_grades, show_external_prices
|
|
|
176
206
|
)
|
|
177
207
|
default: return <></>
|
|
178
208
|
}
|
|
179
|
-
}
|
|
209
|
+
}, [JSON.stringify(external_price), order.order_id])
|
|
180
210
|
|
|
181
211
|
return (
|
|
182
|
-
<View float>
|
|
183
|
-
<View float transparent style={{ marginBottom:30 }}>
|
|
212
|
+
<View float style={{ flex:1 }}>
|
|
213
|
+
<View float transparent style={{ marginBottom:30, flex:1 }}>
|
|
184
214
|
<View float type='footer' style={{ position:'absolute', left:0, right:0, bottom: -30, height:50, margin:0, borderRadius:8 }} />
|
|
185
215
|
<View float type='footer' style={{ position:'absolute', left:0, right:0, bottom: -15, height:50, margin:-5, borderRadius:8 }} />
|
|
186
|
-
<View transparent>
|
|
216
|
+
<View transparent style={{ flex:1 }}>
|
|
187
217
|
<FlatList
|
|
188
218
|
data={sections}
|
|
189
219
|
key={'bet_match_card_sections'}
|