be-components 6.9.1 → 6.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/lib/commonjs/Competition/components/CompetitionLeaderboard.js +22 -10
  2. package/lib/commonjs/Competition/components/CompetitionLeaderboard.js.map +1 -1
  3. package/lib/commonjs/Competition/components/WagerPickForm.js +2 -2
  4. package/lib/commonjs/Competition/components/WagerPickForm.js.map +1 -1
  5. package/lib/commonjs/Competition/index.js +91 -0
  6. package/lib/commonjs/Competition/index.js.map +1 -1
  7. package/lib/commonjs/CompetitionManager/api/index.js +19 -11
  8. package/lib/commonjs/CompetitionManager/api/index.js.map +1 -1
  9. package/lib/commonjs/CompetitionManager/components/CompetitionContestsForm.js +5 -3
  10. package/lib/commonjs/CompetitionManager/components/CompetitionContestsForm.js.map +1 -1
  11. package/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.js +50 -4
  12. package/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.js.map +1 -1
  13. package/lib/commonjs/CompetitionManager/components/ContestSelector.js +19 -4
  14. package/lib/commonjs/CompetitionManager/components/ContestSelector.js.map +1 -1
  15. package/lib/commonjs/CompetitionManager/components/ContestSettingsForm.js +28 -2
  16. package/lib/commonjs/CompetitionManager/components/ContestSettingsForm.js.map +1 -1
  17. package/lib/commonjs/CompetitionManager/components/MarketSelector.js +1 -3
  18. package/lib/commonjs/CompetitionManager/components/MarketSelector.js.map +1 -1
  19. package/lib/commonjs/CompetitionManager/index.js +14 -4
  20. package/lib/commonjs/CompetitionManager/index.js.map +1 -1
  21. package/lib/commonjs/CreateEngagement/index.js +1 -1
  22. package/lib/commonjs/CreateEngagement/index.js.map +1 -1
  23. package/lib/module/Competition/components/CompetitionLeaderboard.js +22 -10
  24. package/lib/module/Competition/components/CompetitionLeaderboard.js.map +1 -1
  25. package/lib/module/Competition/components/WagerPickForm.js +2 -2
  26. package/lib/module/Competition/components/WagerPickForm.js.map +1 -1
  27. package/lib/module/Competition/index.js +91 -0
  28. package/lib/module/Competition/index.js.map +1 -1
  29. package/lib/module/CompetitionManager/api/index.js +19 -11
  30. package/lib/module/CompetitionManager/api/index.js.map +1 -1
  31. package/lib/module/CompetitionManager/components/CompetitionContestsForm.js +5 -3
  32. package/lib/module/CompetitionManager/components/CompetitionContestsForm.js.map +1 -1
  33. package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js +50 -4
  34. package/lib/module/CompetitionManager/components/CompetitionSettingsForm.js.map +1 -1
  35. package/lib/module/CompetitionManager/components/ContestSelector.js +20 -5
  36. package/lib/module/CompetitionManager/components/ContestSelector.js.map +1 -1
  37. package/lib/module/CompetitionManager/components/ContestSettingsForm.js +28 -2
  38. package/lib/module/CompetitionManager/components/ContestSettingsForm.js.map +1 -1
  39. package/lib/module/CompetitionManager/components/MarketSelector.js +1 -3
  40. package/lib/module/CompetitionManager/components/MarketSelector.js.map +1 -1
  41. package/lib/module/CompetitionManager/index.js +14 -4
  42. package/lib/module/CompetitionManager/index.js.map +1 -1
  43. package/lib/module/CreateEngagement/index.js +1 -1
  44. package/lib/module/CreateEngagement/index.js.map +1 -1
  45. package/lib/typescript/lib/commonjs/Competition/components/CompetitionLeaderboard.d.ts +2 -1
  46. package/lib/typescript/lib/commonjs/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
  47. package/lib/typescript/lib/commonjs/Competition/index.d.ts.map +1 -1
  48. package/lib/typescript/lib/commonjs/CompetitionManager/api/index.d.ts +1 -1
  49. package/lib/typescript/lib/commonjs/CompetitionManager/api/index.d.ts.map +1 -1
  50. package/lib/typescript/lib/commonjs/CompetitionManager/components/CompetitionContestsForm.d.ts.map +1 -1
  51. package/lib/typescript/lib/commonjs/CompetitionManager/components/CompetitionSettingsForm.d.ts.map +1 -1
  52. package/lib/typescript/lib/commonjs/CompetitionManager/components/ContestSelector.d.ts.map +1 -1
  53. package/lib/typescript/lib/commonjs/CompetitionManager/components/ContestSettingsForm.d.ts.map +1 -1
  54. package/lib/typescript/lib/commonjs/CompetitionManager/components/MarketSelector.d.ts.map +1 -1
  55. package/lib/typescript/lib/commonjs/CompetitionManager/index.d.ts.map +1 -1
  56. package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts +2 -1
  57. package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
  58. package/lib/typescript/lib/module/Competition/index.d.ts.map +1 -1
  59. package/lib/typescript/lib/module/CompetitionManager/api/index.d.ts +1 -1
  60. package/lib/typescript/lib/module/CompetitionManager/api/index.d.ts.map +1 -1
  61. package/lib/typescript/lib/module/CompetitionManager/components/CompetitionContestsForm.d.ts.map +1 -1
  62. package/lib/typescript/lib/module/CompetitionManager/components/CompetitionSettingsForm.d.ts.map +1 -1
  63. package/lib/typescript/lib/module/CompetitionManager/components/ContestSelector.d.ts.map +1 -1
  64. package/lib/typescript/lib/module/CompetitionManager/components/ContestSettingsForm.d.ts.map +1 -1
  65. package/lib/typescript/lib/module/CompetitionManager/components/MarketSelector.d.ts.map +1 -1
  66. package/lib/typescript/lib/module/CompetitionManager/index.d.ts.map +1 -1
  67. package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts +7 -2
  68. package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
  69. package/lib/typescript/src/Competition/index.d.ts.map +1 -1
  70. package/lib/typescript/src/CompetitionManager/api/index.d.ts +2 -2
  71. package/lib/typescript/src/CompetitionManager/api/index.d.ts.map +1 -1
  72. package/lib/typescript/src/CompetitionManager/components/CompetitionSettingsForm.d.ts.map +1 -1
  73. package/lib/typescript/src/CompetitionManager/components/ContestSelector.d.ts +4 -3
  74. package/lib/typescript/src/CompetitionManager/components/ContestSelector.d.ts.map +1 -1
  75. package/lib/typescript/src/CompetitionManager/components/ContestSettingsForm.d.ts.map +1 -1
  76. package/lib/typescript/src/CompetitionManager/components/MarketSelector.d.ts.map +1 -1
  77. package/lib/typescript/src/CompetitionManager/index.d.ts.map +1 -1
  78. package/package.json +1 -1
  79. package/src/Competition/components/CompetitionLeaderboard.tsx +23 -7
  80. package/src/Competition/components/WagerPickForm.tsx +2 -2
  81. package/src/Competition/index.tsx +81 -2
  82. package/src/CompetitionManager/api/index.ts +14 -6
  83. package/src/CompetitionManager/components/CompetitionContestsForm.tsx +4 -4
  84. package/src/CompetitionManager/components/CompetitionSettingsForm.tsx +34 -1
  85. package/src/CompetitionManager/components/ContestSelector.tsx +25 -9
  86. package/src/CompetitionManager/components/ContestSettingsForm.tsx +19 -0
  87. package/src/CompetitionManager/components/MarketSelector.tsx +5 -7
  88. package/src/CompetitionManager/index.tsx +15 -7
  89. package/src/CreateEngagement/index.tsx +1 -1
