be-components 3.2.8 → 3.3.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/Competition/components/CompetitionPlay.js +1 -16
- package/lib/commonjs/Competition/components/CompetitionPlay.js.map +1 -1
- package/lib/commonjs/Competition/index.js +13 -41
- package/lib/commonjs/Competition/index.js.map +1 -1
- package/lib/commonjs/Components/ConfirmationModal.js +18 -4
- package/lib/commonjs/Components/ConfirmationModal.js.map +1 -1
- package/lib/commonjs/index.js +28 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/Competition/components/CompetitionPlay.js +1 -16
- package/lib/module/Competition/components/CompetitionPlay.js.map +1 -1
- package/lib/module/Competition/index.js +14 -42
- package/lib/module/Competition/index.js.map +1 -1
- package/lib/module/Components/ConfirmationModal.js +19 -5
- package/lib/module/Components/ConfirmationModal.js.map +1 -1
- package/lib/module/index.js +5 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionPlay.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/index.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Competition/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/ConfirmationModal.d.ts +3 -1
- package/lib/typescript/lib/commonjs/Components/ConfirmationModal.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/index.d.ts +4 -0
- package/lib/typescript/lib/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionPlay.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/index.d.ts +2 -1
- package/lib/typescript/lib/module/Competition/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/ConfirmationModal.d.ts +3 -1
- package/lib/typescript/lib/module/Components/ConfirmationModal.d.ts.map +1 -1
- package/lib/typescript/lib/module/index.d.ts +5 -1
- package/lib/typescript/lib/module/index.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionPlay.d.ts.map +1 -1
- package/lib/typescript/src/Competition/index.d.ts +2 -1
- package/lib/typescript/src/Competition/index.d.ts.map +1 -1
- package/lib/typescript/src/Components/ConfirmationModal.d.ts +4 -2
- package/lib/typescript/src/Components/ConfirmationModal.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +5 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/Competition/components/CompetitionPlay.tsx +3 -9
- package/src/Competition/index.tsx +16 -42
- package/src/Components/ConfirmationModal.tsx +17 -4
- package/src/index.tsx +9 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../module/Competition/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../module/Competition/index.js"],"names":[],"mappings":";AAcA;;;;;;;;;2DAwtBC;qBApuBmF,cAAc;kBAFvD,OAAO"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export default ConfirmationModal;
|
|
2
|
-
declare function ConfirmationModal({ visible, title, description, confirm_title, cancel_title, onCancel, onConfirm }: {
|
|
2
|
+
declare function ConfirmationModal({ visible, title, padding_bottom, image, description, confirm_title, cancel_title, onCancel, onConfirm }: {
|
|
3
3
|
visible: any;
|
|
4
4
|
title: any;
|
|
5
|
+
padding_bottom: any;
|
|
6
|
+
image: any;
|
|
5
7
|
description: any;
|
|
6
8
|
confirm_title: any;
|
|
7
9
|
cancel_title: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmationModal.d.ts","sourceRoot":"","sources":["../../../../module/Components/ConfirmationModal.js"],"names":[],"mappings":";AAMA
|
|
1
|
+
{"version":3,"file":"ConfirmationModal.d.ts","sourceRoot":"","sources":["../../../../module/Components/ConfirmationModal.js"],"names":[],"mappings":";AAMA;;;;;;;;;;6DAiFC;sBAtFkC,cAAc;kBAD/B,OAAO"}
|
|
@@ -34,5 +34,9 @@ import SquaresModule from "./Squares";
|
|
|
34
34
|
import SocketManager from './Socket';
|
|
35
35
|
import PromotedOrder from "./PromotedOrder";
|
|
36
36
|
import EngageModule from "./Engage";
|
|
37
|
-
|
|
37
|
+
import CompetitionCard from './Engage/components/CompetitionCard';
|
|
38
|
+
import SquaresCompetitionCard from './Engage/components/SquaresCompetitionCard';
|
|
39
|
+
import BracketCompetitionCard from './Engage/components/BracketCompetitionCard';
|
|
40
|
+
import SeasonCard from './Engage/components/SeasonCard';
|
|
41
|
+
export { Authenticator, Observer, BEEventApi, BELinkApi, LocationTracker, ProfileManager, CompetitionManager, Components, SocialComponents, APIOverrides, LinearGradient, usePlayerLocation, BettorSearch, Colors, MyWallet, Share, Checkout, MarketComponents, EventComponents, PollCampaign, PollCampaignApi, PollApi, MarketMaker, CompetitionModule, SeasonManager, CreateCompetitionForm, CreateSeasonForm, SeasonModule, AdminCompetitionList, AdServer, AdProvider, BracketRoom, SquaresModule, SocketManager, PromotedOrder, EngageModule, CompetitionCard, SquaresCompetitionCard, BracketCompetitionCard, SeasonCard };
|
|
38
42
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../module/index.js"],"names":[],"mappings":"0BAE0B,iBAAiB;qBAOK,YAAY;2BAAZ,YAAY;0BAAZ,YAAY;4BAuBhC,mBAAmB;2BA7BpB,kBAAkB;+BAmBd,sBAAsB;4BAlBzB,cAAc;kCACR,oBAAoB;6BACzB,gBAAgB;+BACd,sBAAsB;kCAMnB,kCAAkC;yBAH3C,gBAAgB;mBAFtB,oBAAoB;qBAGlB,UAAU;kBAoBb,SAAS;qBAnBN,YAAY;6BAiBJ,oBAAoB;4BACrB,mBAAmB;yBAhBtB,QAAQ;gCACQ,YAAY;wBAAZ,YAAY;wBAkB7B,eAAe;8BAjBT,eAAe;0BAUnB,4BAA4B;kCAHpB,uDAAuD;6BAK5D,wDAAwD;yBAD5D,qBAAqB;iCAHb,sDAAsD;qBAPlD,YAAY;2BAAZ,YAAY;wBACzB,WAAW;0BAET,WAAW;0BADX,UAAU;0BAEV,iBAAiB;yBAIlB,UAAU"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../module/index.js"],"names":[],"mappings":"0BAE0B,iBAAiB;qBAOK,YAAY;2BAAZ,YAAY;0BAAZ,YAAY;4BAuBhC,mBAAmB;2BA7BpB,kBAAkB;+BAmBd,sBAAsB;4BAlBzB,cAAc;kCACR,oBAAoB;6BACzB,gBAAgB;+BACd,sBAAsB;kCAMnB,kCAAkC;yBAH3C,gBAAgB;mBAFtB,oBAAoB;qBAGlB,UAAU;kBAoBb,SAAS;qBAnBN,YAAY;6BAiBJ,oBAAoB;4BACrB,mBAAmB;yBAhBtB,QAAQ;gCACQ,YAAY;wBAAZ,YAAY;wBAkB7B,eAAe;8BAjBT,eAAe;0BAUnB,4BAA4B;kCAHpB,uDAAuD;6BAK5D,wDAAwD;yBAD5D,qBAAqB;iCAHb,sDAAsD;qBAPlD,YAAY;2BAAZ,YAAY;wBACzB,WAAW;0BAET,WAAW;0BADX,UAAU;0BAEV,iBAAiB;yBAIlB,UAAU;4BASP,qCAAqC;mCAC9B,4CAA4C;mCAC5C,4CAA4C;uBACxD,gCAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompetitionPlay.d.ts","sourceRoot":"","sources":["../../../../../src/Competition/components/CompetitionPlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAM7N,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;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M,KAAK,IAAI,CAAC;IAC5E,QAAQ,CAAC,EAAC,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAC,OAAO,CAAC;IACrB,uBAAuB,EAAE,MAAM,IAAI,CAAC;IACpC,YAAY,CAAC,EAAC,OAAO,CAAA;IACrB,mBAAmB,CAAC,EAAE,CAAC,cAAc,EAAC,MAAM,KAAK,IAAI,CAAA;CACxD,CAAA;AACD,QAAA,MAAM,eAAe,iOAAkO,oBAAoB,sBAuR1Q,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -3,6 +3,7 @@ import type { BEEventProps, CompetitionProps, CompetitionSeasonProps } from '../
|
|
|
3
3
|
type CompetitionModuleProps = {
|
|
4
4
|
player_id?: string;
|
|
5
5
|
competition_id: string;
|
|
6
|
+
confirm_padding?: number;
|
|
6
7
|
onClose: () => void;
|
|
7
8
|
onEvent?: (event: BEEventProps) => void;
|
|
8
9
|
onManageCompetition: (competition_id: string) => void;
|
|
@@ -10,6 +11,6 @@ type CompetitionModuleProps = {
|
|
|
10
11
|
onShareCompetition: (competition: CompetitionProps) => void;
|
|
11
12
|
onViewCompetitionSeason: (cs: CompetitionSeasonProps) => void;
|
|
12
13
|
};
|
|
13
|
-
declare const CompetitionModule: ({ competition_id, player_id, onManageCompetition, onRequestAuthentication, onShareCompetition, onClose, onViewCompetitionSeason }: CompetitionModuleProps) => React.JSX.Element;
|
|
14
|
+
declare const CompetitionModule: ({ competition_id, player_id, confirm_padding, onManageCompetition, onRequestAuthentication, onShareCompetition, onClose, onViewCompetitionSeason }: CompetitionModuleProps) => React.JSX.Element;
|
|
14
15
|
export default CompetitionModule;
|
|
15
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Competition/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,OAAO,KAAK,EAAgB,YAAY,EAA4H,gBAAgB,EAA8B,sBAAsB,EAAiO,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Competition/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAMnD,OAAO,KAAK,EAAgB,YAAY,EAA4H,gBAAgB,EAA8B,sBAAsB,EAAiO,MAAM,UAAU,CAAC;AAU1d,KAAK,sBAAsB,GAAG;IAC1B,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,cAAc,EAAC,MAAM,CAAC;IACtB,eAAe,CAAC,EAAC,MAAM,CAAC;IACxB,OAAO,EAAC,MAAM,IAAI,CAAC;IACnB,OAAO,CAAC,EAAC,CAAC,KAAK,EAAC,YAAY,KAAK,IAAI,CAAC;IACtC,mBAAmB,EAAC,CAAC,cAAc,EAAC,MAAM,KAAK,IAAI,CAAC;IACpD,uBAAuB,EAAC,CAAC,gBAAgB,CAAC,EAAC,MAAM,KAAK,IAAI,CAAC;IAC3D,kBAAkB,EAAC,CAAC,WAAW,EAAC,gBAAgB,KAAK,IAAI,CAAC;IAC1D,uBAAuB,EAAC,CAAC,EAAE,EAAC,sBAAsB,KAAK,IAAI,CAAA;CAC9D,CAAA;AAED,QAAA,MAAM,iBAAiB,uJAAuJ,sBAAsB,sBAwjBnM,CAAA;AAED,eAAe,iBAAiB,CAAA"}
|
|
@@ -4,10 +4,12 @@ type ConfirmationModalProps = {
|
|
|
4
4
|
title?: string;
|
|
5
5
|
description?: string;
|
|
6
6
|
confirm_title?: string;
|
|
7
|
+
padding_bottom?: number;
|
|
7
8
|
cancel_title?: string;
|
|
8
|
-
|
|
9
|
+
image?: string;
|
|
10
|
+
onCancel?: () => void;
|
|
9
11
|
onConfirm: () => void;
|
|
10
12
|
};
|
|
11
|
-
declare const ConfirmationModal: ({ visible, title, description, confirm_title, cancel_title, onCancel, onConfirm }: ConfirmationModalProps) => React.JSX.Element;
|
|
13
|
+
declare const ConfirmationModal: ({ visible, title, padding_bottom, image, description, confirm_title, cancel_title, onCancel, onConfirm }: ConfirmationModalProps) => React.JSX.Element;
|
|
12
14
|
export default ConfirmationModal;
|
|
13
15
|
//# sourceMappingURL=ConfirmationModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmationModal.d.ts","sourceRoot":"","sources":["../../../../src/Components/ConfirmationModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,KAAK,sBAAsB,GAAG;IAC1B,OAAO,EAAC,OAAO,CAAC;IAChB,KAAK,CAAC,EAAC,MAAM,CAAC;IACd,WAAW,CAAC,EAAC,MAAM,CAAC;IACpB,aAAa,CAAC,EAAC,MAAM,CAAC;IACtB,YAAY,CAAC,EAAC,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"ConfirmationModal.d.ts","sourceRoot":"","sources":["../../../../src/Components/ConfirmationModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,KAAK,sBAAsB,GAAG;IAC1B,OAAO,EAAC,OAAO,CAAC;IAChB,KAAK,CAAC,EAAC,MAAM,CAAC;IACd,WAAW,CAAC,EAAC,MAAM,CAAC;IACpB,aAAa,CAAC,EAAC,MAAM,CAAC;IACtB,cAAc,CAAC,EAAC,MAAM,CAAC;IACvB,YAAY,CAAC,EAAC,MAAM,CAAC;IACrB,KAAK,CAAC,EAAC,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,EAAE,MAAM,IAAI,CAAA;CACxB,CAAA;AACD,QAAA,MAAM,iBAAiB,6GAA6G,sBAAsB,sBAiDzJ,CAAA;AAED,eAAe,iBAAiB,CAAA"}
|
|
@@ -30,5 +30,9 @@ import EventComponents from './EventComponents';
|
|
|
30
30
|
import Share from './Share';
|
|
31
31
|
import LocationTracker from "./LocationTracker";
|
|
32
32
|
import MarketMaker from "./MarketMaker";
|
|
33
|
-
|
|
33
|
+
import CompetitionCard from './Engage/components/CompetitionCard';
|
|
34
|
+
import SquaresCompetitionCard from './Engage/components/SquaresCompetitionCard';
|
|
35
|
+
import BracketCompetitionCard from './Engage/components/BracketCompetitionCard';
|
|
36
|
+
import SeasonCard from './Engage/components/SeasonCard';
|
|
37
|
+
export { Authenticator, Observer, BEEventApi, BELinkApi, LocationTracker, ProfileManager, CompetitionManager, Components, SocialComponents, APIOverrides, LinearGradient, usePlayerLocation, BettorSearch, Colors, MyWallet, Share, Checkout, MarketComponents, EventComponents, PollCampaign, PollCampaignApi, PollApi, MarketMaker, CompetitionModule, SeasonManager, CreateCompetitionForm, CreateSeasonForm, SeasonModule, AdminCompetitionList, AdServer, AdProvider, BracketRoom, SquaresModule, SocketManager, PromotedOrder, EngageModule, CompetitionCard, SquaresCompetitionCard, BracketCompetitionCard, SeasonCard };
|
|
34
38
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,CAAC;AAClC,OAAO,EAAE,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AAO,EACL,aAAa,EACb,QAAQ,EACR,UAAU,EACV,SAAS,EACT,eAAe,EACf,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,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
|
@@ -12,7 +12,6 @@ import { view_styles } from "../../constants/styles";
|
|
|
12
12
|
import {LinearGradient} from "expo-linear-gradient";
|
|
13
13
|
import { Icons, Text } from "../../Components";
|
|
14
14
|
import LinearDiagnal from "../../Components/LinearDiagnal";
|
|
15
|
-
import SpringView from "../../Components/Spring";
|
|
16
15
|
|
|
17
16
|
type CompetitionPlayProps = {
|
|
18
17
|
player_id?:string,
|
|
@@ -294,18 +293,13 @@ const CompetitionPlay = ( { authenticated_competition_player, pick_loading, comp
|
|
|
294
293
|
|
|
295
294
|
</View>
|
|
296
295
|
{authenticated_competition_player ?
|
|
297
|
-
<
|
|
298
|
-
slide="horizontal"
|
|
299
|
-
from={200}
|
|
300
|
-
to={0}
|
|
301
|
-
style={{ flex:1, flexDirection:'row', borderTopLeftRadius:22, borderBottomLeftRadius:22, padding:10, alignItems:'center', backgroundColor:Colors.utility.success, ...view_styles.float }}
|
|
302
|
-
>
|
|
296
|
+
<View>
|
|
303
297
|
{ competition_type?.type == 'wager' ?
|
|
304
298
|
<Text style={{ flex:1 }} size={14} color={Colors.shades.white} weight='semibold' textAlign="right">{authenticated_competition_player.wager_based_balance.toFixed(2)} Remaining</Text>
|
|
305
|
-
|
|
299
|
+
:
|
|
306
300
|
<Text style={{ flex:1 }} size={14} color={Colors.shades.white} weight='semibold' textAlign="right">{parseFloat(competition.max_pick_count as string) - player_picks.length} Picks Remaining</Text>
|
|
307
301
|
}
|
|
308
|
-
</
|
|
302
|
+
</View>
|
|
309
303
|
:<></>}
|
|
310
304
|
</View>
|
|
311
305
|
</View>
|
|
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react';
|
|
|
2
2
|
import { CompetitionApi, CompetitionHelpers, CompetitionMatchApi, CompetitionPlayerApi, PlayerPicksApi } from './api';
|
|
3
3
|
import { View, ScrollView, Image, TouchableOpacity, ActivityIndicator, Modal } from 'react-native';
|
|
4
4
|
import { view_styles } from '../constants/styles';
|
|
5
|
-
import { Button,
|
|
5
|
+
import { Button, ConfirmationModal, Icons, Text } from '../Components';
|
|
6
6
|
import Colors from '../constants/colors';
|
|
7
7
|
import type { AthleteProps, BEEventProps, CodeRequestProps, CompetitionMatchMarketProps, CompetitionMatchProps, CompetitionPayoutTypeProps, CompetitionPlayerProps, CompetitionProps, CompetitionResultTypeProps, CompetitionSeasonProps, CompetitionTypeProps, EventProps, LeagueProps, MarketProps, MatchProps, MyPlayerProps, PlayerBalanceProps, PlayerPickProps, PlayerReferralProps, PromoProps, PublicPlayerProps, RewardOptionProps, TeamProps, TournamentProps } from '../types';
|
|
8
8
|
import CompetitionInfoCard from './components/CompetitionInfoCard';
|
|
@@ -12,12 +12,12 @@ import CompetitionPlay from './components/CompetitionPlay';
|
|
|
12
12
|
import EnterCompetitionPrompt from './components/EnterCompetitionPrompt';
|
|
13
13
|
import moment from 'moment-mini';
|
|
14
14
|
import LeaderPicks from './components/LeaderPicks';
|
|
15
|
-
import NavOutPrompt from './components/NavOutPrompt';
|
|
16
15
|
import SeasonCard from './components/SeasonCard';
|
|
17
16
|
|
|
18
17
|
type CompetitionModuleProps = {
|
|
19
18
|
player_id?:string,
|
|
20
19
|
competition_id:string,
|
|
20
|
+
confirm_padding?:number,
|
|
21
21
|
onClose:() => void,
|
|
22
22
|
onEvent?:(event:BEEventProps) => void,
|
|
23
23
|
onManageCompetition:(competition_id:string) => void,
|
|
@@ -26,7 +26,7 @@ type CompetitionModuleProps = {
|
|
|
26
26
|
onViewCompetitionSeason:(cs:CompetitionSeasonProps) => void
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
const CompetitionModule = ({ competition_id, player_id, onManageCompetition, onRequestAuthentication, onShareCompetition, onClose, onViewCompetitionSeason }:CompetitionModuleProps) => {
|
|
29
|
+
const CompetitionModule = ({ competition_id, player_id, confirm_padding, onManageCompetition, onRequestAuthentication, onShareCompetition, onClose, onViewCompetitionSeason }:CompetitionModuleProps) => {
|
|
30
30
|
const [ viewing_leader, setViewingLeader ] = useState<PublicPlayerProps|undefined>();
|
|
31
31
|
const [ show_full_leaderboard, setShowFullLeaderboard ] = useState(false);
|
|
32
32
|
const [ module_size, setModuleSize ] = useState({ width:0, height:0 });
|
|
@@ -455,11 +455,7 @@ const CompetitionModule = ({ competition_id, player_id, onManageCompetition, onR
|
|
|
455
455
|
:<></>}
|
|
456
456
|
{show_full_leaderboard ?
|
|
457
457
|
<View style={{ position:'absolute', bottom:0, left:0, right:0, top:0 }}>
|
|
458
|
-
|
|
459
|
-
slide='vertical'
|
|
460
|
-
to={0}
|
|
461
|
-
from={500}
|
|
462
|
-
>
|
|
458
|
+
|
|
463
459
|
<CompetitionLeaderboard
|
|
464
460
|
competition={competition}
|
|
465
461
|
competition_type={competition_type}
|
|
@@ -471,38 +467,22 @@ const CompetitionModule = ({ competition_id, player_id, onManageCompetition, onR
|
|
|
471
467
|
onSeeFull={() => setShowFullLeaderboard(!show_full_leaderboard)}
|
|
472
468
|
viewer_id={player_id}
|
|
473
469
|
/>
|
|
474
|
-
|
|
475
|
-
</View>
|
|
470
|
+
xxw </View>
|
|
476
471
|
:<></>}
|
|
477
|
-
{
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
image_url={nav_out.image_url}
|
|
488
|
-
hide_accept={true}
|
|
489
|
-
code_details={{}}
|
|
490
|
-
max_width={module_size.width * 0.75}
|
|
491
|
-
cancel_title={nav_out.cancel_title}
|
|
492
|
-
onCancel={() => setNavOut({ ...nav_out, visible:false })}
|
|
493
|
-
onAccept={() => setNavOut({ ...nav_out, visible:false })}
|
|
494
|
-
/>
|
|
495
|
-
</Spring>
|
|
472
|
+
<View style={{ position:'absolute' }}>
|
|
473
|
+
<ConfirmationModal
|
|
474
|
+
visible={nav_out.visible}
|
|
475
|
+
title={nav_out.title}
|
|
476
|
+
padding_bottom={confirm_padding}
|
|
477
|
+
confirm_title={'Edit My Picks'}
|
|
478
|
+
description={nav_out.body}
|
|
479
|
+
image={competition.image?.url}
|
|
480
|
+
onConfirm={() => setNavOut({ ...nav_out, visible:false })}
|
|
481
|
+
/>
|
|
496
482
|
</View>
|
|
497
|
-
:<></>}
|
|
498
483
|
{draft_player_pick?.draft_pick ?
|
|
499
484
|
<View
|
|
500
485
|
style={{ position:'absolute', top:0, right:0, left:0, bottom:0, backgroundColor:Colors.shades.black_faded, justifyContent:'flex-end', alignItems:'center' }}>
|
|
501
|
-
<Spring
|
|
502
|
-
slide='vertical'
|
|
503
|
-
to={0}
|
|
504
|
-
from={200}
|
|
505
|
-
>
|
|
506
486
|
<WagerPickForm
|
|
507
487
|
event_start={draft_player_pick.event_start ?? ''}
|
|
508
488
|
event_title={draft_player_pick.event_title ?? ''}
|
|
@@ -513,7 +493,6 @@ const CompetitionModule = ({ competition_id, player_id, onManageCompetition, onR
|
|
|
513
493
|
onCancel={() => setDraftPlayerPick({})}
|
|
514
494
|
onSubmit={(pp) => handleWagerSubmit(pp)}
|
|
515
495
|
/>
|
|
516
|
-
</Spring>
|
|
517
496
|
</View>
|
|
518
497
|
:<></>}
|
|
519
498
|
<Modal
|
|
@@ -540,11 +519,7 @@ const CompetitionModule = ({ competition_id, player_id, onManageCompetition, onR
|
|
|
540
519
|
{viewing_leader ?
|
|
541
520
|
<View
|
|
542
521
|
style={{ position:'absolute', top:0, right:0, left:0, bottom:0, backgroundColor:Colors.shades.black_faded, justifyContent:'flex-end', alignItems:'center' }}>
|
|
543
|
-
|
|
544
|
-
slide='vertical'
|
|
545
|
-
to={0}
|
|
546
|
-
from={200}
|
|
547
|
-
>
|
|
522
|
+
|
|
548
523
|
<LeaderPicks
|
|
549
524
|
competition={competition}
|
|
550
525
|
leader={viewing_leader}
|
|
@@ -561,7 +536,6 @@ const CompetitionModule = ({ competition_id, player_id, onManageCompetition, onR
|
|
|
561
536
|
width={module_size.width}
|
|
562
537
|
onClose={() => setViewingLeader(undefined)}
|
|
563
538
|
/>
|
|
564
|
-
</Spring>
|
|
565
539
|
</View>
|
|
566
540
|
:<></>}
|
|
567
541
|
{competition.status == 'inactive' ?
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Modal, View } from "react-native"
|
|
2
|
+
import { Image, Modal, View } from "react-native"
|
|
3
3
|
import { view_styles } from '../constants/styles';
|
|
4
4
|
import Text from './Text';
|
|
5
5
|
import Button from './Button';
|
|
@@ -10,11 +10,15 @@ type ConfirmationModalProps = {
|
|
|
10
10
|
title?:string,
|
|
11
11
|
description?:string,
|
|
12
12
|
confirm_title?:string,
|
|
13
|
+
padding_bottom?:number,
|
|
13
14
|
cancel_title?:string,
|
|
14
|
-
|
|
15
|
+
image?:string,
|
|
16
|
+
onCancel?: () => void,
|
|
15
17
|
onConfirm: () => void
|
|
16
18
|
}
|
|
17
|
-
const ConfirmationModal = ({ visible, title, description, confirm_title, cancel_title, onCancel, onConfirm }:ConfirmationModalProps) => {
|
|
19
|
+
const ConfirmationModal = ({ visible, title, padding_bottom, image, description, confirm_title, cancel_title, onCancel, onConfirm }:ConfirmationModalProps) => {
|
|
20
|
+
|
|
21
|
+
|
|
18
22
|
|
|
19
23
|
return (
|
|
20
24
|
<Modal
|
|
@@ -22,15 +26,23 @@ const ConfirmationModal = ({ visible, title, description, confirm_title, cancel_
|
|
|
22
26
|
animationType='slide'
|
|
23
27
|
transparent
|
|
24
28
|
style={{ flex:1 }}>
|
|
25
|
-
<View style={{ flex:1, justifyContent:'flex-end', backgroundColor:Colors.shades.black_faded }}>
|
|
29
|
+
<View style={{ flex:1, justifyContent:'flex-end', backgroundColor:Colors.shades.black_faded, paddingBottom:padding_bottom }}>
|
|
26
30
|
<View style={{ ...view_styles.section }}>
|
|
27
31
|
<View style={{ ...view_styles.section_header, padding:20 }}>
|
|
28
32
|
<Text theme='header'>{title ?? 'Are you sure?'}</Text>
|
|
29
33
|
</View>
|
|
30
34
|
<View style={{ ...view_styles.section_body, minHeight:100 }}>
|
|
35
|
+
{image?
|
|
36
|
+
<Image
|
|
37
|
+
source={{ uri: image }}
|
|
38
|
+
style={{ width:200, height:200 , marginBottom: 10, alignSelf:'center'}}
|
|
39
|
+
resizeMode='cover'
|
|
40
|
+
/>
|
|
41
|
+
:<></>}
|
|
31
42
|
<Text size={14} color={Colors.brand.midnight} textAlign='center' weight='semibold'>{description}</Text>
|
|
32
43
|
</View>
|
|
33
44
|
<View style={{ ...view_styles.section_footer }}>
|
|
45
|
+
{onCancel?
|
|
34
46
|
<Button
|
|
35
47
|
title={cancel_title ?? 'CANCEL'}
|
|
36
48
|
style={{ flex:1 }}
|
|
@@ -39,6 +51,7 @@ const ConfirmationModal = ({ visible, title, description, confirm_title, cancel_
|
|
|
39
51
|
backgroundColor={Colors.utility.error}
|
|
40
52
|
onPress={() => onCancel()}
|
|
41
53
|
/>
|
|
54
|
+
:<></>}
|
|
42
55
|
<Button
|
|
43
56
|
title={confirm_title ?? 'CONFIRM'}
|
|
44
57
|
style={{ flex:2, marginLeft:5 }}
|
package/src/index.tsx
CHANGED
|
@@ -32,6 +32,10 @@ import EventComponents from './EventComponents';
|
|
|
32
32
|
import Share from './Share';
|
|
33
33
|
import LocationTracker from "./LocationTracker";
|
|
34
34
|
import MarketMaker from "./MarketMaker";
|
|
35
|
+
import CompetitionCard from './Engage/components/CompetitionCard';
|
|
36
|
+
import SquaresCompetitionCard from './Engage/components/SquaresCompetitionCard';
|
|
37
|
+
import BracketCompetitionCard from './Engage/components/BracketCompetitionCard';
|
|
38
|
+
import SeasonCard from './Engage/components/SeasonCard';
|
|
35
39
|
|
|
36
40
|
export {
|
|
37
41
|
Authenticator,
|
|
@@ -69,5 +73,9 @@ export {
|
|
|
69
73
|
SquaresModule,
|
|
70
74
|
SocketManager,
|
|
71
75
|
PromotedOrder,
|
|
72
|
-
EngageModule
|
|
76
|
+
EngageModule,
|
|
77
|
+
CompetitionCard,
|
|
78
|
+
SquaresCompetitionCard,
|
|
79
|
+
BracketCompetitionCard,
|
|
80
|
+
SeasonCard
|
|
73
81
|
}
|