be-components 3.5.7 → 3.5.8
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/CompetitionManager/components/AthleteSelector.js +52 -75
- package/lib/commonjs/CompetitionManager/components/AthleteSelector.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/CompetitionContestsForm.js +135 -119
- package/lib/commonjs/CompetitionManager/components/CompetitionContestsForm.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/CompetitionHeader.js +69 -62
- package/lib/commonjs/CompetitionManager/components/CompetitionHeader.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.js +86 -91
- package/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.js +143 -150
- package/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/ContestSelector.js +57 -61
- package/lib/commonjs/CompetitionManager/components/ContestSelector.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/ContestSettingsForm.js +120 -266
- package/lib/commonjs/CompetitionManager/components/ContestSettingsForm.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/MarketSelector.js +35 -32
- package/lib/commonjs/CompetitionManager/components/MarketSelector.js.map +1 -1
- package/lib/commonjs/CompetitionManager/components/PlayerSelector.js +42 -39
- package/lib/commonjs/CompetitionManager/components/PlayerSelector.js.map +1 -1
- package/lib/commonjs/CompetitionManager/index.js +47 -50
- package/lib/commonjs/CompetitionManager/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/OrderBook.js +1 -0
- package/lib/commonjs/MarketComponents/components/OrderBook.js.map +1 -1
- package/lib/module/CompetitionManager/components/AthleteSelector.js +42 -65
- package/lib/module/CompetitionManager/components/AthleteSelector.js.map +1 -1
- package/lib/module/CompetitionManager/components/CompetitionContestsForm.js +93 -77
- package/lib/module/CompetitionManager/components/CompetitionContestsForm.js.map +1 -1
- package/lib/module/CompetitionManager/components/CompetitionHeader.js +47 -40
- package/lib/module/CompetitionManager/components/CompetitionHeader.js.map +1 -1
- package/lib/module/CompetitionManager/components/CompetitionInfoForm.js +59 -64
- package/lib/module/CompetitionManager/components/CompetitionInfoForm.js.map +1 -1
- package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js +108 -115
- package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js.map +1 -1
- package/lib/module/CompetitionManager/components/ContestSelector.js +34 -38
- package/lib/module/CompetitionManager/components/ContestSelector.js.map +1 -1
- package/lib/module/CompetitionManager/components/ContestSettingsForm.js +90 -237
- package/lib/module/CompetitionManager/components/ContestSettingsForm.js.map +1 -1
- package/lib/module/CompetitionManager/components/MarketSelector.js +26 -23
- package/lib/module/CompetitionManager/components/MarketSelector.js.map +1 -1
- package/lib/module/CompetitionManager/components/PlayerSelector.js +30 -27
- package/lib/module/CompetitionManager/components/PlayerSelector.js.map +1 -1
- package/lib/module/CompetitionManager/index.js +32 -35
- package/lib/module/CompetitionManager/index.js.map +1 -1
- package/lib/module/MarketComponents/components/OrderBook.js +1 -0
- package/lib/module/MarketComponents/components/OrderBook.js.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/AthleteSelector.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/CompetitionContestsForm.d.ts +1 -2
- package/lib/typescript/lib/commonjs/CompetitionManager/components/CompetitionContestsForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/CompetitionHeader.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.d.ts +1 -2
- package/lib/typescript/lib/commonjs/CompetitionManager/components/CompetitionInfoForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.d.ts +1 -2
- package/lib/typescript/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/ContestSelector.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/ContestSettingsForm.d.ts +1 -2
- package/lib/typescript/lib/commonjs/CompetitionManager/components/ContestSettingsForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/MarketSelector.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/components/PlayerSelector.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/index.d.ts +2 -1
- package/lib/typescript/lib/commonjs/CompetitionManager/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/OrderBook.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/AthleteSelector.d.ts +1 -2
- package/lib/typescript/lib/module/CompetitionManager/components/AthleteSelector.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionContestsForm.d.ts +2 -4
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionContestsForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionHeader.d.ts +1 -2
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionHeader.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionInfoForm.d.ts +2 -4
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionInfoForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionSettingsForm.d.ts +2 -4
- package/lib/typescript/lib/module/CompetitionManager/components/CompetitionSettingsForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/ContestSelector.d.ts +1 -2
- package/lib/typescript/lib/module/CompetitionManager/components/ContestSelector.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/ContestSettingsForm.d.ts +2 -4
- package/lib/typescript/lib/module/CompetitionManager/components/ContestSettingsForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/MarketSelector.d.ts +1 -2
- package/lib/typescript/lib/module/CompetitionManager/components/MarketSelector.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/components/PlayerSelector.d.ts +1 -2
- package/lib/typescript/lib/module/CompetitionManager/components/PlayerSelector.d.ts.map +1 -1
- package/lib/typescript/lib/module/CompetitionManager/index.d.ts +3 -3
- package/lib/typescript/lib/module/CompetitionManager/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/OrderBook.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/AthleteSelector.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionContestsForm.d.ts +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionContestsForm.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionHeader.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionInfoForm.d.ts +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionInfoForm.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionSettingsForm.d.ts +1 -1
- package/lib/typescript/src/CompetitionManager/components/CompetitionSettingsForm.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/ContestSelector.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/ContestSettingsForm.d.ts +1 -1
- package/lib/typescript/src/CompetitionManager/components/ContestSettingsForm.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/MarketSelector.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/components/PlayerSelector.d.ts.map +1 -1
- package/lib/typescript/src/CompetitionManager/index.d.ts +7 -1
- package/lib/typescript/src/CompetitionManager/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/OrderBook.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/CompetitionManager/components/AthleteSelector.tsx +32 -52
- package/src/CompetitionManager/components/CompetitionContestsForm.tsx +82 -89
- package/src/CompetitionManager/components/CompetitionHeader.tsx +45 -37
- package/src/CompetitionManager/components/CompetitionInfoForm.tsx +36 -40
- package/src/CompetitionManager/components/CompetitionSettingsForm.tsx +88 -96
- package/src/CompetitionManager/components/ContestSelector.tsx +33 -36
- package/src/CompetitionManager/components/ContestSettingsForm.tsx +58 -179
- package/src/CompetitionManager/components/MarketSelector.tsx +19 -21
- package/src/CompetitionManager/components/PlayerSelector.tsx +23 -26
- package/src/CompetitionManager/index.tsx +22 -25
- package/src/MarketComponents/components/OrderBook.tsx +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompetitionHeader.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionManager/components/CompetitionHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"CompetitionHeader.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionManager/components/CompetitionHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAI7E,KAAK,sBAAsB,GAAG;IAC1B,KAAK,EAAC,MAAM,CAAC;IACb,cAAc,EAAC,OAAO,CAAC;IACvB,WAAW,EAAC,gBAAgB,CAAC;IAC7B,qBAAqB,EAAC,uBAAuB,EAAE,CAAC;IAChD,iBAAiB,EAAE;QACf,KAAK,EAAC,OAAO,CAAC;QACd,IAAI,EAAC,OAAO,CAAC;QACb,QAAQ,EAAC,OAAO,CAAC;QACjB,gBAAgB,EAAE,OAAO,CAAC;QAC1B,QAAQ,EAAC,OAAO,CAAA;KACnB,CAAC;IACF,OAAO,EAAC,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAC,MAAM,IAAI,CAAC;IACpB,UAAU,EAAE,MAAM,IAAI,CAAA;CACzB,CAAA;AAED,QAAA,MAAM,iBAAiB,8HAA8H,sBAAsB,sBAsH1K,CAAA;AAED,eAAe,iBAAiB,CAAA"}
|
|
@@ -7,6 +7,6 @@ type CompetitionInfoFormProps = {
|
|
|
7
7
|
width: number;
|
|
8
8
|
onCompetitionUpdate: (competition: CompetitionProps) => void;
|
|
9
9
|
};
|
|
10
|
-
declare const CompetitionInfoForm: ({ is_valid, player, competition,
|
|
10
|
+
declare const CompetitionInfoForm: ({ is_valid, player, competition, onCompetitionUpdate }: CompetitionInfoFormProps) => React.JSX.Element;
|
|
11
11
|
export default CompetitionInfoForm;
|
|
12
12
|
//# sourceMappingURL=CompetitionInfoForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompetitionInfoForm.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionManager/components/CompetitionInfoForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CompetitionInfoForm.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionManager/components/CompetitionInfoForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAMnE,KAAK,wBAAwB,GAAG;IAC5B,WAAW,EAAC,gBAAgB,CAAC;IAC7B,QAAQ,CAAC,EAAC,OAAO,CAAC;IAClB,MAAM,CAAC,EAAC,aAAa,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB,EAAC,CAAC,WAAW,EAAC,gBAAgB,KAAK,IAAI,CAAA;CAC7D,CAAA;AAED,QAAA,MAAM,mBAAmB,2DAA2D,wBAAwB,sBA2G3G,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -9,6 +9,6 @@ type CompetitionSettingsFormProps = {
|
|
|
9
9
|
onShowPacers: () => void;
|
|
10
10
|
onCompetitionUpdate: (c: CompetitionProps) => void;
|
|
11
11
|
};
|
|
12
|
-
declare const CompetitionSettingsForm: ({ is_valid, player,
|
|
12
|
+
declare const CompetitionSettingsForm: ({ is_valid, player, competition, competition_result_types, onCompetitionUpdate, onShowPacers }: CompetitionSettingsFormProps) => React.JSX.Element;
|
|
13
13
|
export default CompetitionSettingsForm;
|
|
14
14
|
//# sourceMappingURL=CompetitionSettingsForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompetitionSettingsForm.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionManager/components/CompetitionSettingsForm.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,aAAa,EAAqB,MAAM,aAAa,CAAC;AAQlH,KAAK,4BAA4B,GAAG;IAChC,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,KAAK,EAAC,MAAM,CAAC;IACb,QAAQ,CAAC,EAAC,OAAO,CAAC;IAClB,wBAAwB,EAAC,0BAA0B,EAAE,CAAC;IACtD,YAAY,EAAC,MAAM,IAAI,CAAC;IACxB,mBAAmB,EAAC,CAAC,CAAC,EAAC,gBAAgB,KAAK,IAAI,CAAA;CACnD,CAAA;AAID,QAAA,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"CompetitionSettingsForm.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionManager/components/CompetitionSettingsForm.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,aAAa,EAAqB,MAAM,aAAa,CAAC;AAQlH,KAAK,4BAA4B,GAAG;IAChC,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,KAAK,EAAC,MAAM,CAAC;IACb,QAAQ,CAAC,EAAC,OAAO,CAAC;IAClB,wBAAwB,EAAC,0BAA0B,EAAE,CAAC;IACtD,YAAY,EAAC,MAAM,IAAI,CAAC;IACxB,mBAAmB,EAAC,CAAC,CAAC,EAAC,gBAAgB,KAAK,IAAI,CAAA;CACnD,CAAA;AAID,QAAA,MAAM,uBAAuB,mGAAoG,4BAA4B,sBAyL5J,CAAA;AAED,eAAe,uBAAuB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContestSelector.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionManager/components/ContestSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ContestSelector.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionManager/components/ContestSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAO3D,KAAK,oBAAoB,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAC,OAAO,CAAC;IACvB,MAAM,EAAC,MAAM,CAAC;IACd,OAAO,EAAC,WAAW,EAAE,CAAC;IACtB,oBAAoB,EAAC,UAAU,EAAE,CAAC;IAClC,iBAAiB,EAAC,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,CAAC;IAC7C,kBAAkB,EAAE,CAAC,MAAM,EAAC,UAAU,EAAE,KAAK,IAAI,CAAC;IAClD,mBAAmB,EAAE,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,CAAC;IAChD,OAAO,EAAC,MAAM,IAAI,CAAA;CACrB,CAAA;AAED,QAAA,MAAM,eAAe,0IAA0I,oBAAoB,sBAgPlL,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -10,6 +10,6 @@ type ContestSettingsFormProps = {
|
|
|
10
10
|
events: EventProps[];
|
|
11
11
|
onCompetitionUpdate: (c: CompetitionProps) => void;
|
|
12
12
|
};
|
|
13
|
-
declare const ContestSettingsForm: ({ is_valid,
|
|
13
|
+
declare const ContestSettingsForm: ({ is_valid, competition, competition_matches, competition_match_markets, competition_types, events, onCompetitionUpdate }: ContestSettingsFormProps) => React.JSX.Element;
|
|
14
14
|
export default ContestSettingsForm;
|
|
15
15
|
//# sourceMappingURL=ContestSettingsForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContestSettingsForm.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionManager/components/ContestSettingsForm.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAO1I,KAAK,wBAAwB,GAAG;IAC5B,KAAK,EAAC,MAAM,CAAC;IACb,QAAQ,CAAC,EAAC,OAAO,CAAC;IAClB,WAAW,EAAC,gBAAgB,CAAC;IAC7B,mBAAmB,EAAC,qBAAqB,EAAE,CAAC;IAC5C,yBAAyB,EAAC,2BAA2B,EAAE,CAAC;IACxD,iBAAiB,EAAC,oBAAoB,EAAE,CAAC;IACzC,MAAM,EAAC,UAAU,EAAE,CAAC;IACpB,mBAAmB,EAAE,CAAC,CAAC,EAAC,gBAAgB,KAAK,IAAI,CAAA;CACpD,CAAA;AAID,QAAA,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"ContestSettingsForm.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionManager/components/ContestSettingsForm.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,KAAK,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAO1I,KAAK,wBAAwB,GAAG;IAC5B,KAAK,EAAC,MAAM,CAAC;IACb,QAAQ,CAAC,EAAC,OAAO,CAAC;IAClB,WAAW,EAAC,gBAAgB,CAAC;IAC7B,mBAAmB,EAAC,qBAAqB,EAAE,CAAC;IAC5C,yBAAyB,EAAC,2BAA2B,EAAE,CAAC;IACxD,iBAAiB,EAAC,oBAAoB,EAAE,CAAC;IACzC,MAAM,EAAC,UAAU,EAAE,CAAC;IACpB,mBAAmB,EAAE,CAAC,CAAC,EAAC,gBAAgB,KAAK,IAAI,CAAA;CACpD,CAAA;AAID,QAAA,MAAM,mBAAmB,8HAA8H,wBAAwB,sBA2I9K,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarketSelector.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionManager/components/MarketSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAM/C,KAAK,mBAAmB,GAAG;IACvB,KAAK,EAAC,MAAM,CAAC;IACb,MAAM,EAAC,MAAM,CAAC;IACd,OAAO,EAAC,WAAW,EAAE,CAAC;IACtB,gBAAgB,EAAC,MAAM,EAAE,CAAC;IAC1B,cAAc,EAAE,CAAC,MAAM,EAAC,WAAW,KAAK,IAAI,CAAC;IAC7C,gBAAgB,EAAE,CAAC,MAAM,EAAC,WAAW,KAAK,IAAI,CAAC;IAC/C,OAAO,EAAC,MAAM,IAAI,CAAA;CACrB,CAAA;AACD,QAAA,MAAM,cAAc,4FAA8F,mBAAmB,
|
|
1
|
+
{"version":3,"file":"MarketSelector.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionManager/components/MarketSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAM/C,KAAK,mBAAmB,GAAG;IACvB,KAAK,EAAC,MAAM,CAAC;IACb,MAAM,EAAC,MAAM,CAAC;IACd,OAAO,EAAC,WAAW,EAAE,CAAC;IACtB,gBAAgB,EAAC,MAAM,EAAE,CAAC;IAC1B,cAAc,EAAE,CAAC,MAAM,EAAC,WAAW,KAAK,IAAI,CAAC;IAC7C,gBAAgB,EAAE,CAAC,MAAM,EAAC,WAAW,KAAK,IAAI,CAAC;IAC/C,OAAO,EAAC,MAAM,IAAI,CAAA;CACrB,CAAA;AACD,QAAA,MAAM,cAAc,4FAA8F,mBAAmB,sBA2DpI,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlayerSelector.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionManager/components/PlayerSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AASrD,KAAK,mBAAmB,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAC,MAAM,CAAC;IACd,cAAc,EAAE,CAAC,MAAM,EAAC,iBAAiB,KAAK,IAAI,CAAC;IACnD,OAAO,EAAE,MAAM,IAAI,CAAA;CACtB,CAAA;AAED,QAAA,MAAM,cAAc,+CAA+C,mBAAmB,
|
|
1
|
+
{"version":3,"file":"PlayerSelector.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionManager/components/PlayerSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AASrD,KAAK,mBAAmB,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAC,MAAM,CAAC;IACd,cAAc,EAAE,CAAC,MAAM,EAAC,iBAAiB,KAAK,IAAI,CAAC;IACnD,OAAO,EAAE,MAAM,IAAI,CAAA;CACtB,CAAA;AAED,QAAA,MAAM,cAAc,+CAA+C,mBAAmB,sBA+FrF,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -2,8 +2,14 @@ import React from 'react';
|
|
|
2
2
|
type CompetitionManagerProps = {
|
|
3
3
|
player_id?: string;
|
|
4
4
|
competition_id: string;
|
|
5
|
+
insets?: {
|
|
6
|
+
top: number;
|
|
7
|
+
bottom: number;
|
|
8
|
+
left: number;
|
|
9
|
+
right: number;
|
|
10
|
+
};
|
|
5
11
|
onClose: () => void;
|
|
6
12
|
};
|
|
7
|
-
declare const CompetitionManager: ({ player_id, competition_id, onClose }: CompetitionManagerProps) => React.JSX.Element;
|
|
13
|
+
declare const CompetitionManager: ({ player_id, competition_id, onClose, insets }: CompetitionManagerProps) => React.JSX.Element;
|
|
8
14
|
export default CompetitionManager;
|
|
9
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/CompetitionManager/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/CompetitionManager/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAgBnD,KAAK,uBAAuB,GAAG;IAC3B,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,cAAc,EAAC,MAAM,CAAC;IACtB,MAAM,CAAC,EAAC;QAAC,GAAG,EAAC,MAAM,CAAC;QAAC,MAAM,EAAC,MAAM,CAAC;QAAC,IAAI,EAAC,MAAM,CAAC;QAAC,KAAK,EAAC,MAAM,CAAA;KAAC,CAAC;IAC/D,OAAO,EAAC,MAAM,IAAI,CAAA;CACrB,CAAA;AAED,QAAA,MAAM,kBAAkB,mDAAmD,uBAAuB,sBAwlBjG,CAAA;AAED,eAAe,kBAAkB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrderBook.d.ts","sourceRoot":"","sources":["../../../../../src/MarketComponents/components/OrderBook.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAQ3D,KAAK,kBAAkB,GAAG;IACtB,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,MAAM,EAAE,WAAW,CAAC;IACpB,WAAW,CAAC,EAAC,OAAO,CAAC;IACrB,WAAW,CAAC,EAAC,OAAO,CAAC;IACrB,KAAK,EAAE,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,CAAA;CACpC,CAAA;AAED,QAAA,MAAM,aAAa,mEAAmE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"OrderBook.d.ts","sourceRoot":"","sources":["../../../../../src/MarketComponents/components/OrderBook.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAQ3D,KAAK,kBAAkB,GAAG;IACtB,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,MAAM,EAAE,WAAW,CAAC;IACpB,WAAW,CAAC,EAAC,OAAO,CAAC;IACrB,WAAW,CAAC,EAAC,OAAO,CAAC;IACrB,KAAK,EAAE,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,CAAA;CACpC,CAAA;AAED,QAAA,MAAM,aAAa,mEAAmE,kBAAkB,sBAgFvG,CAAA;AAED,eAAe,aAAa,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { FlatList,
|
|
3
|
-
import
|
|
4
|
-
import { Button, Switch, Text } from '../../Components';
|
|
2
|
+
import { FlatList, Image, ActivityIndicator } from 'react-native';
|
|
3
|
+
import { Switch, Toggle } from '../../Components';
|
|
5
4
|
import SearchBox from '../../Components/SearchBox';
|
|
6
|
-
import { view_styles } from '../../constants/styles';
|
|
7
5
|
import type { AthleteProps, EventProps, MatchProps, TournamentProps } from '../../types';
|
|
8
6
|
import { ManageCompetitionMatchApi } from '../api';
|
|
7
|
+
import { Button, Text, View } from '../../Components/Themed';
|
|
8
|
+
import { useColors } from '../../constants/useColors';
|
|
9
9
|
|
|
10
10
|
type AthleteSelectorProps = {
|
|
11
11
|
width:number,
|
|
@@ -22,6 +22,7 @@ type AthleteSelectorProps = {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
const AthleteSelector = ({ width, height, event, tournament, match, filtered_athletes, selected_athletes, filtered_positions, onSelectAthlete, onDeselectAthlete, onClose }:AthleteSelectorProps) => {
|
|
25
|
+
const Colors = useColors();
|
|
25
26
|
const [ search_value, setSearchValue ] = useState('');
|
|
26
27
|
const [ selector_data, setSelectorData ] = useState<{
|
|
27
28
|
loading:boolean,
|
|
@@ -67,15 +68,15 @@ const AthleteSelector = ({ width, height, event, tournament, match, filtered_ath
|
|
|
67
68
|
const renderAthletes = (data: { item:AthleteProps, index:number }) => {
|
|
68
69
|
const selected = selected_athletes.includes(data.item.athlete_id) ? true : false
|
|
69
70
|
return (
|
|
70
|
-
<
|
|
71
|
+
<Button style={{ flexDirection:'row', alignItems:'center', padding:10, borderBottomWidth:1, borderColor:Colors.borders.light }} onPress={() => selected ? onDeselectAthlete(data.item) : onSelectAthlete(data.item)}>
|
|
71
72
|
<Image
|
|
72
73
|
source={{ uri: data.item.image?.url ?? data.item.team?.image?.url ?? '' }}
|
|
73
74
|
style={{ height:30, width:30 }}
|
|
74
75
|
resizeMode='cover'
|
|
75
76
|
/>
|
|
76
|
-
<View style={{ flex:1, marginLeft:10, marginRight:10 }}>
|
|
77
|
-
<Text size={14}
|
|
78
|
-
<Text style={{ marginTop:3 }} size={14}
|
|
77
|
+
<View transparent style={{ flex:1, marginLeft:10, marginRight:10 }}>
|
|
78
|
+
<Text size={14} theme='h1'>{data.item.first_name} {data.item.last_name} ({data.item.position})</Text>
|
|
79
|
+
<Text style={{ marginTop:3 }} size={14} theme='description'>{data.item.team?.market_name??''} {data.item.team?.name ?? ''}</Text>
|
|
79
80
|
</View>
|
|
80
81
|
<Switch
|
|
81
82
|
switch_type="on_off"
|
|
@@ -85,55 +86,32 @@ const AthleteSelector = ({ width, height, event, tournament, match, filtered_ath
|
|
|
85
86
|
return onDeselectAthlete(data.item)
|
|
86
87
|
}}
|
|
87
88
|
/>
|
|
88
|
-
</
|
|
89
|
+
</Button>
|
|
89
90
|
)
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
return (
|
|
93
|
-
<View style={{ width, height
|
|
94
|
-
<View style={{
|
|
95
|
-
<View style={{ flex:1 }}>
|
|
96
|
-
<Text theme='
|
|
94
|
+
<View style={{ width, height }}>
|
|
95
|
+
<View type='header' style={{ flexDirection:'row', alignItems:'center', padding:20 }}>
|
|
96
|
+
<View transparent style={{ flex:1 }}>
|
|
97
|
+
<Text theme='h1'>MANAGE ATHLETES</Text>
|
|
97
98
|
</View>
|
|
98
99
|
</View>
|
|
99
|
-
<
|
|
100
|
-
<View
|
|
100
|
+
<View style={{ flex:1 }}>
|
|
101
|
+
<View type='body'>
|
|
101
102
|
{event?.away && event?.home ?
|
|
102
|
-
<View style={{
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
borderRadiusOverride={{
|
|
111
|
-
borderTopLeftRadius: 22,
|
|
112
|
-
borderBottomLeftRadius:22,
|
|
113
|
-
borderTopRightRadius:0,
|
|
114
|
-
borderBottomRightRadius:0
|
|
115
|
-
}}
|
|
116
|
-
backgroundColor={event_side == 'away' ? Colors.brand.midnight : Colors.shades.white}
|
|
117
|
-
onPress={() => setSelectorData({ ...selector_data, event_side: 'away' })}
|
|
103
|
+
<View style={{ padding:10 }}>
|
|
104
|
+
<Toggle
|
|
105
|
+
options={[
|
|
106
|
+
{key: 'away', label: event.away.abbr},
|
|
107
|
+
{key:'home', label: event.home.abbr}
|
|
108
|
+
]}
|
|
109
|
+
selected_option={event_side}
|
|
110
|
+
onSelectOption={(option) => setSelectorData({ ...selector_data, event_side: option })}
|
|
118
111
|
/>
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
title_size={12}
|
|
123
|
-
title_color={event_side == 'home' ? Colors.shades.white : Colors.brand.midnight}
|
|
124
|
-
title_weight={event_side == 'home' ? 'bold' : 'regular'}
|
|
125
|
-
padding={15}
|
|
126
|
-
borderRadiusOverride={{
|
|
127
|
-
borderTopLeftRadius: 0,
|
|
128
|
-
borderBottomLeftRadius:0,
|
|
129
|
-
borderTopRightRadius:22,
|
|
130
|
-
borderBottomRightRadius:22
|
|
131
|
-
}}
|
|
132
|
-
backgroundColor={event_side == 'home' ? Colors.brand.midnight : Colors.shades.white}
|
|
133
|
-
onPress={() => setSelectorData({ ...selector_data, event_side: 'home' })}
|
|
134
|
-
/>
|
|
135
|
-
</View>
|
|
136
|
-
:<></>}
|
|
112
|
+
</View>
|
|
113
|
+
|
|
114
|
+
:<></>}
|
|
137
115
|
<View style={{ marginTop:0 }}>
|
|
138
116
|
<SearchBox
|
|
139
117
|
onChange={(text) => setSearchValue(text)}
|
|
@@ -141,7 +119,7 @@ const AthleteSelector = ({ width, height, event, tournament, match, filtered_ath
|
|
|
141
119
|
/>
|
|
142
120
|
</View>
|
|
143
121
|
{loading ?
|
|
144
|
-
<ActivityIndicator size='large' color={Colors.
|
|
122
|
+
<ActivityIndicator size='large' color={Colors.text.h1} style={{ padding:20, alignSelf:'center' }} />
|
|
145
123
|
:<></>}
|
|
146
124
|
<FlatList
|
|
147
125
|
data={available_athletes}
|
|
@@ -149,10 +127,12 @@ const AthleteSelector = ({ width, height, event, tournament, match, filtered_ath
|
|
|
149
127
|
keyExtractor={(item) => item.athlete_id.toString()}
|
|
150
128
|
/>
|
|
151
129
|
</View>
|
|
152
|
-
</
|
|
153
|
-
<View style={{
|
|
130
|
+
</View>
|
|
131
|
+
<View type='footer' style={{ flexDirection:'row', alignItems:'center', padding:10 }}>
|
|
154
132
|
<Button
|
|
155
133
|
title='CLOSE'
|
|
134
|
+
type='error'
|
|
135
|
+
style={{flex:1}}
|
|
156
136
|
onPress={() => onClose()}
|
|
157
137
|
/>
|
|
158
138
|
</View>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { FlatList, Image
|
|
2
|
+
import { FlatList, Image } from "react-native"
|
|
3
3
|
import type { AthleteProps, CompetitionMatchMarketProps, CompetitionMatchProps, CompetitionProps, EventProps, LeagueProps, MarketProps, MatchProps, MyPlayerProps, TeamProps, TournamentProps } from '../../types';
|
|
4
|
-
import
|
|
5
|
-
import { Button, Icons, Switch, Text } from '../../Components';
|
|
4
|
+
import { Icons, Switch } from '../../Components';
|
|
6
5
|
import CompetitionMatchMarketCard from './CompetitionMatchMarketCard';
|
|
7
6
|
import moment from 'moment-mini';
|
|
8
|
-
import {
|
|
7
|
+
import { Button, Text, View } from '../../Components/Themed';
|
|
8
|
+
import { useColors } from '../../constants/useColors';
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -43,7 +43,6 @@ type CompetitionContestsFormProps = {
|
|
|
43
43
|
const CompetitionContestsForm = ({
|
|
44
44
|
is_valid,
|
|
45
45
|
competition,
|
|
46
|
-
width,
|
|
47
46
|
primary_markets,
|
|
48
47
|
events,
|
|
49
48
|
athletes,
|
|
@@ -62,6 +61,7 @@ const CompetitionContestsForm = ({
|
|
|
62
61
|
onAddPrimaryMarket,
|
|
63
62
|
onUpdateCompetition
|
|
64
63
|
}:CompetitionContestsFormProps) => {
|
|
64
|
+
const Colors = useColors();
|
|
65
65
|
const [ expanded, setExpanded ] = useState(true);
|
|
66
66
|
const [ show_match_markets, setShowMatchMarkets ] = useState<string[]>([]);
|
|
67
67
|
const [ active_contest_type ] = useState('team');
|
|
@@ -72,8 +72,8 @@ const CompetitionContestsForm = ({
|
|
|
72
72
|
|
|
73
73
|
const renderPrimaryMarkets = (data: { item:{ market:MarketProps, included:boolean }, index:number }) => {
|
|
74
74
|
return (
|
|
75
|
-
<View style={{ padding:10, width:100, borderRadius:8,
|
|
76
|
-
<Text style={{ marginBottom:10 }} theme='
|
|
75
|
+
<View float style={{ padding:10, width:100, borderRadius:8, margin:5 }}>
|
|
76
|
+
<Text style={{ marginBottom:10 }} theme='h1'>{data.item.market.type}</Text>
|
|
77
77
|
<Switch
|
|
78
78
|
switch_type='on_off'
|
|
79
79
|
value={data.item.included}
|
|
@@ -89,40 +89,38 @@ const CompetitionContestsForm = ({
|
|
|
89
89
|
const show_details = show_match_markets.includes(`${data.event_type}:${data.event_id}:${data.item}`) ? true : false
|
|
90
90
|
|
|
91
91
|
return (
|
|
92
|
-
<
|
|
92
|
+
<Button float style={{ flex:1, borderRadius:8, borderWidth:1, borderColor:Colors.borders.light, padding:4, margin:3, minWidth:125 }}
|
|
93
93
|
onPress={() => {
|
|
94
94
|
if(show_details){ return setShowMatchMarkets(show_match_markets.filter(smm => smm != `${data.event_type}:${data.event_id}:${data.item}`)) }
|
|
95
95
|
return setShowMatchMarkets(show_match_markets.concat(`${data.event_type}:${data.event_id}:${data.item}`))
|
|
96
96
|
}}>
|
|
97
|
-
<View style={{ flexDirection:'row' }}>
|
|
97
|
+
<View transparent style={{ flexDirection:'row', alignItems:'flex-start' }}>
|
|
98
98
|
<Button
|
|
99
99
|
title='X'
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
style={{padding:8}}
|
|
101
|
+
type='error'
|
|
102
102
|
onPress={async() => {
|
|
103
103
|
const confirmed = await confirm('Are you sure you want to delete this market?')
|
|
104
104
|
if(!confirmed){ return }
|
|
105
105
|
onDeleteMarket(data.event_id, data.event_type, market);
|
|
106
106
|
}}
|
|
107
107
|
/>
|
|
108
|
-
<View style={{ flex:1 }}>
|
|
109
|
-
<Text size={14}
|
|
110
|
-
<Text style={{ marginTop:3 }} size={12}
|
|
108
|
+
<View transparent style={{ flex:1 }}>
|
|
109
|
+
<Text size={14} theme='h1' weight="bold" textAlign="center">{market.stat_label ?? market.type}</Text>
|
|
110
|
+
<Text style={{ marginTop:3 }} size={12} theme='description' textAlign="center">{market.description}</Text>
|
|
111
111
|
</View>
|
|
112
112
|
</View>
|
|
113
113
|
{market.level == 'athlete' && show_details ?
|
|
114
114
|
<Button
|
|
115
115
|
title="ADD ATHLETE"
|
|
116
116
|
style={{ marginTop:5 }}
|
|
117
|
-
|
|
118
|
-
title_color={Colors.brand.electric}
|
|
119
|
-
backgroundColor={Colors.shades.white}
|
|
117
|
+
type='success'
|
|
120
118
|
onPress={() => {
|
|
121
119
|
onShowAthletes(data.event_id, data.event_type, data.item);
|
|
122
120
|
}}
|
|
123
121
|
/>
|
|
124
122
|
:<></>}
|
|
125
|
-
</
|
|
123
|
+
</Button>
|
|
126
124
|
|
|
127
125
|
)
|
|
128
126
|
}
|
|
@@ -192,13 +190,11 @@ const CompetitionContestsForm = ({
|
|
|
192
190
|
|
|
193
191
|
const { image_url, header, description } = getMatchTitle(data.item, market)
|
|
194
192
|
return (
|
|
195
|
-
<View style={{ padding:10, flexDirection:'row', alignItems:'center', borderBottomWidth:1, borderColor:Colors.
|
|
193
|
+
<View transparent style={{ padding:10, flexDirection:'row', alignItems:'center', borderBottomWidth:1, borderColor:Colors.borders.light }}>
|
|
196
194
|
<Button
|
|
197
195
|
title="X"
|
|
198
196
|
style={{ marginRight:5 }}
|
|
199
|
-
|
|
200
|
-
title_size={12}
|
|
201
|
-
title_color={Colors.utility.error}
|
|
197
|
+
type='error'
|
|
202
198
|
onPress={() => {
|
|
203
199
|
if(data.item.market_id_override){
|
|
204
200
|
return onDeleteCompetitionMatch(data.item.competition_match_id)
|
|
@@ -207,7 +203,7 @@ const CompetitionContestsForm = ({
|
|
|
207
203
|
}}
|
|
208
204
|
/>
|
|
209
205
|
{image_url ?
|
|
210
|
-
<View style={{ padding:5 }}>
|
|
206
|
+
<View transparent style={{ padding:5 }}>
|
|
211
207
|
<Image
|
|
212
208
|
source={{ uri:image_url }}
|
|
213
209
|
style={{ marginRight:10, height:40, width:40, borderRadius:100 }}
|
|
@@ -215,7 +211,7 @@ const CompetitionContestsForm = ({
|
|
|
215
211
|
/>
|
|
216
212
|
</View>
|
|
217
213
|
:<></>}
|
|
218
|
-
<View style={{ flex:1 }}>
|
|
214
|
+
<View transparent style={{ flex:1, marginLeft:10, marginRight:5 }}>
|
|
219
215
|
<Text size={14} weight='bold'>{header}</Text>
|
|
220
216
|
<Text style={{ marginTop:3 }} size={12} weight='bold'>{description}</Text>
|
|
221
217
|
</View>
|
|
@@ -245,22 +241,19 @@ const CompetitionContestsForm = ({
|
|
|
245
241
|
const visible_matches = showDetails(data.item, 'team')
|
|
246
242
|
const expanded = expanded_contests.includes(`${event.event_id}:team`) ? true : false
|
|
247
243
|
return (
|
|
248
|
-
<View style={{ margin:
|
|
249
|
-
<
|
|
244
|
+
<View style={{ margin:8 }}>
|
|
245
|
+
<Button float style={{ flexDirection:'row', alignItems:'center', padding:15, zIndex:1}} onPress={() => {
|
|
250
246
|
if(expanded){ return setExpandedContests(expanded_contests.filter(c => c != `${event.event_id}:team`)) }
|
|
251
247
|
else { return setExpandedContests(expanded_contests.concat(`${event.event_id}:team`)) }
|
|
252
248
|
}}>
|
|
253
249
|
{['pending','paused'].includes(competition.status) && cms.length == 1 && cmms.length == 0 ?
|
|
254
250
|
<Button
|
|
255
251
|
title="X"
|
|
256
|
-
|
|
257
|
-
borderRadius={8}
|
|
258
|
-
borderWidth={1}
|
|
259
|
-
borderColor={Colors.utility.error}
|
|
252
|
+
type='error'
|
|
260
253
|
onPress={() => onDeleteCompetitionMatch(cms[0]?.competition_match_id ?? '')}
|
|
261
254
|
/>
|
|
262
255
|
:<></>}
|
|
263
|
-
<View style={{ flex:1, marginLeft:5, flexDirection:'row', alignItems:'center' }}>
|
|
256
|
+
<View transparent style={{ flex:1, marginLeft:5, flexDirection:'row', alignItems:'center' }}>
|
|
264
257
|
{league?.league_image ?
|
|
265
258
|
<Image
|
|
266
259
|
source={{ uri: league.league_image }}
|
|
@@ -268,87 +261,87 @@ const CompetitionContestsForm = ({
|
|
|
268
261
|
resizeMode="cover"
|
|
269
262
|
/>
|
|
270
263
|
:<></>}
|
|
271
|
-
<View style={{ flex:1 }}>
|
|
272
|
-
<Text size={14}
|
|
273
|
-
<Text style={{ marginTop:4 }} size={12}
|
|
264
|
+
<View transparent style={{ flex:1 }}>
|
|
265
|
+
<Text size={14} theme='h1'>{event.away?.market_name} {event.away?.name} vs {event.home?.market_name} {event.home?.name}</Text>
|
|
266
|
+
<Text style={{ marginTop:4 }} size={12} theme='description'>{moment(event.scheduled_datetime).format('MMMM DD hh:mm a')}</Text>
|
|
274
267
|
</View>
|
|
275
268
|
</View>
|
|
276
|
-
<View style={{ marginLeft:5, marginRight:5, height:25, width:25, justifyContent:'center', alignItems:'center', borderRadius:100
|
|
277
|
-
<Text size={10} color={Colors.
|
|
269
|
+
<View transparent style={{ marginLeft:5, marginRight:5, height:25, width:25, justifyContent:'center', alignItems:'center', borderRadius:100 }}>
|
|
270
|
+
<Text size={10} color={Colors.text.h1} weight='bold'>{unique_market_ids.length}</Text>
|
|
278
271
|
</View>
|
|
279
|
-
<Icons.ChevronIcon direction={expanded ? 'up' : 'down'} size={8} color={Colors.
|
|
280
|
-
</
|
|
272
|
+
<Icons.ChevronIcon direction={expanded ? 'up' : 'down'} size={8} color={Colors.text.h1} />
|
|
273
|
+
</Button>
|
|
281
274
|
{expanded ?
|
|
282
|
-
<View style={{ padding:10 }}>
|
|
283
|
-
<View style={{
|
|
284
|
-
<
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
275
|
+
<View float style={{ borderRadius:0, padding:10 }}>
|
|
276
|
+
<View transparent style={{ padding:10 }}>
|
|
277
|
+
<View transparent style={{ flexDirection:'row', alignItems:'center', marginBottom:5 }}>
|
|
278
|
+
<Text style={{ flex:1 }} size={16} weight='bold'>Selected Markets</Text>
|
|
279
|
+
<Button
|
|
280
|
+
title="Add Markets"
|
|
281
|
+
type='info'
|
|
282
|
+
onPress={() => {
|
|
283
|
+
onShowMarkets(data.item, 'team');
|
|
284
|
+
}}
|
|
285
|
+
/>
|
|
286
|
+
</View>
|
|
287
|
+
<View transparent style={{ flexDirection:'row', flexWrap: 'wrap', padding:10 }}>
|
|
288
|
+
{unique_market_ids.map((market_id, index) => {
|
|
289
|
+
return (
|
|
290
|
+
renderMarkets({ item: market_id, index, event_id:data.item, event_type:'team' })
|
|
291
|
+
)
|
|
292
|
+
})}
|
|
293
|
+
</View>
|
|
300
294
|
</View>
|
|
295
|
+
{visible_matches.length > 0 ?
|
|
296
|
+
<FlatList
|
|
297
|
+
data={visible_matches}
|
|
298
|
+
renderItem={renderCompetitionMatches}
|
|
299
|
+
keyExtractor={(item) => item.competition_match_id.toString()}
|
|
300
|
+
/>
|
|
301
|
+
:<></>}
|
|
301
302
|
</View>
|
|
303
|
+
|
|
302
304
|
:<></>}
|
|
303
|
-
|
|
304
|
-
<FlatList
|
|
305
|
-
data={visible_matches}
|
|
306
|
-
renderItem={renderCompetitionMatches}
|
|
307
|
-
keyExtractor={(item) => item.competition_match_id.toString()}
|
|
308
|
-
/>
|
|
309
|
-
:<></>}
|
|
305
|
+
|
|
310
306
|
</View>
|
|
311
307
|
)
|
|
312
308
|
}
|
|
313
309
|
|
|
314
|
-
|
|
310
|
+
console.log(unique_team_events)
|
|
315
311
|
|
|
316
312
|
|
|
317
313
|
return (
|
|
318
|
-
<View style={{
|
|
319
|
-
<
|
|
314
|
+
<View float style={{ flexGrow:1, borderRadius:0 }}>
|
|
315
|
+
<Button float style={{ flexDirection:'row', alignItems:'center', borderRadius:0 }} onPress={() => setExpanded(!expanded)}>
|
|
320
316
|
{is_valid ?
|
|
321
|
-
<Icons.CheckCirlceIcon size={16} color={Colors.
|
|
317
|
+
<Icons.CheckCirlceIcon size={16} color={Colors.text.success} />
|
|
322
318
|
:
|
|
323
|
-
<Icons.AlertIcon size={16} color={Colors.
|
|
319
|
+
<Icons.AlertIcon size={16} color={Colors.text.warning} />
|
|
324
320
|
}
|
|
325
|
-
<View style={{ flex:1, marginRight:10, marginLeft:10 }}>
|
|
326
|
-
<Text theme='
|
|
327
|
-
<Text style={{ marginTop:3 }} theme='
|
|
321
|
+
<View transparent style={{ flex:1, marginRight:10, marginLeft:10 }}>
|
|
322
|
+
<Text theme='h1'>Competition Contests</Text>
|
|
323
|
+
<Text style={{ marginTop:3 }} theme='description'>Competitions require contests for users to make picks / wagers. Select 'Add Contests' to get started.</Text>
|
|
328
324
|
</View>
|
|
329
|
-
<Icons.ChevronIcon direction={expanded ? 'up' : 'down'} size={8} color={Colors.
|
|
330
|
-
</
|
|
325
|
+
<Icons.ChevronIcon direction={expanded ? 'up' : 'down'} size={8} color={Colors.text.h1} />
|
|
326
|
+
</Button>
|
|
331
327
|
{expanded ?
|
|
332
|
-
<View style={{
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
<Text theme='
|
|
337
|
-
|
|
338
|
-
</TouchableOpacity>
|
|
328
|
+
<View type='body' style={{ padding:0 }}>
|
|
329
|
+
<View style={{flexDirection:'row', alignItems:'center', padding:10, borderBottomWidth:1, borderColor:Colors.borders.light}}>
|
|
330
|
+
<Button style={{ flex:1, padding:0 }}>
|
|
331
|
+
<Text theme='h1'>Team Events</Text>
|
|
332
|
+
<Text style={{ marginTop:3 }} theme='description'>Select team based events to include in this competition</Text>
|
|
333
|
+
</Button>
|
|
339
334
|
<Button
|
|
340
335
|
title='ADD'
|
|
341
|
-
|
|
342
|
-
title_color={Colors.shades.white}
|
|
343
|
-
backgroundColor={Colors.utility.success}
|
|
336
|
+
type='success'
|
|
344
337
|
onPress={() => onShowContests()}
|
|
345
338
|
/>
|
|
346
339
|
</View>
|
|
347
340
|
{player?.role == 'admin' ?
|
|
348
|
-
<View style={{
|
|
341
|
+
<View type='row' style={{ padding:20 }}>
|
|
349
342
|
<View style={{ flex:1 }}>
|
|
350
|
-
<Text theme='
|
|
351
|
-
<Text style={{ marginTop:3 }} theme='
|
|
343
|
+
<Text theme='h1'>Append To Events</Text>
|
|
344
|
+
<Text style={{ marginTop:3 }} theme='description'>Should the 'Pick 6' button show up on events that are included in this competition?</Text>
|
|
352
345
|
</View>
|
|
353
346
|
<Switch
|
|
354
347
|
value={append_to_events}
|
|
@@ -361,7 +354,7 @@ const CompetitionContestsForm = ({
|
|
|
361
354
|
</View>
|
|
362
355
|
:<></>}
|
|
363
356
|
<View style={{ padding:10 }}>
|
|
364
|
-
<Text style={{ padding:10 }} theme='
|
|
357
|
+
<Text style={{ padding:10 }} theme='h2'>The following markets can be added to all events</Text>
|
|
365
358
|
<View style={{ padding:5 }}>
|
|
366
359
|
<FlatList
|
|
367
360
|
data={primary_markets}
|
|
@@ -371,9 +364,9 @@ const CompetitionContestsForm = ({
|
|
|
371
364
|
/>
|
|
372
365
|
</View>
|
|
373
366
|
</View>
|
|
374
|
-
<View style={{
|
|
367
|
+
<View type='body' style={{ padding:0 }}>
|
|
375
368
|
{active_contest_type == 'team' ?
|
|
376
|
-
<View>
|
|
369
|
+
<View transparent>
|
|
377
370
|
{unique_team_events.map((id, index) => {
|
|
378
371
|
return renderTeamEvents({ item:id, index })
|
|
379
372
|
})}
|