@@ -1,9 +1,14 @@
1
1
  import React from "react";
2
- import type { CompetitionProps, CompetitionTypeProps, PublicPlayerProps } from "../../types";
2
+ import type { CompetitionProps, CompetitionRecordProps, CompetitionResultProps, CompetitionTypeProps, PublicPlayerProps } from "../../types";
3
3
  type CompetitionLeaderboardProps = {
4
4
  competition: CompetitionProps;
5
5
  competition_type: CompetitionTypeProps;
6
6
  hidden?: boolean;
7
+ refresh_leaders: {
8
+ refresh_key: string;
9
+ competition_records: CompetitionRecordProps[];
10
+ competition_results: CompetitionResultProps[];
11
+ };
7
12
  disable_collapse?: boolean;
8
13
  viewer_id?: string;
9
14
  height: number;
@@ -13,6 +18,6 @@ type CompetitionLeaderboardProps = {
13
18
  onSeeFull: () => void;
14
19
  onLeaderSelect: (player: PublicPlayerProps) => void;
15
20
  };
16
- declare const CompetitionLeaderboard: ({ hidden, disable_collapse, competition, competition_type, viewer_id, view_mode, onSeeFull, onClose, onLeaderSelect }: CompetitionLeaderboardProps) => React.JSX.Element;
21
+ declare const CompetitionLeaderboard: ({ hidden, refresh_leaders, disable_collapse, competition, competition_type, viewer_id, view_mode, onSeeFull, onClose, onLeaderSelect }: CompetitionLeaderboardProps) => React.JSX.Element;
17
22
  export default CompetitionLeaderboard;
18
23
  //# sourceMappingURL=CompetitionLeaderboard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CompetitionLeaderboard.d.ts","sourceRoot":"","sources":["../../../../../src/Competition/components/CompetitionLeaderboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,OAAO,KAAK,EAAE,gBAAgB,EAAkD,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAQ5I,KAAK,2BAA2B,GAAG;IAC/B,WAAW,EAAC,gBAAgB,CAAC;IAC7B,gBAAgB,EAAC,oBAAoB,CAAC;IACtC,MAAM,CAAC,EAAC,OAAO,CAAC;IAChB,gBAAgB,CAAC,EAAC,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAC,MAAM,CAAC;IACb,SAAS,EAAE,OAAO,GAAC,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAC,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,cAAc,EAAC,CAAC,MAAM,EAAC,iBAAiB,KAAK,IAAI,CAAA;CACpD,CAAA;AAED,QAAA,MAAM,sBAAsB,GAAI,uHAAsH,2BAA2B,sBA8OhL,CAAA;AAED,eAAe,sBAAsB,CAAA"}
1
+ {"version":3,"file":"CompetitionLeaderboard.d.ts","sourceRoot":"","sources":["../../../../../src/Competition/components/CompetitionLeaderboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,OAAO,KAAK,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAQ5I,KAAK,2BAA2B,GAAG;IAC/B,WAAW,EAAC,gBAAgB,CAAC;IAC7B,gBAAgB,EAAC,oBAAoB,CAAC;IACtC,MAAM,CAAC,EAAC,OAAO,CAAC;IAChB,eAAe,EAAC;QACZ,WAA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C,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;AAKD,QAAA,MAAM,iBAAiB,GAAI,wLAAuL,sBAAsB,sBAyuBvO,CAAA;AAED,eAAe,iBAAiB,CAAA"}
@@ -118,13 +118,13 @@ declare const ManageCompetitionMatchApi: {
118
118
  getExoticsByIds: (exotic_ids: string[]) => Promise<any[]>;
119
119
  createCompetitionMatch: (competition_id: string, event_id: string, event_type: string, match_type: string, market_id_override?: string, side_type_override?: string, side_id_override?: string) => Promise<CompetitionMatchProps>;
120
120
  updateCompetitionMatch: (competition_match: CompetitionMatchProps) => Promise<CompetitionMatchProps>;
121
- deleteCompetitionMatch: (competition_match_id: string) => Promise<{
121
+ deleteCompetitionMatch: (competition_match_id: string) => Promise<undefined | {
122
122
  competition_match: CompetitionMatchProps;
123
123
  competition_match_markets: CompetitionMatchMarketProps[];
124
124
  }>;
125
125
  createCompetitionMatchMarkets: (competition_match_markets: CompetitionMatchMarketProps[]) => Promise<CompetitionMatchMarketProps[]>;
126
126
  updateCompetitionMatchMarkets: (competition_match_markets: CompetitionMatchMarketProps[]) => Promise<CompetitionMatchMarketProps[]>;
127
- deleteCompetitionMatchMarkets: (competition_match_market_ids: string[]) => Promise<CompetitionMatchMarketProps[]>;
127
+ deleteCompetitionMatchMarkets: (competition_match_market_ids: string[]) => Promise<undefined | CompetitionMatchMarketProps[]>;
128
128
  };
129
129
  declare const ManageCompetitionPlayerApi: {
130
130
  getCompetitionPlayersByCompetition: (competition_id: string, offset: number, status?: string) => Promise<CompetitionPlayerProps[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/CompetitionManager/api/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAA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AAA;AAGD,QAAA,MAAM,0BAA0B;8CACkB,MAAM,UAAS,MAAM,uBAAsB,MAAM,KAAE,OAAO,CAAC;QAAC,mBAAmB,EAAC,sBAAsB,EAAE,CAAC;QAAC,mBAAmB,EAAC,sBAAsB,EAAE,CAAA;KAAC,CAAC;CAIzM,CAAA;AAED,QAAA,MAAM,wBAAwB;4CACS,oBAAoB,EAAE,4BAA2B,0BAA0B,EAAE,uBAAsB,qBAAqB,EAAE,6BAA4B,2BAA2B,EAAE,UAAS,UAAU,EAAE,gBAAe,gBAAgB;;;;;;;kDAcjO,MAAM,cAAa,MAAM,KAAE,qBAAqB;mDAY9C,UAAU,KAAE,2BAA2B;gDA6D1C,WAAW,WAAU,MAAM,KAAE,2BAA2B;IAiBpG;;;;;OAKG;yBACiB,MAAM,YAAW,MAAM,KAAE,MAAM;0BAK7B,MAAM,UAAS,WAAW,KAAE,MAAM;oCAMxB,MAAM;mDAWS,MAAM;+BAa5B,gBAAgB;uCA8BP,gBAAgB,uBAAsB,qBAAqB,EAAE,6BAA4B,2BAA2B,EAAE,UAAS,UAAU,EAAE;oBAKrI,MAAM;eAAQ,MAAM;;gCAuBhC,gBAAgB;oCAUZ,gBAAgB,MAAK,oBAAoB,MAAK,0BAA0B;gCAQ5E,gBAAgB,oBAAmB,oBAAoB,2BAA0B,0BAA0B;mCAkBxG,gBAAgB,uBAAsB,qBAAqB,EAAE,6BAA4B,2BAA2B,EAAE,UAAS,UAAU,EAAE;yBAarJ,MAAM,KAAE,MAAM;CAclC,CAAA;AAED,eAAO,MAAM,kBAAkB,UAO9B,CAAA;AAED,eAAO,MAAM,oBAAoB,UAIhC,CAAA"}
@@ -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,kBAAkB,EAAE,aAAa,EAAqB,MAAM,aAAa,CAAC;AAQtI,KAAK,4BAA4B,GAAG;IAChC,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,aAAa,CAAC,EAAC,OAAO,CAAC;IACvB,eAAe,CAAC,EAAC,CAAC,QAAQ,EAAC,kBAAkB,KAAK,IAAI,CAAC;IACvD,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,GAAI,sHAAsH,4BAA4B,sBA0LlL,CAAA;AAED,eAAe,uBAAuB,CAAA"}
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,kBAAkB,EAAE,aAAa,EAAqB,MAAM,aAAa,CAAC;AAQtI,KAAK,4BAA4B,GAAG;IAChC,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,aAAa,CAAC,EAAC,OAAO,CAAC;IACvB,eAAe,CAAC,EAAC,CAAC,QAAQ,EAAC,kBAAkB,KAAK,IAAI,CAAC;IACvD,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,GAAI,sHAAsH,4BAA4B,sBA2NlL,CAAA;AAED,eAAe,uBAAuB,CAAA"}
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
- import type { EventProps, LeagueProps } from '../../types';
2
+ import type { EventProps, LeagueProps, TradeProps } from '../../types';
3
3
  type ContestSelectorProps = {
4
4
  action_loading: boolean;
5
5
  leagues: LeagueProps[];
6
+ active_markets?: string[];
6
7
  selected_team_events: EventProps[];
7
- onSelectTeamEvent: (event: EventProps) => void;
8
- onSelectTeamEvents: (events: EventProps[]) => void;
8
+ onSelectTeamEvent: (event: EventProps, trades: TradeProps[]) => void;
9
+ onSelectTeamEvents: (events: EventProps[], trades: TradeProps[]) => void;
9
10
  onDeselectTeamEvent: (event: EventProps) => void;
10
11
  onClose: () => void;
11
12
  };
@@ -1 +1 @@
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,cAAc,EAAC,OAAO,CAAC;IACvB,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,GAAI,wHAAuH,oBAAoB,sBAgPnK,CAAA;AAED,eAAe,eAAe,CAAA"}
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,UAAU,EAAE,MAAM,aAAa,CAAC;AAQpF,KAAK,oBAAoB,GAAG;IACxB,cAAc,EAAC,OAAO,CAAC;IACvB,OAAO,EAAC,WAAW,EAAE,CAAC;IACtB,cAAc,CAAC,EAAC,MAAM,EAAE,CAAC;IACzB,oBAAoB,EAAC,UAAU,EAAE,CAAC;IAClC,iBAAiB,EAAC,CAAC,KAAK,EAAC,UAAU,EAAE,MAAM,EAAC,UAAU,EAAE,KAAK,IAAI,CAAC;IAClE,kBAAkB,EAAE,CAAC,MAAM,EAAC,UAAU,EAAE,EAAE,MAAM,EAAC,UAAU,EAAE,KAAK,IAAI,CAAC;IACvE,mBAAmB,EAAE,CAAC,KAAK,EAAC,UAAU,KAAK,IAAI,CAAC;IAChD,OAAO,EAAC,MAAM,IAAI,CAAA;CACrB,CAAA;AAED,QAAA,MAAM,eAAe,GAAI,wHAAuH,oBAAoB,sBA8PnK,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -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,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAO9J,KAAK,wBAAwB,GAAG;IAC5B,WAAW,EAAC,gBAAgB,CAAC;IAC7B,eAAe,CAAC,EAAC,CAAC,QAAQ,EAAC,kBAAkB,KAAK,IAAI,CAAC;IACvD,mBAAmB,EAAC,qBAAqB,EAAE,CAAC;IAC5C,yBAAyB,EAAC,2BAA2B,EAAE,CAAC;IACxD,iBAAiB,EAAC,oBAAoB,EAAE,CAAC;IACzC,MAAM,EAAC,UAAU,EAAE,CAAC;IACpB,aAAa,CAAC,EAAC,OAAO,CAAC;IACvB,mBAAmB,EAAE,CAAC,CAAC,EAAC,gBAAgB,KAAK,IAAI,CAAA;CACpD,CAAA;AAID,QAAA,MAAM,mBAAmB,GAAI,iJAAgJ,wBAAwB,sBAiJpM,CAAA;AAED,eAAe,mBAAmB,CAAA"}
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,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAO9J,KAAK,wBAAwB,GAAG;IAC5B,WAAW,EAAC,gBAAgB,CAAC;IAC7B,eAAe,CAAC,EAAC,CAAC,QAAQ,EAAC,kBAAkB,KAAK,IAAI,CAAC;IACvD,mBAAmB,EAAC,qBAAqB,EAAE,CAAC;IAC5C,yBAAyB,EAAC,2BAA2B,EAAE,CAAC;IACxD,iBAAiB,EAAC,oBAAoB,EAAE,CAAC;IACzC,MAAM,EAAC,UAAU,EAAE,CAAC;IACpB,aAAa,CAAC,EAAC,OAAO,CAAC;IACvB,mBAAmB,EAAE,CAAC,CAAC,EAAC,gBAAgB,KAAK,IAAI,CAAA;CACpD,CAAA;AAID,QAAA,MAAM,mBAAmB,GAAI,iJAAgJ,wBAAwB,sBAoKpM,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,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,GAAI,0EAA2E,mBAAmB,sBA4DrH,CAAA;AAED,eAAe,cAAc,CAAA"}
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,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,GAAI,0EAA2E,mBAAmB,sBA0DrH,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/CompetitionManager/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAE9D,OAAO,KAAK,EAAuN,kBAAkB,EAA2G,MAAM,UAAU,CAAC;AAcjX,KAAK,uBAAuB,GAAG;IAC3B,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,cAAc,EAAC,MAAM,CAAC;IACtB,KAAK,CAAC,EAAC,OAAO,CAAC;IACf,YAAY,CAAC,EAAC,SAAS,CAAC;IACxB,YAAY,CAAC,EAAC,SAAS,CAAA;IACvB,eAAe,CAAC,EAAC,CAAC,QAAQ,EAAC,kBAAkB,KAAK,IAAI,CAAC;IACvD,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;AAGD,QAAA,MAAM,kBAAkB,GAAI,oGAAmG,uBAAuB,sBA6rBrJ,CAAA;AAED,eAAe,kBAAkB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/CompetitionManager/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAE9D,OAAO,KAAK,EAAuN,kBAAkB,EAA2G,MAAM,UAAU,CAAC;AAcjX,KAAK,uBAAuB,GAAG;IAC3B,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,cAAc,EAAC,MAAM,CAAC;IACtB,KAAK,CAAC,EAAC,OAAO,CAAC;IACf,YAAY,CAAC,EAAC,SAAS,CAAC;IACxB,YAAY,CAAC,EAAC,SAAS,CAAA;IACvB,eAAe,CAAC,EAAC,CAAC,QAAQ,EAAC,kBAAkB,KAAK,IAAI,CAAC;IACvD,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;AAGD,QAAA,MAAM,kBAAkB,GAAI,oGAAmG,uBAAuB,sBAqsBrJ,CAAA;AAED,eAAe,kBAAkB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "be-components",
3
- "version": "6.9.1",
3
+ "version": "6.9.2",
4
4
  "description": "Components for BettorEdge Apps",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -12,6 +12,11 @@ type CompetitionLeaderboardProps = {
12
12
  competition:CompetitionProps,
13
13
  competition_type:CompetitionTypeProps,
14
14
  hidden?:boolean,
15
+ refresh_leaders:{
16
+ refresh_key:string,
17
+ competition_records:CompetitionRecordProps[],
18
+ competition_results:CompetitionResultProps[]
19
+ },
15
20
  disable_collapse?:boolean,
16
21
  viewer_id?:string,
17
22
  height: number,
@@ -22,7 +27,7 @@ type CompetitionLeaderboardProps = {
22
27
  onLeaderSelect:(player:PublicPlayerProps) => void
23
28
  }
24
29
  const sections = [ 'my_result','header', 'leaders' ]
25
- const CompetitionLeaderboard = ({ hidden, disable_collapse, competition, competition_type, viewer_id, view_mode, onSeeFull, onClose, onLeaderSelect }:CompetitionLeaderboardProps) => {
30
+ const CompetitionLeaderboard = ({ hidden, refresh_leaders, disable_collapse, competition, competition_type, viewer_id, view_mode, onSeeFull, onClose, onLeaderSelect }:CompetitionLeaderboardProps) => {
26
31
  const C = useColors();
27
32
  const [ expanded, setExpanded ] = useState(true);
28
33
  const [ data, setData ] = useState<{
@@ -40,20 +45,30 @@ const CompetitionLeaderboard = ({ hidden, disable_collapse, competition, competi
40
45
  })
41
46
 
42
47
  const { loading, competition_results, competition_records, players, offset } = data
43
- let results = [ ...competition_results ];
48
+ let results = [ ...competition_results.filter(cr => cr.status != 'deleted') ];
49
+ let records = [ ...competition_records.filter(cr => cr.status != 'deleted') ]
44
50
 
45
51
  if(view_mode == 'short'){ results = results.filter((r,i) => r ? i < 3 : i < 3) }
46
52
 
47
53
  let viewer = players.find(p => p.player_id == viewer_id);
48
- let viewer_result = competition_results.find(r => r.player_id == viewer_id);
49
- let viewer_record = competition_records.find(r => r.player_id == viewer_id);
54
+ let viewer_result = results.find(r => r.player_id == viewer_id);
55
+ let viewer_record = records.find(r => r.player_id == viewer_id);
50
56
 
51
57
  const cl = competition?.market_type == 'FOR_MONEY' ? '$' : 'E'
52
58
 
53
59
  useEffect(() => {
54
60
  if(!competition){ return }
55
61
  getLeaderboardFromServer(competition.competition_id, 0)
56
- },[competition])
62
+ },[competition?.competition_id]);
63
+
64
+ useEffect(() => {
65
+ if(refresh_leaders.competition_records.length == 0){ return }
66
+ setData({
67
+ ...data,
68
+ competition_records: competition_records.filter(cr => !refresh_leaders.competition_records.find(newcr => newcr.competition_record_id == cr.competition_record_id)).concat(refresh_leaders.competition_records),
69
+ competition_results: competition_results.filter(cr => !refresh_leaders.competition_results.find(newcr => newcr.competition_result_id == cr.competition_result_id)).concat(refresh_leaders.competition_results)
70
+ })
71
+ },[refresh_leaders?.refresh_key])
57
72
 
58
73
  const getLeaderboardFromServer = async(competition_id:string, offset:number) => {
59
74
  setData({ ...data, loading:true })
@@ -64,6 +79,7 @@ const CompetitionLeaderboard = ({ hidden, disable_collapse, competition, competi
64
79
  setData({
65
80
  ...data,
66
81
  players,
82
+ loading:false,
67
83
  competition_records: result_response.competition_records,
68
84
  competition_results: result_response.competition_results,
69
85
  offset,
@@ -163,7 +179,7 @@ const CompetitionLeaderboard = ({ hidden, disable_collapse, competition, competi
163
179
 
164
180
  if(view_mode == 'short'){
165
181
  return (
166
- <View float nativeID="leaderboard">
182
+ <View nativeID="leaderboard" style={{ flex:1 }}>
167
183
  <Button
168
184
  disabled={disable_collapse}
169
185
  style={{ flexDirection:'row', alignItems:'center', borderBottomWidth:expanded?1:0, borderColor:C.borders.light }}
@@ -179,7 +195,7 @@ const CompetitionLeaderboard = ({ hidden, disable_collapse, competition, competi
179
195
  :<></>}
180
196
  </Button>
181
197
  {expanded ?
182
- <View transparent type='body' style={{ flex:1 }}>
198
+ <View transparent type='body'>
183
199
  {viewer_record && viewer_result && viewer ?
184
200
  <View transparent style={{ padding:10, marginBottom:10, borderTopRightRadius:8, borderTopLeftRadius:8, borderBottomWidth:1, borderColor:C.borders.light }}>
185
201
  <Text size={14} theme="h1">MY RESULTS</Text>
@@ -23,11 +23,11 @@ type WagerPickFormProps = {
23
23
  const WagerPickForm = ({ player_pick, mode, event_title, balance, event_start, padding_bottom, loading, onCancel, onFocusPosition, onSubmit }:WagerPickFormProps) => {
24
24
  const C = useColors();
25
25
  const [ reviewed, setReviewed ] = useState(false);
26
- const [ wager, setWager ] = useState({ stake:0, stake_label: '0', potential_winnings: 0 });
26
+ const [ wager, setWager ] = useState({ stake:0, stake_label: '', potential_winnings: 0 });
27
27
 
28
28
 
29
29
  const handleWagerChange = (text:string) => {
30
- if(text == ''){ return setWager({ stake:0, stake_label:'0', potential_winnings:0 }) }
30
+ if(text == ''){ return setWager({ stake:0, stake_label:'', potential_winnings:0 }) }
31
31
  let wager_amt = parseFloat(text)
32
32
  let potential_winnings = CompetitionHelpers.calcPotentialWinnings(wager_amt, player_pick.odds)
33
33
  setWager({ stake:wager_amt, stake_label:wager_amt.toString(), potential_winnings })
@@ -3,7 +3,7 @@ import { CompetitionApi, CompetitionHelpers, CompetitionMatchApi, CompetitionPla
3
3
  import { Image, ActivityIndicator, Modal, FlatList } from 'react-native';
4
4
  import { view_styles } from '../constants/styles';
5
5
  import { ConfirmationModal, Icons, Toggle } from '../Components';
6
- import type { AthleteProps, BEEventProps, CodeRequestProps, CompetitionMatchMarketProps, CompetitionMatchProps, CompetitionPayoutTypeProps, CompetitionPlayerProps, CompetitionProps, CompetitionResultTypeProps, CompetitionSeasonProps, CompetitionTypeProps, EventProps, FocusPositionProps, LeagueProps, MarketProps, MatchProps, MyPlayerProps, PlayerBalanceProps, PlayerPickProps, PlayerReferralProps, PromoProps, PublicPlayerProps, RewardOptionProps, TeamProps, TournamentProps } from '../types';
6
+ import type { AthleteProps, BEEventProps, CodeRequestProps, CompetitionMatchMarketProps, CompetitionMatchProps, CompetitionPayoutTypeProps, CompetitionPlayerProps, CompetitionProps, CompetitionRecordProps, CompetitionResultProps, CompetitionResultTypeProps, CompetitionSeasonProps, CompetitionTypeProps, EventProps, FocusPositionProps, LeagueProps, MarketProps, MatchProps, MyPlayerProps, PlayerBalanceProps, PlayerPickProps, PlayerReferralProps, PromoProps, PublicPlayerProps, RewardOptionProps, TeamProps, TournamentProps } from '../types';
7
7
  import CompetitionInfoCard from './components/CompetitionInfoCard';
8
8
  import CompetitionLeaderboard from './components/CompetitionLeaderboard';
9
9
  import WagerPickForm from './components/WagerPickForm';
@@ -14,6 +14,7 @@ import LeaderPicks from './components/LeaderPicks';
14
14
  import SeasonCard from './components/SeasonCard';
15
15
  import { Button, Text, View } from '../Components/Themed';
16
16
  import { useColors } from '../constants/useColors';
17
+ import SocketManager from '../Socket';
17
18
 
18
19
  type CompetitionModuleProps = {
19
20
  player_id?:string,
@@ -36,6 +37,23 @@ const competition_sections = ['header','pending','join','test','details','leader
36
37
  const CompetitionModule = ({ competition_id, view_mode, insets, player_id, confirm_padding, onManageCompetition, onFocusPosition, onRequestAuthentication, onShareCompetition, onClose, onViewCompetitionSeason }:CompetitionModuleProps) => {
37
38
  const C = useColors();
38
39
  const [ active_tab, setActiveTab ] = useState('play');
40
+ const [ socket_details, setSocketDetails ] = useState<{
41
+ competition?:CompetitionProps,
42
+ refresh_leaders: {
43
+ refresh_key:string,
44
+ competition_records:CompetitionRecordProps[],
45
+ competition_results:CompetitionResultProps[]
46
+ },
47
+ competition_players:CompetitionPlayerProps[],
48
+ }>({
49
+ competition_players: [],
50
+ refresh_leaders: {
51
+ refresh_key: moment().toString(),
52
+ competition_records: [],
53
+ competition_results: []
54
+ }
55
+ });
56
+ const [ needs_reload, setNeedsReload ] = useState(false);
39
57
  const [ viewing_leader, setViewingLeader ] = useState<PublicPlayerProps|undefined>();
40
58
  const [ show_full_leaderboard, setShowFullLeaderboard ] = useState(false);
41
59
  const [ module_size, setModuleSize ] = useState({ width:0, height:0 });
@@ -91,7 +109,7 @@ const CompetitionModule = ({ competition_id, view_mode, insets, player_id, confi
91
109
  competition_matches:[],
92
110
  competition_players:[],
93
111
  competition_match_markets:[],
94
- })
112
+ });
95
113
 
96
114
  const [ nav_out, setNavOut ] = useState<{
97
115
  visible:boolean,
@@ -145,6 +163,21 @@ const CompetitionModule = ({ competition_id, view_mode, insets, player_id, confi
145
163
  if(player_id){ getPlayerData(competition_id, player_id, 0) }
146
164
  },[competition_id, player_id])
147
165
 
166
+ useEffect(() => {
167
+ if(!loaded){ return }
168
+ //Need to update the competition!
169
+ let my_player = socket_details.competition_players.find(cp => cp.player_id == player?.player_id);
170
+ let entered = competition?.entered ?? false
171
+ if(my_player){
172
+ if(my_player.status == 'active'){ entered = true } else { entered = false }
173
+ }
174
+ setCompetitionData({
175
+ ...competition_data,
176
+ competition: socket_details.competition ? { ...socket_details.competition, entered } : competition,
177
+ competition_players: competition_players.filter(cp => !socket_details.competition_players.find(newcp => newcp.competition_player_id == cp.competition_player_id)).concat(socket_details.competition_players),
178
+ });
179
+ },[socket_details.refresh_leaders?.refresh_key]);
180
+
148
181
 
149
182
  useEffect(() => {
150
183
  if(!competition){ return }
@@ -477,6 +510,7 @@ const CompetitionModule = ({ competition_id, view_mode, insets, player_id, confi
477
510
  <CompetitionLeaderboard
478
511
  hidden={active_tab == 'leaderboard' ? false : true}
479
512
  disable_collapse
513
+ refresh_leaders={socket_details.refresh_leaders}
480
514
  competition={competition}
481
515
  width={module_size.width}
482
516
  competition_type={competition_type}
@@ -560,15 +594,60 @@ const CompetitionModule = ({ competition_id, view_mode, insets, player_id, confi
560
594
  }}>
561
595
  <FlatList
562
596
  key={`competition_sections`}
597
+ onRefresh={() => getCompetitionFromServer(competition_id)}
598
+ refreshing={loading}
563
599
  data={competition_sections}
564
600
  keyExtractor={(item) => item}
565
601
  renderItem={renderSections}
566
602
  />
603
+ <SocketManager
604
+ subscribed_events={['V1_UPDATE_COMPETITION_RECORDS','V1_UPDATE_COMPETITION_PLAYERS', 'ACTIVATE_COMPETITION']}
605
+ onConnect={() => {
606
+ if(needs_reload){ getCompetitionFromServer(competition_id); console.log('RELOADING DATA!!!!') }
607
+ }}
608
+ onDisconnect={() => setNeedsReload(true)}
609
+ onSocketEvent={(event) => {
610
+ switch(event.type){
611
+ case 'ACTIVATE_COMPETITION':
612
+ //competition = message.competition
613
+ let comp:CompetitionProps | undefined = event.competition as CompetitionProps | undefined
614
+ if(!comp){ return }
615
+ if(comp.competition_id != competition_id){ return } //Not our competition!!!
616
+ setSocketDetails({
617
+ ...socket_details,
618
+ competition: comp
619
+ });
620
+ break
621
+ case 'V1_UPDATE_COMPETITION_PLAYERS':
622
+ let competition_players = event.data as CompetitionPlayerProps[]
623
+ let competition = event.competition as CompetitionProps
624
+ let competition_records = event.records as CompetitionRecordProps[]
625
+ let competition_results = event.results as CompetitionResultProps[]
626
+ if(!competition || !competition_players || !competition_results || !competition_records){ return } //There is an issue with this data
627
+ if(competition?.competition_id != competition_id){ return }
628
+ console.log(`records = ${competition_records.length}`);
629
+ console.log(`results is ${competition_results.length}`);
630
+ console.log(`players are ${competition_players.length}`)
631
+ setSocketDetails({
632
+ competition: competition,
633
+ competition_players: competition_players,
634
+ refresh_leaders:{
635
+ refresh_key: moment().toString(),
636
+ competition_records,
637
+ competition_results
638
+ }
639
+ });
640
+ break
641
+ default: return //Do nothing
642
+ }
643
+ }}
644
+ />
567
645
  {show_full_leaderboard ?
568
646
  <View type='blur' style={view_mode=='desktop'?{position:'absolute', top:0, left:0, right:0, bottom:0, justifyContent:'center', alignItems:'center'}:{ position:'absolute', bottom:0, left:0, right:0, top:0 }}>
569
647
  <View style={view_mode=='desktop'?{ width:500, height:676, borderRadius:22 }:{flex:1}}>
570
648
  <CompetitionLeaderboard
571
649
  competition={competition}
650
+ refresh_leaders={socket_details.refresh_leaders}
572
651
  competition_type={competition_type}
573
652
  height={module_size.height}
574
653
  width={module_size.width}
@@ -285,9 +285,13 @@ const ManageCompetitionMatchApi = {
285
285
  const resp = await axios.post(`${TP_SVC_API}/v2/competitions/match/update`, { competition_match })
286
286
  return resp.data.competition_match
287
287
  },
288
- deleteCompetitionMatch: async(competition_match_id:string):Promise<{ competition_match:CompetitionMatchProps, competition_match_markets:CompetitionMatchMarketProps[] }> => {
289
- const resp = await axios.post(`${TP_SVC_API}/v2/competitions/match/delete`, { competition_match_id })
290
- return { competition_match: resp.data.competition_match, competition_match_markets:resp.data.competition_match_markets }
288
+ deleteCompetitionMatch: async(competition_match_id:string):Promise<undefined | { competition_match:CompetitionMatchProps, competition_match_markets:CompetitionMatchMarketProps[] }> => {
289
+ try {
290
+ const resp = await axios.post(`${TP_SVC_API}/v2/competitions/match/delete`, { competition_match_id })
291
+ return { competition_match: resp.data.competition_match, competition_match_markets:resp.data.competition_match_markets }
292
+ } catch (e) {
293
+ return undefined
294
+ }
291
295
  },
292
296
  createCompetitionMatchMarkets: async(competition_match_markets:CompetitionMatchMarketProps[]):Promise<CompetitionMatchMarketProps[]> => {
293
297
  const resp = await axios.post(`${TP_SVC_API}/v2/competitions/market/create`, { competition_match_markets })
@@ -297,10 +301,14 @@ const ManageCompetitionMatchApi = {
297
301
  const resp = await axios.post(`${TP_SVC_API}/v2/competitions/market/update`, { competition_match_markets })
298
302
  return resp.data.competition_match_markets
299
303
  },
300
- deleteCompetitionMatchMarkets: async(competition_match_market_ids:string[]):Promise<CompetitionMatchMarketProps[]> => {
304
+ deleteCompetitionMatchMarkets: async(competition_match_market_ids:string[]):Promise<undefined | CompetitionMatchMarketProps[]> => {
301
305
  if(competition_match_market_ids.length == 0){ return [] }
302
- const resp = await axios.post(`${TP_SVC_API}/v2/competitions/market/delete`, { competition_match_market_ids })
303
- return resp.data.competition_match_markets
306
+ try {
307
+ const resp = await axios.post(`${TP_SVC_API}/v2/competitions/market/delete`, { competition_match_market_ids })
308
+ return resp.data.competition_match_markets
309
+ } catch (e) {
310
+ return undefined
311
+ }
304
312
  }
305
313
  }
306
314
 
@@ -65,7 +65,7 @@ const CompetitionContestsForm = ({
65
65
  const [ active_contest_type ] = useState('team');
66
66
  const [ expanded_contests, setExpandedContests ] = useState<string[]>([]);
67
67
 
68
- const unique_team_events = [ ...new Set(competition_matches.filter(cm => cm.event_type == 'team').map(cm => cm.event_id)) ]
68
+ const unique_team_events = [ ...new Set(competition_matches.filter(cm => cm.status == 'inprogress' && cm.event_type == 'team').map(cm => cm.event_id)) ]
69
69
  const append_to_events = competition.linked_event_ids && competition.linked_event_ids.length == unique_team_events.length ? true : false
70
70
 
71
71
  const renderPrimaryMarkets = (data: { item:{ market:MarketProps, included:boolean }, index:number }) => {
@@ -87,7 +87,7 @@ const CompetitionContestsForm = ({
87
87
  const show_details = show_match_markets.includes(`${data.event_type}:${data.event_id}:${data.item}`) ? true : false
88
88
  const market_matches = competition_matches.filter(cm => cm.market_id_override == data.item && cm.side_id_override);
89
89
  return (
90
- <View style={{ flex:1, padding:0, borderBottomWidth:1, borderColor:Colors.borders.light }}>
90
+ <View style={{ padding:0, borderBottomWidth:1, borderColor:Colors.borders.light }}>
91
91
  <Button transparent style={{ flexDirection:'row', alignItems:'center', padding:10 }} onPress={() => {
92
92
  if(show_details){ return setShowMatchMarkets(show_match_markets.filter(smm => smm != `${data.event_type}:${data.event_id}:${data.item}`)) }
93
93
  return setShowMatchMarkets(show_match_markets.concat(`${data.event_type}:${data.event_id}:${data.item}`))
@@ -114,12 +114,12 @@ const CompetitionContestsForm = ({
114
114
  </View>
115
115
  <View transparent style={{ flexDirection:'row', alignItems:'center', padding:0 }}>
116
116
  {market.level != 'event' ?
117
- <View style={{ margin:5, justifyContent:'center', alignItems:'center' }}>
117
+ <View transparent style={{ margin:5, justifyContent:'center', alignItems:'center' }}>
118
118
  <Text theme='h2' size={14} color={Colors.text.action}>{market_matches.length}</Text>
119
119
  <Text theme='description' color={Colors.text.action} style={{ marginTop:3 }}>{market.level.toUpperCase()}{market_matches.length == 1 ? '':'S'}</Text>
120
120
  </View>
121
121
  :
122
- <View>
122
+ <View transparent>
123
123
  <Icons.ChevronIcon direction={show_details ? 'up' : 'down'} color={Colors.text.action} size={8} />
124
124
  </View>
125
125
  }
@@ -54,6 +54,9 @@ const CompetitionSettingsForm = ({ init_expanded, onFocusPosition, player, compe
54
54
 
55
55
  if(!competition || !draft_competition){ return <></> }
56
56
  const is_changed = JSON.stringify(competition) != JSON.stringify(draft_competition) ? true : false
57
+ const is_ticket_changed = draft_competition.buy_in.toString() != competition.buy_in.toString() ? true : false
58
+ const is_guar_changed = draft_competition.guaranteed_payout?.toString() != competition.guaranteed_payout?.toString() ? true : false
59
+ const is_max_tickets_changed = draft_competition.available_tickets.toString() != competition.available_tickets.toString() ? true : false
57
60
  return (
58
61
  <View float style={{ flexGrow:1, borderRadius:0 }}>
59
62
  <Button
@@ -154,7 +157,7 @@ const CompetitionSettingsForm = ({ init_expanded, onFocusPosition, player, compe
154
157
  </View>
155
158
  :<></>}
156
159
  </View>
157
- <View type='row' nativeID="buy_in" style={{ flexWrap:'wrap', padding:20, borderBottomWidth:1, borderColor:Colors.borders.light }}>
160
+ <View type='row' nativeID="buy_in" style={{ flexWrap:'wrap', padding:20, borderBottomWidth:1, borderColor:is_ticket_changed ? Colors.text.warning : Colors.borders.light }}>
158
161
  <View style={{ flex:1, minWidth:200 }}>
159
162
  <Text theme="h1">Ticket Price</Text>
160
163
  <Text style={{ marginTop:3 }} theme="description">Set the amount required to purchase a ticket to participate</Text>
@@ -163,11 +166,22 @@ const CompetitionSettingsForm = ({ init_expanded, onFocusPosition, player, compe
163
166
  style={{ flexGrow:1, textAlign:'center', minWidth:100, margin:5, borderColor:competition.buy_in ? Colors.text.success: Colors.text.warning }}
164
167
  onChangeText={(text) => setDraftCompetition({ ...draft_competition, buy_in: text })}
165
168
  placeholder="0"
169
+ onFocus={() => {
170
+ if(draft_competition.buy_in == 0){ setDraftCompetition({ ...draft_competition, buy_in: '' }) }
171
+ }}
166
172
  onFocusPosition={onFocusPosition}
167
173
  keyboardType="decimal-pad"
168
174
  editable={competition.competition_season_id ? false : true}
169
175
  value={draft_competition.buy_in.toString()}
170
176
  />
177
+ {is_ticket_changed ?
178
+ <Button
179
+ title='SAVE'
180
+ type='success'
181
+ style={{ margin:5, padding:15, flexGrow:1 }}
182
+ onPress={() => onCompetitionUpdate(draft_competition)}
183
+ />
184
+ :<></>}
171
185
  </View>
172
186
  {player?.role == 'admin' ?
173
187
  <View type='row' nativeID="buy_in" style={{ flexWrap:'wrap', padding:20, borderBottomWidth:1, borderColor:Colors.borders.light }}>
@@ -184,6 +198,14 @@ const CompetitionSettingsForm = ({ init_expanded, onFocusPosition, player, compe
184
198
  editable={competition.competition_season_id ? false : true}
185
199
  value={draft_competition.guaranteed_payout?.toString()}
186
200
  />
201
+ {is_guar_changed ?
202
+ <Button
203
+ title='SAVE'
204
+ type='success'
205
+ style={{ margin:5, padding:15, flexGrow:1 }}
206
+ onPress={() => onCompetitionUpdate(draft_competition)}
207
+ />
208
+ :<></>}
187
209
  </View>
188
210
  :<></>}
189
211
 
@@ -196,11 +218,22 @@ const CompetitionSettingsForm = ({ init_expanded, onFocusPosition, player, compe
196
218
  style={{ flexGrow:1, textAlign:'center', minWidth:100, margin:5, borderColor:parseInt(competition.available_tickets as string) > 0 ? Colors.text.success : Colors.text.warning }}
197
219
  onChangeText={(text) => setDraftCompetition({ ...draft_competition, available_tickets: text })}
198
220
  placeholder="100"
221
+ onFocus={() => {
222
+ if(draft_competition.available_tickets == 0){ setDraftCompetition({ ...draft_competition, available_tickets: '' }) }
223
+ }}
199
224
  onFocusPosition={onFocusPosition}
200
225
  keyboardType="decimal-pad"
201
226
  editable={competition.competition_season_id ? false : true}
202
227
  value={draft_competition.available_tickets.toString()}
203
228
  />
229
+ {is_max_tickets_changed ?
230
+ <Button
231
+ title='SAVE'
232
+ type='success'
233
+ style={{ margin:5, padding:15, flexGrow:1 }}
234
+ onPress={() => onCompetitionUpdate(draft_competition)}
235
+ />
236
+ :<></>}
204
237
  </View>
205
238
  </View>
206
239
  :<></>}