be-components 6.0.3 → 6.0.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/Components/Dropdown.js +17 -19
- package/lib/commonjs/Components/Dropdown.js.map +1 -1
- package/lib/commonjs/Components/Icons.js +30 -0
- package/lib/commonjs/Components/Icons.js.map +1 -1
- package/lib/commonjs/Components/Pagination.js +70 -6
- package/lib/commonjs/Components/Pagination.js.map +1 -1
- package/lib/commonjs/LocationTracker/api/index.js +2 -0
- package/lib/commonjs/LocationTracker/api/index.js.map +1 -1
- package/lib/commonjs/LocationTracker/index.js +39 -54
- package/lib/commonjs/LocationTracker/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/api/index.js +137 -2
- package/lib/commonjs/MarketComponents/api/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/AthleteMarket/index.js +2 -2
- package/lib/commonjs/MarketComponents/components/AthleteMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/MarketManager/MarketResolveForm.js +120 -5
- package/lib/commonjs/MarketComponents/components/MarketManager/MarketResolveForm.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/api/index.js +28 -0
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/api/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/index.js +3 -2
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/index.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js +1 -130
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/commonjs/ProfileManager/index.js +15 -5
- package/lib/commonjs/ProfileManager/index.js.map +1 -1
- package/lib/commonjs/SocialComponents/SocialOrderCard.js +50 -1
- package/lib/commonjs/SocialComponents/SocialOrderCard.js.map +1 -1
- package/lib/module/Components/Dropdown.js +13 -15
- package/lib/module/Components/Dropdown.js.map +1 -1
- package/lib/module/Components/Icons.js +30 -0
- package/lib/module/Components/Icons.js.map +1 -1
- package/lib/module/Components/Pagination.js +68 -5
- package/lib/module/Components/Pagination.js.map +1 -1
- package/lib/module/LocationTracker/api/index.js +2 -0
- package/lib/module/LocationTracker/api/index.js.map +1 -1
- package/lib/module/LocationTracker/index.js +16 -31
- package/lib/module/LocationTracker/index.js.map +1 -1
- package/lib/module/MarketComponents/api/index.js +137 -2
- package/lib/module/MarketComponents/api/index.js.map +1 -1
- package/lib/module/MarketComponents/components/AthleteMarket/index.js +2 -2
- package/lib/module/MarketComponents/components/AthleteMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/MarketManager/MarketResolveForm.js +121 -6
- package/lib/module/MarketComponents/components/MarketManager/MarketResolveForm.js.map +1 -1
- package/lib/module/MarketComponents/components/TeamEventMarket/api/index.js +28 -0
- package/lib/module/MarketComponents/components/TeamEventMarket/api/index.js.map +1 -1
- package/lib/module/MarketComponents/components/TeamEventMarket/index.js +3 -2
- package/lib/module/MarketComponents/components/TeamEventMarket/index.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWizard.js +1 -132
- package/lib/module/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/module/ProfileManager/index.js +15 -5
- package/lib/module/ProfileManager/index.js.map +1 -1
- package/lib/module/SocialComponents/SocialOrderCard.js +50 -1
- package/lib/module/SocialComponents/SocialOrderCard.js.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Dropdown.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Icons.d.ts +5 -0
- package/lib/typescript/lib/commonjs/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Pagination.d.ts +3 -1
- package/lib/typescript/lib/commonjs/Components/Pagination.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/LocationTracker/api/index.d.ts +1 -0
- package/lib/typescript/lib/commonjs/LocationTracker/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/LocationTracker/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/api/index.d.ts +10 -0
- package/lib/typescript/lib/commonjs/MarketComponents/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MarketManager/MarketResolveForm.d.ts +2 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MarketManager/MarketResolveForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/TeamEventMarket/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/index.d.ts +3 -1
- package/lib/typescript/lib/commonjs/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/SocialComponents/SocialOrderCard.d.ts +2 -1
- package/lib/typescript/lib/commonjs/SocialComponents/SocialOrderCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Dropdown.d.ts +1 -2
- package/lib/typescript/lib/module/Components/Dropdown.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Icons.d.ts +5 -0
- package/lib/typescript/lib/module/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Pagination.d.ts +3 -1
- package/lib/typescript/lib/module/Components/Pagination.d.ts.map +1 -1
- package/lib/typescript/lib/module/LocationTracker/api/index.d.ts +1 -0
- package/lib/typescript/lib/module/LocationTracker/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/LocationTracker/index.d.ts +1 -2
- package/lib/typescript/lib/module/LocationTracker/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/api/index.d.ts +10 -0
- package/lib/typescript/lib/module/MarketComponents/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/MarketManager/MarketResolveForm.d.ts +2 -1
- package/lib/typescript/lib/module/MarketComponents/components/MarketManager/MarketResolveForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/TeamEventMarket/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/TeamEventMarket/index.d.ts +2 -1
- package/lib/typescript/lib/module/MarketComponents/components/TeamEventMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/index.d.ts +3 -1
- package/lib/typescript/lib/module/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/SocialComponents/SocialOrderCard.d.ts +2 -1
- package/lib/typescript/lib/module/SocialComponents/SocialOrderCard.d.ts.map +1 -1
- package/lib/typescript/src/Components/Dropdown.d.ts.map +1 -1
- package/lib/typescript/src/Components/Icons.d.ts +1 -0
- package/lib/typescript/src/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/src/Components/Pagination.d.ts +3 -1
- package/lib/typescript/src/Components/Pagination.d.ts.map +1 -1
- package/lib/typescript/src/LocationTracker/api/index.d.ts.map +1 -1
- package/lib/typescript/src/LocationTracker/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/api/index.d.ts +22 -2
- package/lib/typescript/src/MarketComponents/api/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/AthleteMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/MarketManager/MarketResolveForm.d.ts +1 -1
- package/lib/typescript/src/MarketComponents/components/MarketManager/MarketResolveForm.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TeamEventMarket/api/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TeamEventMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/TeamEventMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/index.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/index.d.ts +3 -1
- package/lib/typescript/src/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/src/SocialComponents/SocialOrderCard.d.ts +4 -3
- package/lib/typescript/src/SocialComponents/SocialOrderCard.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Components/Dropdown.tsx +13 -12
- package/src/Components/Icons.tsx +17 -0
- package/src/Components/Pagination.tsx +46 -6
- package/src/LocationTracker/api/index.tsx +2 -0
- package/src/LocationTracker/index.tsx +16 -26
- package/src/MarketComponents/api/index.ts +110 -4
- package/src/MarketComponents/components/AthleteMarket/index.tsx +2 -3
- package/src/MarketComponents/components/MarketManager/MarketResolveForm.tsx +72 -6
- package/src/MarketComponents/components/TeamEventMarket/api/index.ts +27 -1
- package/src/MarketComponents/components/TeamEventMarket/index.tsx +4 -4
- package/src/ProfileManager/Components/ProfileWizard.tsx +2 -139
- package/src/ProfileManager/index.tsx +9 -7
- package/src/SocialComponents/SocialOrderCard.tsx +24 -3
- package/src/types.d.ts +11 -1
|
@@ -3,6 +3,7 @@ export { MarketComponentApi, MarketComponentHelpers };
|
|
|
3
3
|
declare const MarketComponentApi: {
|
|
4
4
|
setEnvironment: () => void;
|
|
5
5
|
getMarkets: () => Promise<MarketProps[]>;
|
|
6
|
+
createOrder: (order: OrderProps) => Promise<OrderProps | undefined>;
|
|
6
7
|
getPlayersByIds: (player_ids: string[]) => Promise<PublicPlayerProps[]>;
|
|
7
8
|
getOrdersByIds: (order_ids: string[]) => Promise<OrderProps[]>;
|
|
8
9
|
expireOpenOrders: (event_id: string, event_type: string, market_id: string, order_ids?: string[]) => Promise<boolean>;
|
|
@@ -32,11 +33,11 @@ declare const MarketComponentApi: {
|
|
|
32
33
|
getMyHistory: (player_id: string, range: number) => Promise<OrderProps[]>;
|
|
33
34
|
getEventsByEventIds: (event_ids: string[]) => Promise<EventProps[]>;
|
|
34
35
|
getMatchesByMatchIds: (match_ids: string[]) => Promise<MatchProps[]>;
|
|
35
|
-
getAthletesByIds: (athlete_ids: string[]) => Promise<
|
|
36
|
+
getAthletesByIds: (athlete_ids: string[]) => Promise<AthleteProps[]>;
|
|
36
37
|
getTournamentsByTournamentIds: (tournament_ids: string[]) => Promise<TournamentProps[]>;
|
|
37
38
|
getTeamsByIds: (team_ids: string[]) => Promise<any>;
|
|
38
39
|
getLeagues: () => Promise<LeagueProps[]>;
|
|
39
|
-
getBestAvailableOrders: () => Promise<BestAvailableResponseProps
|
|
40
|
+
getBestAvailableOrders: () => Promise<BestAvailableResponseProps>;
|
|
40
41
|
getAthletesByTeamId: (team_id: string) => Promise<AthleteProps[]>;
|
|
41
42
|
getPodcastsByKeywords: (keywords: string) => Promise<PodcastProps[]>;
|
|
42
43
|
getMatchesByTournament: (tournament_id: string) => Promise<MatchProps[]>;
|
|
@@ -50,6 +51,25 @@ declare const MarketComponentHelpers: {
|
|
|
50
51
|
open_order_count: number;
|
|
51
52
|
};
|
|
52
53
|
calcPotentialWinnings: (amt: number, odds: number) => number;
|
|
54
|
+
getMissingTournaments: (matches: MatchProps[], tournaments: TournamentProps[]) => string[];
|
|
55
|
+
extractAthleteIds: (athlete_ids?: string) => string[];
|
|
56
|
+
formatBestAvailable: (ba_response: {
|
|
57
|
+
events: EventProps[];
|
|
58
|
+
tournaments: TournamentProps[];
|
|
59
|
+
matches: MatchProps[];
|
|
60
|
+
}) => {
|
|
61
|
+
best_available: {
|
|
62
|
+
[key: string]: BestAvailableOrderProps[];
|
|
63
|
+
};
|
|
64
|
+
order_stats: {
|
|
65
|
+
[key: string]: EventOrderStatProps[];
|
|
66
|
+
};
|
|
67
|
+
latest_trades: {
|
|
68
|
+
[key: string]: TradeProps[];
|
|
69
|
+
};
|
|
70
|
+
athlete_ids: string[];
|
|
71
|
+
team_ids: string[];
|
|
72
|
+
};
|
|
53
73
|
getOrdersFromTrade: (trade: TradeProps, orders: OrderProps[]) => {
|
|
54
74
|
found_orders: OrderProps[];
|
|
55
75
|
found_positions: PositionProps[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/MarketComponents/api/index.ts"],"names":[],"m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;IACtB,KAAK,EAAC,UAAU,CAAC;IACjB,UAAU,EAAC,MAAM,GAAC,YAAY,GAAC,OAAO,CAAC;IACvC,OAAO,EAAC,YAAY,CAAC;IACrB,gBAAgB,CAAC,EAAC,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAC,MAAM,CAAC;IACd,MAAM,EAAC,WAAW,CAAC;IACnB,KAAK,CAAC,EAAC,OAAO,CAAC;IACf,SAAS,CAAC,EAAC,YAAY,GAAC,UAAU,CAAC;IACnC,KAAK,CAAC,EAAC,GAAG,CAAC;IACX,MAAM,CAAC,EAAC,WAAW,CAAC;IACpB,UAAU,CAAC,EAAC,OAAO,CAAC;IACpB,UAAU,CAAC,EAAC,OAAO,CAAC;IACpB,cAAc,CAAC,EAAC,OAAO,CAAC;IACxB,aAAa,EAAC,UAAU,EAAE,CAAC;IAC3B,qBAAqB,EAAC,uBAAuB,EAAE,CAAC;IAChD,iBAAiB,EAAC,mBAAmB,EAAE,CAAC;IACxC,kBAAkB,EAAC,YAAY,GAAC,gBAAgB,CAAC;IACjD,OAAO,EAAC,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,CAAC;IACnC,WAAW,CAAC,EAAC,OAAO,CAAC;IACrB,MAAM,EAAC,CAAC,IAAI,EAAC;QAAC,QAAQ,EAAC,MAAM,CAAC;QAAC,UAAU,EAAC,MAAM,CAAC;QAAC,SAAS,EAAC,MAAM,CAAC;QAAC,SAAS,EAAC,SAAS,CAAC;QAAC,OAAO,EAAC,MAAM,CAAA;KAAC,KAAK,IAAI,CAAC;IAClH,gBAAgB,EAAC,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,CAAA;CAC9C,CAAA;uSAEyQ,kBAAkB;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/MarketComponents/components/AthleteMarket/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,uBAAuB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ormProps = {
|
|
|
13
13
|
market_stats: MarketStatsProps[];
|
|
14
14
|
onClose: () => void;
|
|
15
15
|
};
|
|
16
|
-
declare const MarketResolveForm: ({ contest_title, contest_id, contest_type, market, athletes, market_stats, side_type, side_id, onResolve, onClose }: MarketResolveFormProps) => React.JSX.Element;
|
|
16
|
+
declare const MarketResolveForm: ({ contest_title, contest_id, contest_type, market, athletes, teams, market_stats, side_type, side_id, onResolve, onClose }: MarketResolveFormProps) => React.JSX.Element;
|
|
17
17
|
export default MarketResolveForm;
|
|
18
18
|
//# sourceMappingURL=MarketResolveForm.d.ts.map
|
package/lib/typescript/src/MarketComponents/components/MarketManager/MarketResolveForm.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarketResolveForm.d.ts","sourceRoot":"","sources":["../../../../../../src/MarketComponents/components/MarketManager/MarketResolveForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,YAAY,EAAoB,WAAW,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAQ/G,KAAK,sBAAsB,GAAG;IAC1B,aAAa,EAAC,MAAM,CAAC;IACrB,YAAY,EAAC,MAAM,CAAC;IACpB,UAAU,EAAC,MAAM,CAAC;IAClB,MAAM,EAAC,WAAW,CAAC;IACnB,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,OAAO,CAAC,EAAC,MAAM,CAAC;IAChB,KAAK,EAAC,SAAS,EAAE,CAAC;IAClB,QAAQ,EAAC,YAAY,EAAE,CAAC;IACxB,SAAS,EAAC,MAAM,IAAI,CAAC;IACrB,YAAY,EAAC,gBAAgB,EAAE,CAAC;IAChC,OAAO,EAAC,MAAM,IAAI,CAAA;CACrB,CAAA;AAGD,QAAA,MAAM,iBAAiB,GAAI,
|
|
1
|
+
{"version":3,"file":"MarketResolveForm.d.ts","sourceRoot":"","sources":["../../../../../../src/MarketComponents/components/MarketManager/MarketResolveForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,YAAY,EAAoB,WAAW,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAQ/G,KAAK,sBAAsB,GAAG;IAC1B,aAAa,EAAC,MAAM,CAAC;IACrB,YAAY,EAAC,MAAM,CAAC;IACpB,UAAU,EAAC,MAAM,CAAC;IAClB,MAAM,EAAC,WAAW,CAAC;IACnB,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,OAAO,CAAC,EAAC,MAAM,CAAC;IAChB,KAAK,EAAC,SAAS,EAAE,CAAC;IAClB,QAAQ,EAAC,YAAY,EAAE,CAAC;IACxB,SAAS,EAAC,MAAM,IAAI,CAAC;IACrB,YAAY,EAAC,gBAAgB,EAAE,CAAC;IAChC,OAAO,EAAC,MAAM,IAAI,CAAA;CACrB,CAAA;AAGD,QAAA,MAAM,iBAAiB,GAAI,4HAA2H,sBAAsB,sBA8Y3K,CAAA;AAED,eAAe,iBAAiB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/MarketComponents/components/TeamEventMarket/api/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE/G,OAAQ,EAAE,sBAAsB,EAAE,CAAA;AAClC,QAAA,MAAM,sBAAsB;+BACE,UAAU,WAAU,WAAW,EAAE,KAAE,WAAW,EAAE;kCAK9C,UAAU,WAAU,WAAW,EAAE,KAAE,WAAW,EAAE;2BAKtD,UAAU;qCAIA,WAAW,EAAE,qBAAoB,mBAAmB,EAAE,iBAAgB,UAAU,EAAE;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/MarketComponents/components/TeamEventMarket/api/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,mBAAmB,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE/G,OAAQ,EAAE,sBAAsB,EAAE,CAAA;AAClC,QAAA,MAAM,sBAAsB;+BACE,UAAU,WAAU,WAAW,EAAE,KAAE,WAAW,EAAE;kCAK9C,UAAU,WAAU,WAAW,EAAE,KAAE,WAAW,EAAE;2BAKtD,UAAU;qCAIA,WAAW,EAAE,qBAAoB,mBAAmB,EAAE,iBAAgB,UAAU,EAAE;;;;iCA8DtF,WAAW,qBAAoB,mBAAmB,EAAE,iBAAgB,UAAU,EAAE,YAAW,YAAY,EAAE,KAAE,YAAY,EAAE;4BAW9H,UAAU,KAAE,QAAQ,GAAC,QAAQ,GAAC,UAAU;CAMlE,CAAA"}
|
|
@@ -33,6 +33,7 @@ type TeamEventMarketProps = {
|
|
|
33
33
|
onShare?: (event: EventProps) => void;
|
|
34
34
|
onPodcastSelect?: (podcast: PodcastProps) => void;
|
|
35
35
|
show_grades?: boolean;
|
|
36
|
+
hide_non_primary?: boolean;
|
|
36
37
|
onCompetitionSelect: (competition_id: string) => void;
|
|
37
38
|
onSquaresSelect: (sq_comp_id: string) => void;
|
|
38
39
|
onViewAdditionalMarkets: (event_id: string, event_type: string) => void;
|
|
@@ -40,6 +41,6 @@ type TeamEventMarketProps = {
|
|
|
40
41
|
onActivate?: (event_id: string, event_type: string) => void;
|
|
41
42
|
activate_loading?: boolean;
|
|
42
43
|
};
|
|
43
|
-
declare const _default: React.MemoExoticComponent<({ event, league, float, style, init_expanded, hot_markets_direction, show_id, hide_liquidity, show_podcasts, activate_loading, competitions, squares_competitions, show_grades, markets, latest_trades, best_available_orders, event_order_stats, default_price_view, onTeamSelect, onSquaresSelect, onCompetitionSelect, onExpand, onOrder, onViewMarketStats, onView, onViewAdditionalMarkets, onTradeLongPress, onTVSelect, onActivate, onEvent, onShare, onPodcastSelect }: TeamEventMarketProps) => React.JSX.Element>;
|
|
44
|
+
declare const _default: React.MemoExoticComponent<({ event, hide_non_primary, league, float, style, init_expanded, hot_markets_direction, show_id, hide_liquidity, show_podcasts, activate_loading, competitions, squares_competitions, show_grades, markets, latest_trades, best_available_orders, event_order_stats, default_price_view, onTeamSelect, onSquaresSelect, onCompetitionSelect, onExpand, onOrder, onViewMarketStats, onView, onViewAdditionalMarkets, onTradeLongPress, onTVSelect, onActivate, onEvent, onShare, onPodcastSelect }: TeamEventMarketProps) => React.JSX.Element>;
|
|
44
45
|
export default _default;
|
|
45
46
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/MarketComponents/components/TeamEventMarket/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAEjF,OAAO,KAAK,EAAgB,YAAY,EAAE,uBAAuB,EAAgB,gBAAgB,EAAE,mBAAmB,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAyB,UAAU,EAAE,YAAY,EAAE,uBAAuB,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAkB3Q,KAAK,oBAAoB,GAAG;IACxB,KAAK,EAAC,UAAU,CAAC;IACjB,OAAO,EAAC,WAAW,EAAE,CAAC;IACtB,aAAa,CAAC,EAAC,OAAO,CAAC;IACvB,iBAAiB,CAAC,EAAC,MAAM,IAAI,CAAC;IAC9B,MAAM,CAAC,EAAC,WAAW,CAAC;IACpB,YAAY,CAAC,EAAC,gBAAgB,EAAE,CAAC;IACjC,OAAO,CAAC,EAAC,MAAM,CAAC;IAChB,cAAc,CAAC,EAAC,OAAO,CAAC;IACxB,KAAK,CAAC,EAAC,OAAO,CAAC;IACf,qBAAqB,CAAC,EAAC,UAAU,GAAC,YAAY,CAAA;IAC9C,aAAa,CAAC,EAAC,OAAO,CAAC;IACvB,oBAAoB,CAAC,EAA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ponent<({ event, league, float, style, init_expanded, hot_markets_direction, show_id, hide_liquidity, show_podcasts, activate_loading, competitions, squares_competitions, show_grades, markets, latest_trades, best_available_orders, event_order_stats, default_price_view, onTeamSelect, onSquaresSelect, onCompetitionSelect, onExpand, onOrder, onViewMarketStats, onView, onViewAdditionalMarkets, onTradeLongPress, onTVSelect, onActivate, onEvent, onShare, onPodcastSelect }: {
|
|
2
|
+
TeamEventMarket: import("react").MemoExoticComponent<({ event, hide_non_primary, league, float, style, init_expanded, hot_markets_direction, show_id, hide_liquidity, show_podcasts, activate_loading, competitions, squares_competitions, show_grades, markets, latest_trades, best_available_orders, event_order_stats, default_price_view, onTeamSelect, onSquaresSelect, onCompetitionSelect, onExpand, onOrder, onViewMarketStats, onView, onViewAdditionalMarkets, onTradeLongPress, onTVSelect, onActivate, onEvent, onShare, onPodcastSelect }: {
|
|
3
3
|
event: import("../types").EventProps;
|
|
4
4
|
markets: import("../types").MarketProps[];
|
|
5
5
|
init_expanded?: boolean;
|
|
@@ -32,6 +32,7 @@ declare const _default: {
|
|
|
32
32
|
onShare?: (event: import("../types").EventProps) => void;
|
|
33
33
|
onPodcastSelect?: (podcast: import("../types").PodcastProps) => void;
|
|
34
34
|
show_grades?: boolean;
|
|
35
|
+
hide_non_primary?: boolean;
|
|
35
36
|
onCompetitionSelect: (competition_id: string) => void;
|
|
36
37
|
onSquaresSelect: (sq_comp_id: string) => void;
|
|
37
38
|
onViewAdditionalMarkets: (event_id: string, event_type: string) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/MarketComponents/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;qBAkCmmB,CAAC;mBAAgB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/MarketComponents/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;qBAkCmmB,CAAC;mBAAgB,CAAC;;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CAAC,EAAC,mBAAmB,CAAC;QACrC,aAAa,CAAC,EAAC,iBAAiB,CAAC;QACjC,QAAQ,CAAC,EAAC,iBAAiB,CAAA;KAC9B,KAAK,IAAI,CAAC;IACX,iBAAiB,CAAC,EAAC,OAAO,GAAC,OAAO,GAAC,OAAO,GAAC,KAAK,GAAC,UAAU,GAAC,OAAO,GAAC,cAAc,GAAC,aAAa,CAAC;IACjG,OAAO,EAAC,MAAM,IAAI,CAAC;IACnB,UAAU,EAAC,CAAC,IAAI,EAAC,MAAM,KAAK,IAAI,CAAC;IACjC,QAAQ,EAAC,MAAM,IAAI,CAAC;IACpB,aAAa,EAAC,CAAC,KAAK,EAAC,iBAAiB,KAAK,IAAI,CAAC;IAChD,cAAc,EAAC,CAAC,MAAM,EAAC,aAAa,EAAE,SAAS,CAAC,EAAC,MAAM,KAAK,IAAI,CAAA;IAChE,qBAAqB,EAAC,CAAC,cAAc,EAAC,kBAAkB,KAAK,IAAI,CAAA;CACpE,CAAA;AAID,QAAA,MAAM,aAAa,GAAI,gSAAgS,kBAAkB,sBA+jBxU,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -3,8 +3,10 @@ import type { CodeRequestProps, FocusPositionProps, MyPlayerProps, PlayerReferra
|
|
|
3
3
|
type ProfileOverviewProps = {
|
|
4
4
|
show_welcome?: boolean;
|
|
5
5
|
hide_powered_by?: boolean;
|
|
6
|
+
float?: boolean;
|
|
6
7
|
hide_profile_header?: boolean;
|
|
7
8
|
player?: MyPlayerProps;
|
|
9
|
+
style?: any;
|
|
8
10
|
keyboard_height: number;
|
|
9
11
|
hidden_groups?: string[];
|
|
10
12
|
insets?: {
|
|
@@ -34,6 +36,6 @@ type ProfileOverviewProps = {
|
|
|
34
36
|
level: 'verify' | 'basic';
|
|
35
37
|
};
|
|
36
38
|
};
|
|
37
|
-
declare const ProfileManager: ({ profile_attribute, keyboard_height, view_mode, hide_profile_header, insets, player, hide_powered_by, onRedeemCode, onPlayerUpdate, onNextStep, onFocusPosition, onVouchStart, show_welcome, hidden_groups, hidden_steps, hidden_levels, walkthrough, onClose, onLogout }: ProfileOverviewProps) => React.JSX.Element;
|
|
39
|
+
declare const ProfileManager: ({ float, profile_attribute, style, keyboard_height, view_mode, hide_profile_header, insets, player, hide_powered_by, onRedeemCode, onPlayerUpdate, onNextStep, onFocusPosition, onVouchStart, show_welcome, hidden_groups, hidden_steps, hidden_levels, walkthrough, onClose, onLogout }: ProfileOverviewProps) => React.JSX.Element;
|
|
38
40
|
export default ProfileManager;
|
|
39
41
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ProfileManager/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,aAAa,EAAsB,mBAAmB,EAAsB,UAAU,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAGnM,KAAK,oBAAoB,GAAG;IACxB,YAAY,CAAC,EAAC,OAAO,CAAC;IACtB,eAAe,CAAC,EAAC,OAAO,CAAC;IACzB,mBAAmB,CAAC,EAAC,OAAO,CAAC;IAC7B,MAAM,CAAC,EAAC,aAAa,CAAC;IACtB,eAAe,EAAC,MAAM,CAAC;IACvB,aAAa,CAAC,EAAC,MAAM,EAAE,CAAC;IACxB,MAAM,CAAC,EAAC;QAAE,GAAG,EAAC,MAAM,CAAC;QAAC,MAAM,EAAC,MAAM,CAAC;QAAC,IAAI,EAAC,MAAM,CAAC;QAAC,KAAK,EAAC,MAAM,CAAA;KAAE,CAAA;IAChE,YAAY,CAAC,EAAC,MAAM,EAAE,CAAC;IACvB,aAAa,CAAC,EAAC,MAAM,EAAE,CAAC;IACxB,OAAO,EAAC,MAAM,IAAI,CAAC;IACnB,SAAS,CAAC,EAAC,SAAS,GAAC,QAAQ,CAAC;IAC9B,eA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AC5B,CAAA;CACJ,CAAA;AAED,QAAA,MAAM,cAAc,GAAI,0RAA0R,oBAAoB,sBAiHrU,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { AthleteProps, LeagueProps, OrderProps, PublicPlayerProps, TeamProps } from '../types';
|
|
2
|
+
import type { AthleteProps, LeagueProps, MyPlayerProps, OrderProps, PublicPlayerProps, TeamProps } from '../types';
|
|
3
3
|
type SocialOrderCardProps = {
|
|
4
|
-
player?: PublicPlayerProps;
|
|
4
|
+
player?: PublicPlayerProps | MyPlayerProps;
|
|
5
5
|
show_player?: boolean;
|
|
6
6
|
contest_title: string;
|
|
7
7
|
contest_time: string;
|
|
8
|
+
show_amounts?: boolean;
|
|
8
9
|
order: OrderProps;
|
|
9
10
|
athlete?: AthleteProps;
|
|
10
11
|
maxWidth?: number;
|
|
@@ -15,6 +16,6 @@ type SocialOrderCardProps = {
|
|
|
15
16
|
onCopyOrder?: (order: OrderProps) => void;
|
|
16
17
|
onFadeOrder?: (order: OrderProps) => void;
|
|
17
18
|
};
|
|
18
|
-
declare const SocialOrderCard: ({ player, show_player, hide_contest, maxWidth, league, team, athlete, order, contest_title, contest_time, onTagOrder, onCopyOrder, onFadeOrder }: SocialOrderCardProps) => React.JSX.Element;
|
|
19
|
+
declare const SocialOrderCard: ({ player, show_player, show_amounts, hide_contest, maxWidth, league, team, athlete, order, contest_title, contest_time, onTagOrder, onCopyOrder, onFadeOrder }: SocialOrderCardProps) => React.JSX.Element;
|
|
19
20
|
export default SocialOrderCard;
|
|
20
21
|
//# sourceMappingURL=SocialOrderCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SocialOrderCard.d.ts","sourceRoot":"","sources":["../../../../src/SocialComponents/SocialOrderCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"SocialOrderCard.d.ts","sourceRoot":"","sources":["../../../../src/SocialComponents/SocialOrderCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AASnH,KAAK,oBAAoB,GAAG;IACxB,MAAM,CAAC,EAAC,iBAAiB,GAAG,aAAa,CAAC;IAC1C,WAAW,CAAC,EAAC,OAAO,CAAC;IACrB,aAAa,EAAC,MAAM,CAAC;IACrB,YAAY,EAAC,MAAM,CAAC;IACpB,YAAY,CAAC,EAAC,OAAO,CAAC;IACtB,KAAK,EAAC,UAAU,CAAC;IACjB,OAAO,CAAC,EAAC,YAAY,CAAC;IACtB,QAAQ,CAAC,EAAC,MAAM,CAAC;IACjB,YAAY,CAAC,EAAC,OAAO,CAAC;IACtB,IAAI,CAAC,EAAC,SAAS,CAAC;IAChB,MAAM,CAAC,EAAC,WAAW,CAAC;IACpB,UAAU,CAAC,EAAC,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,CAAC;IACvC,WAAW,CAAC,EAAC,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,CAAC;IACxC,WAAW,CAAC,EAAC,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,CAAA;CAC1C,CAAA;AACD,QAAA,MAAM,eAAe,GAAI,gKAA+J,oBAAoB,sBAkJ3M,CAAA;AAED,eAAe,eAAe,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useState } from 'react'
|
|
2
|
-
import {
|
|
3
|
-
import Text from './Text';
|
|
4
|
-
import Colors from '../constants/colors';
|
|
2
|
+
import { FlatList } from 'react-native';
|
|
5
3
|
import Icons from './Icons';
|
|
4
|
+
import { useColors } from '../constants/useColors';
|
|
5
|
+
import { Button, Text, View } from './Themed';
|
|
6
6
|
|
|
7
7
|
type DropdownProps = {
|
|
8
8
|
selected_value:string,
|
|
@@ -13,6 +13,7 @@ type DropdownProps = {
|
|
|
13
13
|
onOptionSelect: (option:string) => void
|
|
14
14
|
}
|
|
15
15
|
const DropDown = ({ invalid, errors, read_only, selected_value, dropdown_options, onOptionSelect }:DropdownProps) => {
|
|
16
|
+
const Colors = useColors();
|
|
16
17
|
const [ expanded, setExpanded ] = useState(false);
|
|
17
18
|
let options:string[] = []
|
|
18
19
|
|
|
@@ -28,7 +29,7 @@ const DropDown = ({ invalid, errors, read_only, selected_value, dropdown_options
|
|
|
28
29
|
|
|
29
30
|
const renderErrors = (data : { item:string, index:number }) => {
|
|
30
31
|
return (
|
|
31
|
-
<Text style={{ margin:4 }} size={12} color={Colors.
|
|
32
|
+
<Text style={{ margin:4 }} size={12} color={Colors.text.error} weight='regular'>{data.item}</Text>
|
|
32
33
|
)
|
|
33
34
|
}
|
|
34
35
|
|
|
@@ -36,25 +37,25 @@ const DropDown = ({ invalid, errors, read_only, selected_value, dropdown_options
|
|
|
36
37
|
const renderOptions = (data: { item: string, index:number }) => {
|
|
37
38
|
const last_item = data.index == options.length - 1 ? true : false
|
|
38
39
|
return (
|
|
39
|
-
<
|
|
40
|
-
<Text size={14}
|
|
41
|
-
</
|
|
40
|
+
<Button style={{ paddingTop:10, paddingBottom:last_item?0:10, borderBottomWidth:last_item?0:1, borderColor:Colors.borders.light }} onPress={() => handleOptionSelect(data.item)}>
|
|
41
|
+
<Text size={14} theme='description'>{data.item}</Text>
|
|
42
|
+
</Button>
|
|
42
43
|
)
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
return (
|
|
46
47
|
<View>
|
|
47
|
-
<View style={{ borderRadius:8, borderWidth:1, borderColor:invalid?Colors.
|
|
48
|
-
<
|
|
49
|
-
<Text style={{ flex:1 }} size={14}
|
|
48
|
+
<View style={{ borderRadius:8, borderWidth:1, borderColor:invalid?Colors.text.error:Colors.borders.light }}>
|
|
49
|
+
<Button disabled={read_only} style={{ flexDirection:'row', alignItems:'center', padding:10 }} onPress={() => setExpanded(!expanded)}>
|
|
50
|
+
<Text style={{ flex:1 }} size={14} theme='h2'>{selected_value && selected_value != '' ? selected_value : 'Select Value'}</Text>
|
|
50
51
|
{!read_only ?
|
|
51
52
|
<Icons.ChevronIcon
|
|
52
53
|
direction={expanded?'up':'down'}
|
|
53
|
-
color={Colors.
|
|
54
|
+
color={Colors.text.h1}
|
|
54
55
|
size={8}
|
|
55
56
|
/>
|
|
56
57
|
:<></>}
|
|
57
|
-
</
|
|
58
|
+
</Button>
|
|
58
59
|
{expanded ?
|
|
59
60
|
<View style={{padding:10 }}>
|
|
60
61
|
<FlatList
|
package/src/Components/Icons.tsx
CHANGED
|
@@ -25,6 +25,22 @@ const AlertIcon = ({ color, size }:IconProps) => {
|
|
|
25
25
|
)
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
const AthleteIcon = ({size, color}:IconProps) => {
|
|
29
|
+
const ratio = 0.7
|
|
30
|
+
const height = size ?? 30
|
|
31
|
+
const width = height * ratio
|
|
32
|
+
return (
|
|
33
|
+
<Svg width={`${width}px`} height={`${height}px`} viewBox="0 0 21 30">
|
|
34
|
+
<G id="Page-1" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
|
|
35
|
+
<G id="athlete-svgrepo-com" fill={color??Colors.brand.midnight} fillRule="nonzero">
|
|
36
|
+
<Path d="M10.4052437,14.8646046 C4.59485879,14.8646046 0,19.5973344 0,25.2698484 L0,28.8660949 C0,29.4922857 0.507655754,30 1.13390514,30 L19.6766409,30 C20.3028317,30 20.8105461,29.4923442 20.8105461,28.8660949 L20.8105461,25.2698484 C20.8105461,19.5349321 16.1428553,14.8646046 10.4052437,14.8646046 Z M9.49170948,17.1839188 C10.0969237,17.1164188 10.7031341,17.1147782 11.318778,17.1839188 L11.318778,18.8465734 C11.318778,19.3502448 10.9089737,19.7601077 10.4052437,19.7601077 C9.90151377,19.7601077 9.49170948,19.3503034 9.49170948,18.8465734 L9.49170948,17.1839188 Z M3.55839496,27.7321897 L2.26775169,27.7321897 C2.26775169,25.1453954 2.04491988,23.2271551 3.55833637,20.8766105 L3.55833637,27.7321897 L3.55839496,27.7321897 Z M14.9843994,27.7321897 L5.82620525,27.7321897 L5.82620525,18.5465737 C6.26360716,18.2477459 6.73136061,17.9902852 7.22401638,17.7802854 L7.22401638,18.8466906 C7.22401638,20.60081 8.65112436,22.0280351 10.4053609,22.0280351 C12.1595975,22.0280351 13.5867055,20.6009271 13.5867055,18.8466906 L13.5867055,17.7802854 C14.0793612,17.9903438 14.5471147,18.2477459 14.9845166,18.5465737 L14.9845166,27.7321897 L14.9843994,27.7321897 Z M18.542853,27.7321897 L17.2522683,27.7321897 L17.2522683,20.8766105 C18.7474622,23.1989129 18.542853,25.0730322 18.542853,27.7321897 Z" id="Shape"></Path>
|
|
37
|
+
<Path d="M3.76265258,4.82369646 C2.29177511,9.33347721 5.67515071,13.9701719 10.4053609,13.9701719 C15.1458836,13.9701719 18.5161343,9.32515691 17.0480107,4.82369646 C17.3922486,4.62904822 17.6249828,4.26031811 17.6249828,3.83662711 C17.6249828,3.21043632 17.117327,2.70272197 16.4910776,2.70272197 L15.9201993,2.70272197 C13.1156122,-0.901083103 7.69458233,-0.900731541 4.89028819,2.70272197 L4.31946844,2.70272197 C3.69327764,2.70272197 3.1855633,3.21037773 3.1855633,3.83662711 C3.1855633,4.26025951 3.41835604,4.62898962 3.76265258,4.82369646 Z M12.381316,2.70266338 L8.42917146,2.70266338 C9.65067417,2.13682409 11.0967665,2.10752724 12.381316,2.70266338 Z M6.14050182,4.97047366 L14.6701029,4.97047366 C16.1461366,8.08285344 13.8644396,11.7023616 10.4053023,11.7023616 C6.94657525,11.7023616 4.66429232,8.083205 6.14050182,4.97047366 Z" id="Shape"></Path>
|
|
38
|
+
</G>
|
|
39
|
+
</G>
|
|
40
|
+
</Svg>
|
|
41
|
+
)
|
|
42
|
+
}
|
|
43
|
+
|
|
28
44
|
const LeaderboardIcon = ({ color, size }:IconProps) => {
|
|
29
45
|
return (
|
|
30
46
|
<Svg width={`${size??34}px`} height={`${size??34}px`} viewBox="0 0 34 34">
|
|
@@ -1606,6 +1622,7 @@ export default {
|
|
|
1606
1622
|
PauseIcon,
|
|
1607
1623
|
TransactionErrorIcon,
|
|
1608
1624
|
VisaCardIcon,
|
|
1625
|
+
AthleteIcon,
|
|
1609
1626
|
MasterCardIcon,
|
|
1610
1627
|
UnbidSquare
|
|
1611
1628
|
}
|
|
@@ -1,28 +1,68 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useCallback, useState } from 'react';
|
|
2
2
|
import { Button, View } from "./Themed"
|
|
3
|
+
import { FlatList } from 'react-native';
|
|
4
|
+
import { useColors } from '../constants/useColors';
|
|
3
5
|
|
|
4
6
|
type PaginationProps = {
|
|
5
7
|
offset:number
|
|
6
8
|
style?:any,
|
|
9
|
+
pages?:number,
|
|
7
10
|
next_title?:string,
|
|
8
11
|
previous_title?:string,
|
|
9
12
|
onPrevious: () => void,
|
|
10
|
-
onNext: () => void
|
|
13
|
+
onNext: () => void,
|
|
14
|
+
onSelectPage?:(page:number) => void
|
|
11
15
|
}
|
|
12
16
|
|
|
13
|
-
const Pagination = ({ offset, onPrevious, onNext, next_title, previous_title, style }:PaginationProps) => {
|
|
17
|
+
const Pagination = ({ offset, pages, onPrevious, onNext, next_title, previous_title, style, onSelectPage }:PaginationProps) => {
|
|
18
|
+
const Colors = useColors();
|
|
19
|
+
const [ width, setWidth ] = useState(0);
|
|
20
|
+
let pagination_dots = useCallback(() => {
|
|
21
|
+
if(!pages){ return [] }
|
|
22
|
+
const arr = Array.from({ length: pages }, (_, i) => i);
|
|
23
|
+
return arr
|
|
24
|
+
},[pages]);
|
|
25
|
+
const page_dots = pagination_dots();
|
|
26
|
+
const renderDots = (data:{ item:number, index:number }) => {
|
|
27
|
+
const active = offset == data.item ? true : false
|
|
28
|
+
return (
|
|
29
|
+
<Button transparent disabled={!onSelectPage}
|
|
30
|
+
style={{ padding:10, width: width / page_dots.length, justifyContent:'center', alignItems:'center' }}
|
|
31
|
+
onPress={() => onSelectPage ? onSelectPage(data.item): console.log('')}>
|
|
32
|
+
<View style={{ height:active ? 10 : 8, width:active ? 10 : 8, borderRadius:100, backgroundColor:active ? Colors.text.action :Colors.text.h1, opacity: active? 1 : 0.8 }} />
|
|
33
|
+
</Button>
|
|
34
|
+
)
|
|
35
|
+
}
|
|
14
36
|
|
|
15
37
|
return (
|
|
16
|
-
<View transparent style={{ flexDirection: 'row', alignItems:'center',
|
|
17
|
-
|
|
38
|
+
<View transparent style={{ flexDirection: 'row', alignItems:'center', ...style }}>
|
|
39
|
+
|
|
18
40
|
<Button
|
|
41
|
+
disabled={offset == 0}
|
|
42
|
+
style={{ opacity: offset == 0 ? 0.4: 1 }}
|
|
19
43
|
title={previous_title ?? 'PREV'}
|
|
20
44
|
type='text'
|
|
21
45
|
onPress={() => onPrevious()}
|
|
22
46
|
/>
|
|
23
|
-
|
|
47
|
+
|
|
48
|
+
<View transparent style={{ flex:1 }} onLayout={(ev) => {
|
|
49
|
+
const { width } = ev.nativeEvent.layout;
|
|
50
|
+
setWidth(width);
|
|
51
|
+
}}>
|
|
52
|
+
<FlatList
|
|
53
|
+
data={page_dots}
|
|
54
|
+
keyExtractor={(item) => item.toString()}
|
|
55
|
+
key={'pagination_dots'}
|
|
56
|
+
showsHorizontalScrollIndicator={false}
|
|
57
|
+
renderItem={renderDots}
|
|
58
|
+
horizontal
|
|
59
|
+
|
|
60
|
+
/>
|
|
61
|
+
</View>
|
|
24
62
|
<Button
|
|
25
63
|
title={next_title ?? 'NEXT'}
|
|
64
|
+
style={{ opacity: pages && pages == offset + 1 ? 0.4 : 1 }}
|
|
65
|
+
disabled={pages && pages == offset + 1 ? true : false}
|
|
26
66
|
type='text'
|
|
27
67
|
onPress={() => onNext()}
|
|
28
68
|
/>
|
|
@@ -31,6 +31,7 @@ const LocationApi = {
|
|
|
31
31
|
},
|
|
32
32
|
compareLastLocation: async(player_location:PlayerLocationProps):Promise<{ last_location?:PlayerLocationProps, distance:number }> => {
|
|
33
33
|
try {
|
|
34
|
+
console.log(SOCIAL_SVC_API)
|
|
34
35
|
if(Platform.OS != 'web'){ return { distance: 1000 } }
|
|
35
36
|
const resp = await axios.post(`${SOCIAL_SVC_API}/v1/locations/player/compare`, { player_location })
|
|
36
37
|
return { distance: resp.data.distance, last_location: resp.data.last_location }
|
|
@@ -138,6 +139,7 @@ const LocationHelpers = {
|
|
|
138
139
|
location: {
|
|
139
140
|
location_id: '',
|
|
140
141
|
label: region ?? 'UNKNOWN',
|
|
142
|
+
commission_pct: 0.015,
|
|
141
143
|
value: region ?? 'UNKNOWN',
|
|
142
144
|
create_datetime: '', last_update_datetime: '',
|
|
143
145
|
legal_ind: false,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { Button, Text } from '../Components';
|
|
4
|
-
import Colors from '../constants/colors';
|
|
2
|
+
import { Image, Linking, Platform } from 'react-native';
|
|
5
3
|
import { isSafari, isChrome, isIOS } from 'react-device-detect';
|
|
6
4
|
import type { LocationProps, PlayerAddressProps } from '../types';
|
|
7
5
|
import * as Location from 'expo-location';
|
|
6
|
+
import { Button, Text, View } from '../Components/Themed';
|
|
7
|
+
import { useColors } from '../constants/useColors';
|
|
8
8
|
|
|
9
9
|
type LocationTrackerProps = {
|
|
10
10
|
onClose: () => void,
|
|
@@ -25,7 +25,7 @@ type LocationTrackerProps = {
|
|
|
25
25
|
onGetLocation: () => void
|
|
26
26
|
}
|
|
27
27
|
const LocationTracker = ({ onClose, onGetLocation, permission, location, onPromptForPermission }: LocationTrackerProps) => {
|
|
28
|
-
|
|
28
|
+
const Colors = useColors();
|
|
29
29
|
const { loading, error } = location;
|
|
30
30
|
|
|
31
31
|
const handleHelpMe = () => {
|
|
@@ -41,7 +41,7 @@ const LocationTracker = ({ onClose, onGetLocation, permission, location, onPromp
|
|
|
41
41
|
{permission.permission == 'undetermined' || permission.permission == 'prompt' || !permission.permission ?
|
|
42
42
|
<View style={{ padding:20 }}>
|
|
43
43
|
<View style={{ padding:10 }}>
|
|
44
|
-
<Text size={18}
|
|
44
|
+
<Text size={18} theme='h2'>ALL REAL-MONEY TRANSACTIONS REQUIRE LOCATION</Text>
|
|
45
45
|
</View>
|
|
46
46
|
<View style={{ justifyContent:'center', alignItems:'center', padding:15 }}>
|
|
47
47
|
<Image
|
|
@@ -50,13 +50,13 @@ const LocationTracker = ({ onClose, onGetLocation, permission, location, onPromp
|
|
|
50
50
|
/>
|
|
51
51
|
</View>
|
|
52
52
|
<View style={{ padding:10 }}>
|
|
53
|
-
<Text style={{ marginTop:5 }}
|
|
53
|
+
<Text style={{ marginTop:5 }} size={14} theme='description' textAlign='center'>When using real money, either in the form of a bet, competition or deposit/withdrawal, BettorEdge requires location services turned on to verify you are in a location where betting is permitted.</Text>
|
|
54
54
|
</View>
|
|
55
55
|
</View>
|
|
56
56
|
: permission.permission == 'denied' ?
|
|
57
57
|
<View style={{ padding:20 }}>
|
|
58
58
|
<View style={{ padding:10 }}>
|
|
59
|
-
<Text size={18}
|
|
59
|
+
<Text size={18} theme='h2' textAlign='center'>LOCATION SETTINGS ARE NOT ENABLED</Text>
|
|
60
60
|
</View>
|
|
61
61
|
<View style={{ justifyContent:'center', alignItems:'center', padding:15 }}>
|
|
62
62
|
<Image
|
|
@@ -65,13 +65,13 @@ const LocationTracker = ({ onClose, onGetLocation, permission, location, onPromp
|
|
|
65
65
|
/>
|
|
66
66
|
</View>
|
|
67
67
|
<View style={{ padding:10 }}>
|
|
68
|
-
<Text style={{ marginTop:5 }}
|
|
68
|
+
<Text style={{ marginTop:5 }} size={14} theme='warning' textAlign='center'>{error ?? `We were not able to get your location. Please use the Help Me button below to troubleshoot enabling your device's location services`}</Text>
|
|
69
69
|
</View>
|
|
70
70
|
</View>
|
|
71
71
|
: permission.permission == 'granted' || location.location ?
|
|
72
72
|
<View style={{ padding:20 }}>
|
|
73
73
|
<View style={{ padding:10 }}>
|
|
74
|
-
<Text size={18}
|
|
74
|
+
<Text size={18} theme='h2' textAlign='center'>ALL REAL-MONEY TRANSACTIONS REQUIRE LOCATION</Text>
|
|
75
75
|
</View>
|
|
76
76
|
<View style={{ justifyContent:'center', alignItems:'center', padding:15 }}>
|
|
77
77
|
<Image
|
|
@@ -80,7 +80,7 @@ const LocationTracker = ({ onClose, onGetLocation, permission, location, onPromp
|
|
|
80
80
|
/>
|
|
81
81
|
</View>
|
|
82
82
|
<View style={{ padding:10 }}>
|
|
83
|
-
<Text style={{ marginTop:5 }}
|
|
83
|
+
<Text style={{ marginTop:5 }} theme='description' size={14} weight='regular' textAlign='center'>When using real money, either in the form of a bet, competition or deposit/withdrawal, BettorEdge requires location services turned on to verify you are in a location where betting is permitted.</Text>
|
|
84
84
|
</View>
|
|
85
85
|
</View>
|
|
86
86
|
:<></>}
|
|
@@ -88,12 +88,8 @@ const LocationTracker = ({ onClose, onGetLocation, permission, location, onPromp
|
|
|
88
88
|
<View nativeID='action_row' style={{ flexDirection:'row', padding:20 }}>
|
|
89
89
|
<Button
|
|
90
90
|
title='CLOSE'
|
|
91
|
+
type='close'
|
|
91
92
|
style={{ flex:1, marginRight:5 }}
|
|
92
|
-
title_color={Colors.utility.error}
|
|
93
|
-
backgroundColor={Colors.shades.white}
|
|
94
|
-
borderWidth={1}
|
|
95
|
-
padding={15}
|
|
96
|
-
borderColor={Colors.utility.error}
|
|
97
93
|
onPress={() => onClose()}
|
|
98
94
|
/>
|
|
99
95
|
<Button
|
|
@@ -101,8 +97,8 @@ const LocationTracker = ({ onClose, onGetLocation, permission, location, onPromp
|
|
|
101
97
|
style={{ flex:3, opacity: loading ? 0.5 : 1 }}
|
|
102
98
|
loading={loading}
|
|
103
99
|
disabled={loading}
|
|
104
|
-
backgroundColor={Colors.
|
|
105
|
-
title_color={Colors.
|
|
100
|
+
backgroundColor={Colors.text.highlight}
|
|
101
|
+
title_color={Colors.text.white}
|
|
106
102
|
onPress={() => {
|
|
107
103
|
if(permission.permission == 'prompt' || permission.permission == 'undetermined' || !permission.checked){
|
|
108
104
|
return onPromptForPermission()
|
|
@@ -116,21 +112,15 @@ const LocationTracker = ({ onClose, onGetLocation, permission, location, onPromp
|
|
|
116
112
|
<View nativeID='action_row' style={{ flexDirection:'row', padding:20 }}>
|
|
117
113
|
<Button
|
|
118
114
|
title='CLOSE'
|
|
115
|
+
type='error'
|
|
119
116
|
style={{ flex:1, marginRight:5 }}
|
|
120
|
-
title_color={Colors.utility.error}
|
|
121
|
-
backgroundColor={Colors.shades.white}
|
|
122
|
-
borderWidth={1}
|
|
123
|
-
padding={15}
|
|
124
|
-
borderColor={Colors.utility.error}
|
|
125
117
|
onPress={() => onClose()}
|
|
126
118
|
/>
|
|
127
119
|
<Button
|
|
128
120
|
title='HELP ME'
|
|
129
121
|
style={{ flex:3 }}
|
|
130
|
-
title_color={Colors.
|
|
131
|
-
|
|
132
|
-
padding={15}
|
|
133
|
-
backgroundColor={Colors.brand.electric}
|
|
122
|
+
title_color={Colors.text.white}
|
|
123
|
+
backgroundColor={Colors.text.highlight}
|
|
134
124
|
onPress={() => handleHelpMe()}
|
|
135
125
|
/>
|
|
136
126
|
</View>
|