be-components 3.9.7 → 3.9.9

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 (177) hide show
  1. package/lib/commonjs/Checkout/index.js +12 -3
  2. package/lib/commonjs/Checkout/index.js.map +1 -1
  3. package/lib/commonjs/Competition/components/CompetitionInfoCard.js +9 -3
  4. package/lib/commonjs/Competition/components/CompetitionInfoCard.js.map +1 -1
  5. package/lib/commonjs/Competition/components/CompetitionLeaderboard.js +22 -9
  6. package/lib/commonjs/Competition/components/CompetitionLeaderboard.js.map +1 -1
  7. package/lib/commonjs/Competition/components/CompetitionPlay.js +8 -2
  8. package/lib/commonjs/Competition/components/CompetitionPlay.js.map +1 -1
  9. package/lib/commonjs/Competition/index.js +72 -14
  10. package/lib/commonjs/Competition/index.js.map +1 -1
  11. package/lib/commonjs/Components/Icons.js +203 -278
  12. package/lib/commonjs/Components/Icons.js.map +1 -1
  13. package/lib/commonjs/Components/Toggle.js +8 -2
  14. package/lib/commonjs/Components/Toggle.js.map +1 -1
  15. package/lib/commonjs/Squares/components/BoardStats.js +9 -3
  16. package/lib/commonjs/Squares/components/BoardStats.js.map +1 -1
  17. package/lib/commonjs/Squares/components/EventCard.js +8 -2
  18. package/lib/commonjs/Squares/components/EventCard.js.map +1 -1
  19. package/lib/commonjs/Squares/components/MySquaresCard.js +9 -3
  20. package/lib/commonjs/Squares/components/MySquaresCard.js.map +1 -1
  21. package/lib/commonjs/Squares/components/MyStatsCard.js +8 -2
  22. package/lib/commonjs/Squares/components/MyStatsCard.js.map +1 -1
  23. package/lib/commonjs/Squares/components/PrizeCard.js +10 -4
  24. package/lib/commonjs/Squares/components/PrizeCard.js.map +1 -1
  25. package/lib/commonjs/Squares/components/ResultsCard.js +9 -3
  26. package/lib/commonjs/Squares/components/ResultsCard.js.map +1 -1
  27. package/lib/commonjs/Squares/components/SquareOwners.js +8 -2
  28. package/lib/commonjs/Squares/components/SquareOwners.js.map +1 -1
  29. package/lib/commonjs/Squares/components/SquaresBoard.js +8 -2
  30. package/lib/commonjs/Squares/components/SquaresBoard.js.map +1 -1
  31. package/lib/commonjs/Squares/components/SquaresDetails.js +9 -3
  32. package/lib/commonjs/Squares/components/SquaresDetails.js.map +1 -1
  33. package/lib/commonjs/Squares/index.js +114 -2
  34. package/lib/commonjs/Squares/index.js.map +1 -1
  35. package/lib/module/Checkout/index.js +12 -3
  36. package/lib/module/Checkout/index.js.map +1 -1
  37. package/lib/module/Competition/components/CompetitionInfoCard.js +9 -3
  38. package/lib/module/Competition/components/CompetitionInfoCard.js.map +1 -1
  39. package/lib/module/Competition/components/CompetitionLeaderboard.js +22 -9
  40. package/lib/module/Competition/components/CompetitionLeaderboard.js.map +1 -1
  41. package/lib/module/Competition/components/CompetitionPlay.js +8 -2
  42. package/lib/module/Competition/components/CompetitionPlay.js.map +1 -1
  43. package/lib/module/Competition/index.js +73 -15
  44. package/lib/module/Competition/index.js.map +1 -1
  45. package/lib/module/Components/Icons.js +203 -278
  46. package/lib/module/Components/Icons.js.map +1 -1
  47. package/lib/module/Components/Toggle.js +8 -2
  48. package/lib/module/Components/Toggle.js.map +1 -1
  49. package/lib/module/Squares/components/BoardStats.js +9 -3
  50. package/lib/module/Squares/components/BoardStats.js.map +1 -1
  51. package/lib/module/Squares/components/EventCard.js +8 -2
  52. package/lib/module/Squares/components/EventCard.js.map +1 -1
  53. package/lib/module/Squares/components/MySquaresCard.js +9 -3
  54. package/lib/module/Squares/components/MySquaresCard.js.map +1 -1
  55. package/lib/module/Squares/components/MyStatsCard.js +8 -2
  56. package/lib/module/Squares/components/MyStatsCard.js.map +1 -1
  57. package/lib/module/Squares/components/PrizeCard.js +10 -4
  58. package/lib/module/Squares/components/PrizeCard.js.map +1 -1
  59. package/lib/module/Squares/components/ResultsCard.js +9 -3
  60. package/lib/module/Squares/components/ResultsCard.js.map +1 -1
  61. package/lib/module/Squares/components/SquareOwners.js +8 -2
  62. package/lib/module/Squares/components/SquareOwners.js.map +1 -1
  63. package/lib/module/Squares/components/SquaresBoard.js +8 -2
  64. package/lib/module/Squares/components/SquaresBoard.js.map +1 -1
  65. package/lib/module/Squares/components/SquaresDetails.js +9 -3
  66. package/lib/module/Squares/components/SquaresDetails.js.map +1 -1
  67. package/lib/module/Squares/index.js +115 -3
  68. package/lib/module/Squares/index.js.map +1 -1
  69. package/lib/typescript/lib/commonjs/Checkout/index.d.ts.map +1 -1
  70. package/lib/typescript/lib/commonjs/Competition/components/CompetitionInfoCard.d.ts +3 -1
  71. package/lib/typescript/lib/commonjs/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
  72. package/lib/typescript/lib/commonjs/Competition/components/CompetitionLeaderboard.d.ts +3 -1
  73. package/lib/typescript/lib/commonjs/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
  74. package/lib/typescript/lib/commonjs/Competition/components/CompetitionPlay.d.ts +3 -1
  75. package/lib/typescript/lib/commonjs/Competition/components/CompetitionPlay.d.ts.map +1 -1
  76. package/lib/typescript/lib/commonjs/Competition/index.d.ts.map +1 -1
  77. package/lib/typescript/lib/commonjs/Components/Icons.d.ts +7 -1
  78. package/lib/typescript/lib/commonjs/Components/Icons.d.ts.map +1 -1
  79. package/lib/typescript/lib/commonjs/Components/Toggle.d.ts +2 -1
  80. package/lib/typescript/lib/commonjs/Components/Toggle.d.ts.map +1 -1
  81. package/lib/typescript/lib/commonjs/Squares/components/BoardStats.d.ts +3 -1
  82. package/lib/typescript/lib/commonjs/Squares/components/BoardStats.d.ts.map +1 -1
  83. package/lib/typescript/lib/commonjs/Squares/components/EventCard.d.ts +3 -1
  84. package/lib/typescript/lib/commonjs/Squares/components/EventCard.d.ts.map +1 -1
  85. package/lib/typescript/lib/commonjs/Squares/components/MySquaresCard.d.ts +3 -1
  86. package/lib/typescript/lib/commonjs/Squares/components/MySquaresCard.d.ts.map +1 -1
  87. package/lib/typescript/lib/commonjs/Squares/components/MyStatsCard.d.ts +3 -1
  88. package/lib/typescript/lib/commonjs/Squares/components/MyStatsCard.d.ts.map +1 -1
  89. package/lib/typescript/lib/commonjs/Squares/components/PrizeCard.d.ts +3 -1
  90. package/lib/typescript/lib/commonjs/Squares/components/PrizeCard.d.ts.map +1 -1
  91. package/lib/typescript/lib/commonjs/Squares/components/ResultsCard.d.ts +3 -1
  92. package/lib/typescript/lib/commonjs/Squares/components/ResultsCard.d.ts.map +1 -1
  93. package/lib/typescript/lib/commonjs/Squares/components/SquareOwners.d.ts +3 -1
  94. package/lib/typescript/lib/commonjs/Squares/components/SquareOwners.d.ts.map +1 -1
  95. package/lib/typescript/lib/commonjs/Squares/components/SquaresDetails.d.ts +3 -1
  96. package/lib/typescript/lib/commonjs/Squares/components/SquaresDetails.d.ts.map +1 -1
  97. package/lib/typescript/lib/commonjs/Squares/index.d.ts.map +1 -1
  98. package/lib/typescript/lib/module/Checkout/index.d.ts.map +1 -1
  99. package/lib/typescript/lib/module/Competition/components/CompetitionInfoCard.d.ts +6 -2
  100. package/lib/typescript/lib/module/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
  101. package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts +6 -2
  102. package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
  103. package/lib/typescript/lib/module/Competition/components/CompetitionPlay.d.ts +6 -2
  104. package/lib/typescript/lib/module/Competition/components/CompetitionPlay.d.ts.map +1 -1
  105. package/lib/typescript/lib/module/Competition/index.d.ts.map +1 -1
  106. package/lib/typescript/lib/module/Components/Icons.d.ts +7 -1
  107. package/lib/typescript/lib/module/Components/Icons.d.ts.map +1 -1
  108. package/lib/typescript/lib/module/Components/Toggle.d.ts +2 -1
  109. package/lib/typescript/lib/module/Components/Toggle.d.ts.map +1 -1
  110. package/lib/typescript/lib/module/Squares/components/BoardStats.d.ts +6 -2
  111. package/lib/typescript/lib/module/Squares/components/BoardStats.d.ts.map +1 -1
  112. package/lib/typescript/lib/module/Squares/components/EventCard.d.ts +6 -2
  113. package/lib/typescript/lib/module/Squares/components/EventCard.d.ts.map +1 -1
  114. package/lib/typescript/lib/module/Squares/components/MySquaresCard.d.ts +6 -2
  115. package/lib/typescript/lib/module/Squares/components/MySquaresCard.d.ts.map +1 -1
  116. package/lib/typescript/lib/module/Squares/components/MyStatsCard.d.ts +6 -2
  117. package/lib/typescript/lib/module/Squares/components/MyStatsCard.d.ts.map +1 -1
  118. package/lib/typescript/lib/module/Squares/components/PrizeCard.d.ts +6 -2
  119. package/lib/typescript/lib/module/Squares/components/PrizeCard.d.ts.map +1 -1
  120. package/lib/typescript/lib/module/Squares/components/ResultsCard.d.ts +6 -2
  121. package/lib/typescript/lib/module/Squares/components/ResultsCard.d.ts.map +1 -1
  122. package/lib/typescript/lib/module/Squares/components/SquareOwners.d.ts +6 -2
  123. package/lib/typescript/lib/module/Squares/components/SquareOwners.d.ts.map +1 -1
  124. package/lib/typescript/lib/module/Squares/components/SquaresBoard.d.ts +6 -2
  125. package/lib/typescript/lib/module/Squares/components/SquaresBoard.d.ts.map +1 -1
  126. package/lib/typescript/lib/module/Squares/components/SquaresDetails.d.ts +6 -2
  127. package/lib/typescript/lib/module/Squares/components/SquaresDetails.d.ts.map +1 -1
  128. package/lib/typescript/lib/module/Squares/index.d.ts.map +1 -1
  129. package/lib/typescript/src/Checkout/index.d.ts.map +1 -1
  130. package/lib/typescript/src/Competition/components/CompetitionInfoCard.d.ts +3 -1
  131. package/lib/typescript/src/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
  132. package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts +3 -1
  133. package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
  134. package/lib/typescript/src/Competition/components/CompetitionPlay.d.ts +3 -1
  135. package/lib/typescript/src/Competition/components/CompetitionPlay.d.ts.map +1 -1
  136. package/lib/typescript/src/Competition/index.d.ts.map +1 -1
  137. package/lib/typescript/src/Components/Icons.d.ts +2 -1
  138. package/lib/typescript/src/Components/Icons.d.ts.map +1 -1
  139. package/lib/typescript/src/Components/Toggle.d.ts +3 -1
  140. package/lib/typescript/src/Components/Toggle.d.ts.map +1 -1
  141. package/lib/typescript/src/Squares/components/BoardStats.d.ts +3 -1
  142. package/lib/typescript/src/Squares/components/BoardStats.d.ts.map +1 -1
  143. package/lib/typescript/src/Squares/components/EventCard.d.ts +3 -1
  144. package/lib/typescript/src/Squares/components/EventCard.d.ts.map +1 -1
  145. package/lib/typescript/src/Squares/components/MySquaresCard.d.ts +3 -1
  146. package/lib/typescript/src/Squares/components/MySquaresCard.d.ts.map +1 -1
  147. package/lib/typescript/src/Squares/components/MyStatsCard.d.ts +3 -1
  148. package/lib/typescript/src/Squares/components/MyStatsCard.d.ts.map +1 -1
  149. package/lib/typescript/src/Squares/components/PrizeCard.d.ts +3 -1
  150. package/lib/typescript/src/Squares/components/PrizeCard.d.ts.map +1 -1
  151. package/lib/typescript/src/Squares/components/ResultsCard.d.ts +3 -1
  152. package/lib/typescript/src/Squares/components/ResultsCard.d.ts.map +1 -1
  153. package/lib/typescript/src/Squares/components/SquareOwners.d.ts +3 -1
  154. package/lib/typescript/src/Squares/components/SquareOwners.d.ts.map +1 -1
  155. package/lib/typescript/src/Squares/components/SquaresBoard.d.ts +3 -1
  156. package/lib/typescript/src/Squares/components/SquaresBoard.d.ts.map +1 -1
  157. package/lib/typescript/src/Squares/components/SquaresDetails.d.ts +3 -1
  158. package/lib/typescript/src/Squares/components/SquaresDetails.d.ts.map +1 -1
  159. package/lib/typescript/src/Squares/index.d.ts.map +1 -1
  160. package/package.json +1 -1
  161. package/src/Checkout/index.tsx +6 -1
  162. package/src/Competition/components/CompetitionInfoCard.tsx +9 -2
  163. package/src/Competition/components/CompetitionLeaderboard.tsx +16 -9
  164. package/src/Competition/components/CompetitionPlay.tsx +7 -1
  165. package/src/Competition/index.tsx +44 -12
  166. package/src/Components/Icons.tsx +161 -152
  167. package/src/Components/Toggle.tsx +10 -3
  168. package/src/Squares/components/BoardStats.tsx +8 -4
  169. package/src/Squares/components/EventCard.tsx +7 -2
  170. package/src/Squares/components/MySquaresCard.tsx +8 -4
  171. package/src/Squares/components/MyStatsCard.tsx +7 -3
  172. package/src/Squares/components/PrizeCard.tsx +10 -4
  173. package/src/Squares/components/ResultsCard.tsx +9 -3
  174. package/src/Squares/components/SquareOwners.tsx +7 -3
  175. package/src/Squares/components/SquaresBoard.tsx +8 -1
  176. package/src/Squares/components/SquaresDetails.tsx +8 -3
  177. package/src/Squares/index.tsx +68 -3
@@ -3,9 +3,11 @@ import type { EventProps, PublicPlayerProps, SquarePrizeProps, SquareProps } fro
3
3
  type PrizeCardProps = {
4
4
  square_prizes: SquarePrizeProps[];
5
5
  event?: EventProps;
6
+ hidden?: boolean;
7
+ disable_collapse?: boolean;
6
8
  squares: SquareProps[];
7
9
  players: PublicPlayerProps[];
8
10
  };
9
- declare const PrizeCard: ({ event, square_prizes, players, squares }: PrizeCardProps) => React.JSX.Element;
11
+ declare const PrizeCard: ({ hidden, disable_collapse, event, square_prizes, players, squares }: PrizeCardProps) => React.JSX.Element;
10
12
  export default PrizeCard;
11
13
  //# sourceMappingURL=PrizeCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PrizeCard.d.ts","sourceRoot":"","sources":["../../../../../src/Squares/components/PrizeCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAIhG,KAAK,cAAc,GAAG;IAClB,aAAa,EAAC,gBAAgB,EAAE,CAAA;IAChC,KAAK,CAAC,EAAC,UAAU,CAAC;IAClB,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,OAAO,EAAC,iBAAiB,EAAE,CAAA;CAC9B,CAAA;AAED,QAAA,MAAM,SAAS,+CAA+C,cAAc,sBA+E3E,CAAA;AAED,eAAe,SAAS,CAAA"}
1
+ {"version":3,"file":"PrizeCard.d.ts","sourceRoot":"","sources":["../../../../../src/Squares/components/PrizeCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAIhG,KAAK,cAAc,GAAG;IAClB,aAAa,EAAC,gBAAgB,EAAE,CAAA;IAChC,KAAK,CAAC,EAAC,UAAU,CAAC;IAClB,MAAM,CAAC,EAAC,OAAO,CAAC;IAChB,gBAAgB,CAAC,EAAC,OAAO,CAAC;IAC1B,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,OAAO,EAAC,iBAAiB,EAAE,CAAA;CAC9B,CAAA;AAED,QAAA,MAAM,SAAS,yEAAyE,cAAc,sBAmFrG,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -3,10 +3,12 @@ import React from "react";
3
3
  type ResultCardProps = {
4
4
  square_results: SquareResultProps[];
5
5
  squares: SquareProps[];
6
+ hidden?: boolean;
7
+ disable_collapse?: boolean;
6
8
  home_abbr?: string;
7
9
  away_abbr?: string;
8
10
  onPlayerSelect: (player: PublicPlayerProps) => void;
9
11
  };
10
- declare const ResultsCard: ({ square_results, squares, home_abbr, away_abbr, onPlayerSelect }: ResultCardProps) => React.JSX.Element;
12
+ declare const ResultsCard: ({ hidden, disable_collapse, square_results, squares, home_abbr, away_abbr, onPlayerSelect }: ResultCardProps) => React.JSX.Element;
11
13
  export default ResultsCard;
12
14
  //# sourceMappingURL=ResultsCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ResultsCard.d.ts","sourceRoot":"","sources":["../../../../../src/Squares/components/ResultsCard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AACpF,OAAO,KAAmB,MAAM,OAAO,CAAA;AAIvC,KAAK,eAAe,GAAG;IACnB,cAAc,EAAC,iBAAiB,EAAE,CAAC;IACnC,OAAO,EAAC,WAAW,EAAE,CAAC;IACtB,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,cAAc,EAAC,CAAC,MAAM,EAAC,iBAAiB,KAAK,IAAI,CAAA;CACpD,CAAA;AAED,QAAA,MAAM,WAAW,sEAAsE,eAAe,sBAmDrG,CAAA;AAED,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"ResultsCard.d.ts","sourceRoot":"","sources":["../../../../../src/Squares/components/ResultsCard.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AACpF,OAAO,KAAmB,MAAM,OAAO,CAAA;AAIvC,KAAK,eAAe,GAAG;IACnB,cAAc,EAAC,iBAAiB,EAAE,CAAC;IACnC,OAAO,EAAC,WAAW,EAAE,CAAC;IACtB,MAAM,CAAC,EAAC,OAAO,CAAC;IAChB,gBAAgB,CAAC,EAAC,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,cAAc,EAAC,CAAC,MAAM,EAAC,iBAAiB,KAAK,IAAI,CAAA;CACpD,CAAA;AAED,QAAA,MAAM,WAAW,gGAAgG,eAAe,sBAuD/H,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -3,8 +3,10 @@ import React from 'react';
3
3
  type SquareOwnersCardProps = {
4
4
  player_squares: PlayerSquareProps[];
5
5
  players: PublicPlayerProps[];
6
+ hidden?: boolean;
7
+ disable_collapse?: boolean;
6
8
  onPlayerSelect: (player: PublicPlayerProps) => void;
7
9
  };
8
- declare const SquareOwnersCard: ({ player_squares, players, onPlayerSelect }: SquareOwnersCardProps) => React.JSX.Element;
10
+ declare const SquareOwnersCard: ({ hidden, disable_collapse, player_squares, players, onPlayerSelect }: SquareOwnersCardProps) => React.JSX.Element;
9
11
  export default SquareOwnersCard;
10
12
  //# sourceMappingURL=SquareOwners.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SquareOwners.d.ts","sourceRoot":"","sources":["../../../../../src/Squares/components/SquareOwners.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGxE,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,KAAK,qBAAqB,GAAG;IACzB,cAAc,EAAC,iBAAiB,EAAE,CAAC;IACnC,OAAO,EAAC,iBAAiB,EAAE,CAAC;IAC5B,cAAc,EAAC,CAAC,MAAM,EAAC,iBAAiB,KAAK,IAAI,CAAA;CACpD,CAAA;AACD,QAAA,MAAM,gBAAgB,gDAAgD,qBAAqB,sBAqD1F,CAAA;AAED,eAAe,gBAAgB,CAAA"}
1
+ {"version":3,"file":"SquareOwners.d.ts","sourceRoot":"","sources":["../../../../../src/Squares/components/SquareOwners.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGxE,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,KAAK,qBAAqB,GAAG;IACzB,cAAc,EAAC,iBAAiB,EAAE,CAAC;IACnC,OAAO,EAAC,iBAAiB,EAAE,CAAC;IAC5B,MAAM,CAAC,EAAC,OAAO,CAAC;IAChB,gBAAgB,CAAC,EAAC,OAAO,CAAC;IAC1B,cAAc,EAAC,CAAC,MAAM,EAAC,iBAAiB,KAAK,IAAI,CAAA;CACpD,CAAA;AACD,QAAA,MAAM,gBAAgB,0EAA0E,qBAAqB,sBAuDpH,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -3,6 +3,8 @@ import React from "react";
3
3
  type SquaresBoardProps = {
4
4
  squares_competition: SquaresCompetitionProps;
5
5
  squares: SquareProps[];
6
+ hidden?: boolean;
7
+ disable_collapse?: boolean;
6
8
  event?: EventProps;
7
9
  onRefreshCompetition: () => void;
8
10
  onSquareBid: (square: SquareProps, action: 'add' | 'remove') => void;
@@ -15,6 +17,6 @@ type SquaresBoardProps = {
15
17
  square_bids: PlayerSquareProps[];
16
18
  draft_square_offers: SquareOfferProps[];
17
19
  };
18
- declare const _default: React.MemoExoticComponent<({ player_id, event, square_bids, draft_square_offers, squares_competition, player_square_history, square_offers, squares, player_squares, onRefreshCompetition, onSquareBid, onSquareOffer }: SquaresBoardProps) => React.JSX.Element>;
20
+ declare const _default: React.MemoExoticComponent<({ hidden, disable_collapse, player_id, event, square_bids, draft_square_offers, squares_competition, player_square_history, square_offers, squares, player_squares, onRefreshCompetition, onSquareBid, onSquareOffer }: SquaresBoardProps) => React.JSX.Element>;
19
21
  export default _default;
20
22
  //# sourceMappingURL=SquaresBoard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SquaresBoard.d.ts","sourceRoot":"","sources":["../../../../../src/Squares/components/SquaresBoard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,WAAW,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAK3I,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,KAAK,iBAAiB,GAAG;IACrB,mBAAmB,EAAC,uBAAuB,CAAC;IAC5C,OAAO,EAAC,WAAW,EAAE,CAAC;IACtB,KAAK,CAAC,EAAC,UAAU,CAAC;IAClB,oBAAoB,EAAC,MAAM,IAAI,CAAC;IAChC,WAAW,EAAC,CAAC,MAAM,EAAC,WAAW,EAAE,MAAM,EAAC,KAAK,GAAC,QAAQ,KAAK,IAAI,CAAC;IAChE,aAAa,EAAC,CAAC,MAAM,EAAC,WAAW,EAAE,MAAM,EAAC,KAAK,GAAC,QAAQ,KAAK,IAAI,CAAC;IAClE,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,aAAa,EAAC,gBAAgB,EAAE,CAAC;IACjC,cAAc,EAAC,iBAAiB,EAAE,CAAC;IACnC,qBAAqB,EAAC,iBAAiB,EAAE,CAAC;IAC1C,cAAc,EAAC,iBAAiB,EAAE,CAAC;IACnC,WAAW,EAAC,iBAAiB,EAAE,CAAC;IAChC,mBAAmB,EAAC,gBAAgB,EAAE,CAAA;CAEzC,CAAA;iPAGC,iBAAiB;AAyMnB,wBAGE"}
1
+ {"version":3,"file":"SquaresBoard.d.ts","sourceRoot":"","sources":["../../../../../src/Squares/components/SquaresBoard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,WAAW,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAK3I,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,KAAK,iBAAiB,GAAG;IACrB,mBAAmB,EAAC,uBAAuB,CAAC;IAC5C,OAAO,EAAC,WAAW,EAAE,CAAC;IACtB,MAAM,CAAC,EAAC,OAAO,CAAC;IAChB,gBAAgB,CAAC,EAAC,OAAO,CAAC;IAC1B,KAAK,CAAC,EAAC,UAAU,CAAC;IAClB,oBAAoB,EAAC,MAAM,IAAI,CAAC;IAChC,WAAW,EAAC,CAAC,MAAM,EAAC,WAAW,EAAE,MAAM,EAAC,KAAK,GAAC,QAAQ,KAAK,IAAI,CAAC;IAChE,aAAa,EAAC,CAAC,MAAM,EAAC,WAAW,EAAE,MAAM,EAAC,KAAK,GAAC,QAAQ,KAAK,IAAI,CAAC;IAClE,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,aAAa,EAAC,gBAAgB,EAAE,CAAC;IACjC,cAAc,EAAC,iBAAiB,EAAE,CAAC;IACnC,qBAAqB,EAAC,iBAAiB,EAAE,CAAC;IAC1C,cAAc,EAAC,iBAAiB,EAAE,CAAC;IACnC,WAAW,EAAC,iBAAiB,EAAE,CAAC;IAChC,mBAAmB,EAAC,gBAAgB,EAAE,CAAA;CAEzC,CAAA;2QAIC,iBAAiB;AA6MnB,wBAGE"}
@@ -3,8 +3,10 @@ import React from "react";
3
3
  type SquaresDetailsProps = {
4
4
  squares_competition: SquaresCompetitionProps;
5
5
  squares_type?: SquaresTypeProps;
6
+ hidden?: boolean;
7
+ disable_collapse?: boolean;
6
8
  squares_payout_type?: SquaresPayoutProps;
7
9
  };
8
- declare const SquaresDetails: ({ squares_competition, squares_type, squares_payout_type }: SquaresDetailsProps) => React.JSX.Element;
10
+ declare const SquaresDetails: ({ hidden, disable_collapse, squares_competition, squares_type, squares_payout_type }: SquaresDetailsProps) => React.JSX.Element;
9
11
  export default SquaresDetails;
10
12
  //# sourceMappingURL=SquaresDetails.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SquaresDetails.d.ts","sourceRoot":"","sources":["../../../../../src/Squares/components/SquaresDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAGhG,OAAO,KAAmB,MAAM,OAAO,CAAA;AAIvC,KAAK,mBAAmB,GAAG;IACvB,mBAAmB,EAAC,uBAAuB,CAAC;IAC5C,YAAY,CAAC,EAAC,gBAAgB,CAAC;IAC/B,mBAAmB,CAAC,EAAC,kBAAkB,CAAA;CAC1C,CAAA;AAED,QAAA,MAAM,cAAc,+DAA+D,mBAAmB,sBAuCrG,CAAA;AAED,eAAe,cAAc,CAAA"}
1
+ {"version":3,"file":"SquaresDetails.d.ts","sourceRoot":"","sources":["../../../../../src/Squares/components/SquaresDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAGhG,OAAO,KAAmB,MAAM,OAAO,CAAA;AAIvC,KAAK,mBAAmB,GAAG;IACvB,mBAAmB,EAAC,uBAAuB,CAAC;IAC5C,YAAY,CAAC,EAAC,gBAAgB,CAAC;IAC/B,MAAM,CAAC,EAAC,OAAO,CAAC;IAChB,gBAAgB,CAAC,EAAC,OAAO,CAAC;IAC1B,mBAAmB,CAAC,EAAC,kBAAkB,CAAA;CAC1C,CAAA;AAED,QAAA,MAAM,cAAc,yFAAyF,mBAAmB,sBA0C/H,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Squares/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,OAAO,KAAK,EAAE,YAAY,EAA+G,iBAAiB,EAAsE,uBAAuB,EAAwC,MAAM,UAAU,CAAA;AAoB/S,KAAK,kBAAkB,GAAG;IACtB,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,WAAW,EAAC,MAAM,CAAC;IACnB,UAAU,EAAC,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE;QAAE,GAAG,EAAC,MAAM,CAAC;QAAC,MAAM,EAAC,MAAM,CAAA;KAAE,CAAC;IACvC,qBAAqB,EAAE,CAAC,gBAAgB,CAAC,EAAC,MAAM,KAAK,IAAI,CAAC;IAC1D,kBAAkB,EAAC,CAAC,mBAAmB,EAAC,uBAAuB,KAAK,IAAI,CAAC;IACzE,cAAc,EAAC,CAAC,MAAM,EAAC,iBAAiB,KAAK,IAAI,CAAC;IAClD,OAAO,EAAC,CAAC,EAAE,EAAC,YAAY,KAAK,IAAI,CAAA;CACpC,CAAA;AAID,QAAA,MAAM,aAAa,8GAA8G,kBAAkB,sBA8flJ,CAAA;AAED,eAAe,aAAa,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Squares/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,OAAO,KAAK,EAAE,YAAY,EAA+G,iBAAiB,EAAsE,uBAAuB,EAAwC,MAAM,UAAU,CAAA;AAoB/S,KAAK,kBAAkB,GAAG;IACtB,SAAS,CAAC,EAAC,MAAM,CAAC;IAClB,WAAW,EAAC,MAAM,CAAC;IACnB,UAAU,EAAC,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE;QAAE,GAAG,EAAC,MAAM,CAAC;QAAC,MAAM,EAAC,MAAM,CAAA;KAAE,CAAC;IACvC,qBAAqB,EAAE,CAAC,gBAAgB,CAAC,EAAC,MAAM,KAAK,IAAI,CAAC;IAC1D,kBAAkB,EAAC,CAAC,mBAAmB,EAAC,uBAAuB,KAAK,IAAI,CAAC;IACzE,cAAc,EAAC,CAAC,MAAM,EAAC,iBAAiB,KAAK,IAAI,CAAC;IAClD,OAAO,EAAC,CAAC,EAAE,EAAC,YAAY,KAAK,IAAI,CAAA;CACpC,CAAA;AAID,QAAA,MAAM,aAAa,8GAA8G,kBAAkB,sBA+jBlJ,CAAA;AAED,eAAe,aAAa,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "be-components",
3
- "version": "3.9.7",
3
+ "version": "3.9.9",
4
4
  "description": "Components for BettorEdge Apps",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -142,10 +142,15 @@ const Checkout = ({ item_order, height, account_id, onCancel, onCompleteOrder, o
142
142
  ip_item_order: resp.item_order,
143
143
  ip_transaction: resp.transaction
144
144
  });
145
- if(resp.transaction.status == 'redirect'){ setRedirectVisible(true) }
145
+ setRedirectVisible(true)
146
146
  } catch (e) {
147
147
  console.log(e)
148
148
  setError('Unable to complete your order. Please try again or reach out to support if the issue persists')
149
+ setCheckout({
150
+ ip_item_order: { ...draft_order, status: 'failed' },
151
+ ip_transaction: { ...draft_transaction, status: 'failed' }
152
+ })
153
+ setRedirectVisible(true);
149
154
  setLoading(false);
150
155
  }
151
156
 
@@ -7,15 +7,17 @@ import { Button, Text, View } from '../../Components/Themed';
7
7
  import { useColors } from '../../constants/useColors';
8
8
 
9
9
  type CompetitionInfoCardProps = {
10
+ hidden?:boolean,
11
+ disable_collapse?:boolean,
10
12
  competition:CompetitionProps,
11
13
  competition_type:CompetitionTypeProps,
12
14
  competition_result_type:CompetitionResultTypeProps,
13
15
  competition_payouts:CompetitionPayoutTypeProps[],
14
16
  player?:MyPlayerProps,
15
17
  }
16
- const CompetitionInfoCard = ({ competition, competition_type, competition_result_type, competition_payouts }:CompetitionInfoCardProps) => {
18
+ const CompetitionInfoCard = ({ hidden, disable_collapse, competition, competition_type, competition_result_type, competition_payouts }:CompetitionInfoCardProps) => {
17
19
  const C = useColors();
18
- const [ expanded, setExpanded ] = useState(false);
20
+ const [ expanded, setExpanded ] = useState(true);
19
21
 
20
22
  const cl = competition.market_type == 'FOR_MONEY' ? '$' : 'E'
21
23
 
@@ -36,9 +38,12 @@ const CompetitionInfoCard = ({ competition, competition_type, competition_result
36
38
  )
37
39
  }
38
40
 
41
+ if(hidden){ return <></> }
42
+
39
43
  return (
40
44
  <View float nativeID="competition_details">
41
45
  <Button
46
+ disabled={disable_collapse}
42
47
  style={{ flexDirection:'row', alignItems:'center', borderBottomWidth:expanded?1:0, borderColor:C.borders.light }}
43
48
  transparent
44
49
  onPress={() => setExpanded(!expanded)}>
@@ -50,7 +55,9 @@ const CompetitionInfoCard = ({ competition, competition_type, competition_result
50
55
  <View transparent style={{ margin:10 }}>
51
56
  <Text size={16} color={C.text.success} weight='bold'>{cl}{potential_winnings.toFixed(2)}</Text>
52
57
  </View>
58
+ {!disable_collapse ?
53
59
  <Icons.ChevronIcon direction={expanded?'up':'down'} color={C.text.h1} size={8} />
60
+ :<></>}
54
61
  </Button>
55
62
  {expanded ?
56
63
  <View transparent style={{ padding:20 }}>
@@ -11,6 +11,8 @@ import { useColors } from "../../constants/useColors"
11
11
  type CompetitionLeaderboardProps = {
12
12
  competition:CompetitionProps,
13
13
  competition_type:CompetitionTypeProps,
14
+ hidden?:boolean,
15
+ disable_collapse?:boolean,
14
16
  viewer_id?:string,
15
17
  height: number,
16
18
  width:number,
@@ -20,9 +22,9 @@ type CompetitionLeaderboardProps = {
20
22
  onLeaderSelect:(player:PublicPlayerProps) => void
21
23
  }
22
24
 
23
- const CompetitionLeaderboard = ({ competition, competition_type, viewer_id, view_mode, onSeeFull, onClose, onLeaderSelect }:CompetitionLeaderboardProps) => {
25
+ const CompetitionLeaderboard = ({ hidden, disable_collapse, competition, competition_type, viewer_id, view_mode, onSeeFull, onClose, onLeaderSelect }:CompetitionLeaderboardProps) => {
24
26
  const C = useColors();
25
- const [ expanded, setExpanded ] = useState(false);
27
+ const [ expanded, setExpanded ] = useState(true);
26
28
  const [ data, setData ] = useState<{
27
29
  loading:boolean,
28
30
  competition_results:CompetitionResultProps[],
@@ -111,10 +113,13 @@ const CompetitionLeaderboard = ({ competition, competition_type, viewer_id, view
111
113
  )
112
114
  }
113
115
 
116
+ if(hidden){ return <></> }
117
+
114
118
  return (
115
- <View float nativeID="leaderboard">
119
+ <View float nativeID="leaderboard" style={{flex:1}}>
116
120
  {view_mode == 'short' ?
117
121
  <Button
122
+ disabled={disable_collapse}
118
123
  style={{ flexDirection:'row', alignItems:'center', borderBottomWidth:expanded?1:0, borderColor:C.borders.light }}
119
124
  transparent
120
125
  onPress={() => setExpanded(!expanded)}>
@@ -123,12 +128,14 @@ const CompetitionLeaderboard = ({ competition, competition_type, viewer_id, view
123
128
  <Text theme="h1">COMPETITION LEADERBOARD</Text>
124
129
  <Text style={{ marginTop: 4 }} theme="description">Leaderboard showing current standings</Text>
125
130
  </View>
131
+ {!disable_collapse ?
126
132
  <Icons.ChevronIcon direction={expanded?'up':'down'} color={C.text.h1} size={8} />
133
+ :<></>}
127
134
  </Button>
128
135
 
129
136
  :<></>}
130
137
  {expanded || view_mode == 'full' ?
131
- <View transparent type='body'>
138
+ <View transparent type='body' style={{ flex:1 }}>
132
139
  {viewer_record && viewer_result && viewer ?
133
140
  <View transparent style={{ padding:10, marginBottom:10, borderTopRightRadius:8, borderTopLeftRadius:8, borderBottomWidth:1, borderColor:C.borders.light }}>
134
141
  <Text size={14} theme="h1">MY RESULTS</Text>
@@ -159,11 +166,11 @@ const CompetitionLeaderboard = ({ competition, competition_type, viewer_id, view
159
166
  </Button>
160
167
  </View>
161
168
  :<></>}
162
- <View transparent style={{ padding:10 }}>
169
+ <View transparent style={{ padding:10, flexGrow:1 }}>
163
170
  {loading ?
164
171
  <ActivityIndicator style={{ alignSelf:'center', padding:10 }} size='large' color={C.text.h1} />
165
172
  :<></>}
166
- <Text size={14} theme="h1" style={{ marginBottom:10 }}>MY RESULTS</Text>
173
+ <Text size={14} theme="h1" style={{ marginBottom:10 }}>COMPETITION LEADERS</Text>
167
174
  <FlatList
168
175
  data={results}
169
176
  renderItem={renderResults}
@@ -179,7 +186,9 @@ const CompetitionLeaderboard = ({ competition, competition_type, viewer_id, view
179
186
  onPress={() => onSeeFull()}
180
187
  />
181
188
  :<></>}
182
- {onClose ?
189
+ </View>
190
+ :<></>}
191
+ {onClose ?
183
192
  <View style={{ padding:10, ...view_styles.float }}>
184
193
  <View style={{ padding:10, flexDirection:'row', alignItems:'center', justifyContent:'space-between' }}>
185
194
  {offset > 0 ?
@@ -206,8 +215,6 @@ const CompetitionLeaderboard = ({ competition, competition_type, viewer_id, view
206
215
  />
207
216
  </View>
208
217
  :<></>}
209
- </View>
210
- :<></>}
211
218
 
212
219
  </View>
213
220
  )
@@ -26,12 +26,14 @@ type CompetitionPlayProps = {
26
26
  leagues:LeagueProps[],
27
27
  athletes:AthleteProps[],
28
28
  events:EventProps[],
29
+ disable_collapse?:boolean,
29
30
  tournaments:TournamentProps[],
30
31
  matches:MatchProps[],
31
32
  markets:MarketProps[],
32
33
  player_picks:PlayerPickProps[],
33
34
  onEvent?:(event:BEEventProps) => void,
34
35
  height:number,
36
+ hidden?:boolean,
35
37
  width:number,
36
38
  pick_loading?:string,
37
39
  source?:string,
@@ -42,7 +44,7 @@ type CompetitionPlayProps = {
42
44
  back_allowed?:boolean
43
45
  onChangeCompetition?: (competition_id:string) => void
44
46
  }
45
- const CompetitionPlay = ( { authenticated_competition_player, pick_loading, competition, competition_type, onPick, competition_matches, competition_match_markets, leagues, athletes, events, tournaments, matches, markets, player_id, player_picks }:CompetitionPlayProps ) => {
47
+ const CompetitionPlay = ( { hidden, disable_collapse, authenticated_competition_player, pick_loading, competition, competition_type, onPick, competition_matches, competition_match_markets, leagues, athletes, events, tournaments, matches, markets, player_id, player_picks }:CompetitionPlayProps ) => {
46
48
  const C = useColors();
47
49
  //const [ complete_loaded, setCompleteLoaded ] = useState(false);
48
50
  const [ contest_view, setContestView ] = useState<'upcoming'|'closed'>('upcoming')
@@ -251,10 +253,12 @@ const CompetitionPlay = ( { authenticated_competition_player, pick_loading, comp
251
253
  }
252
254
 
253
255
 
256
+ if(hidden){ return <></> }
254
257
 
255
258
  return (
256
259
  <View float nativeID="competition_play">
257
260
  <Button
261
+ disabled={disable_collapse}
258
262
  style={{ flexDirection:'row', alignItems:'center', borderBottomWidth:expanded?1:0, borderColor:C.borders.light }}
259
263
  transparent
260
264
  onPress={() => setExpanded(!expanded)}>
@@ -266,7 +270,9 @@ const CompetitionPlay = ( { authenticated_competition_player, pick_loading, comp
266
270
  <View transparent style={{ margin:10 }}>
267
271
  <Text size={16} color={picks_completed?C.text.success:C.text.warning} weight='bold'>{player_picks.filter(pp => pp.status != 'deleted').length}</Text>
268
272
  </View>
273
+ {!disable_collapse ?
269
274
  <Icons.ChevronIcon direction={expanded?'up':'down'} color={C.text.h1} size={8} />
275
+ :<></>}
270
276
  </Button>
271
277
  {expanded ?
272
278
  <View transparent style={{ ...view_styles.section_body, padding:10 }}>
@@ -2,8 +2,7 @@ import React, { useEffect, useState } from 'react';
2
2
  import { CompetitionApi, CompetitionHelpers, CompetitionMatchApi, CompetitionPlayerApi, PlayerPicksApi } from './api';
3
3
  import { Image, ActivityIndicator, Modal, FlatList, KeyboardAvoidingView, Platform } from 'react-native';
4
4
  import { view_styles } from '../constants/styles';
5
- import { ConfirmationModal, Icons } from '../Components';
6
- import Colors from '../constants/colors';
5
+ import { ConfirmationModal, Icons, Toggle } from '../Components';
7
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';
8
7
  import CompetitionInfoCard from './components/CompetitionInfoCard';
9
8
  import CompetitionLeaderboard from './components/CompetitionLeaderboard';
@@ -30,10 +29,11 @@ type CompetitionModuleProps = {
30
29
  }
31
30
 
32
31
 
33
- const competition_sections = ['header','join','details','leaderboard','play']
32
+ const competition_sections = ['header','join','test','details','leaderboard','play']
34
33
 
35
34
  const CompetitionModule = ({ competition_id, player_id, confirm_padding, onManageCompetition, onFocusPosition, onRequestAuthentication, onShareCompetition, onClose, onViewCompetitionSeason }:CompetitionModuleProps) => {
36
35
  const C = useColors();
36
+ const [ active_tab, setActiveTab ] = useState('play');
37
37
  const [ viewing_leader, setViewingLeader ] = useState<PublicPlayerProps|undefined>();
38
38
  const [ show_full_leaderboard, setShowFullLeaderboard ] = useState(false);
39
39
  const [ module_size, setModuleSize ] = useState({ width:0, height:0 });
@@ -52,7 +52,7 @@ const CompetitionModule = ({ competition_id, player_id, confirm_padding, onManag
52
52
  const { loading, player_picks, player, player_balance } = my_data;
53
53
 
54
54
  const [ pick_loading, setPickLoading ] = useState<undefined|string>(undefined)
55
-
55
+ const Colors = useColors();
56
56
 
57
57
  const [ competition_data, setCompetitionData ] = useState<{
58
58
  loaded:boolean,
@@ -325,6 +325,8 @@ const CompetitionModule = ({ competition_id, player_id, confirm_padding, onManag
325
325
  }
326
326
  }
327
327
 
328
+
329
+
328
330
  const renderSections = (data:{ item:string, index:number }) => {
329
331
  if(!competition){ return <></> }
330
332
  switch(data.item){
@@ -395,10 +397,34 @@ const CompetitionModule = ({ competition_id, player_id, confirm_padding, onManag
395
397
  }
396
398
  </View>
397
399
  )
400
+ case 'test':
401
+ return (
402
+ <View style={{padding:10}}>
403
+ <Toggle
404
+ options={[
405
+ { key: 'details', label: 'Details', icon: <Icons.MenuIcon size={18} color={active_tab=='details'?Colors.text.white:Colors.text.h1}/> },
406
+ { key: 'play', label: 'Play', icon: <Icons.PickEmIcon size={18} color={active_tab=='play'?Colors.text.white:Colors.text.h1}/> },
407
+ { key: 'leaderboard', label: 'Leaders', icon: <Icons.LeaderboardIcon size={18} color={active_tab=='leaderboard'?Colors.text.white:Colors.text.h1}/> }
408
+ ]}
409
+ title_renderer={(option:any) => {
410
+ return (
411
+ <View transparent style={{ flexDirection:'row', alignItems:'center', justifyContent:'center' }}>
412
+ {option.icon}
413
+ <Text style={{ marginLeft:10 }} theme='h1' color={active_tab==option.key?Colors.text.white:Colors.text.h1}>{option.label}</Text>
414
+ </View>
415
+ )
416
+ }}
417
+ onSelectOption={(key) => setActiveTab(key)}
418
+ selected_option={active_tab}
419
+ />
420
+ </View>
421
+ )
398
422
  case 'details':
399
423
  if(!competition||!competition_type||!competition_result_type){ return <></> }
400
424
  return (
401
425
  <CompetitionInfoCard
426
+ hidden={active_tab == 'details' ? false : true}
427
+ disable_collapse
402
428
  competition={competition}
403
429
  competition_type={competition_type}
404
430
  competition_result_type={competition_result_type}
@@ -409,6 +435,8 @@ const CompetitionModule = ({ competition_id, player_id, confirm_padding, onManag
409
435
  if(!competition_type){ return <></> }
410
436
  return (
411
437
  <CompetitionLeaderboard
438
+ hidden={active_tab == 'leaderboard' ? false : true}
439
+ disable_collapse
412
440
  competition={competition}
413
441
  width={module_size.width}
414
442
  competition_type={competition_type}
@@ -423,7 +451,9 @@ const CompetitionModule = ({ competition_id, player_id, confirm_padding, onManag
423
451
  if(!competition || !competition_type){ return <></> }
424
452
  return (
425
453
  <CompetitionPlay
454
+ hidden={active_tab == 'play' ? false : true}
426
455
  competition={competition}
456
+ disable_collapse
427
457
  competition_type={competition_type}
428
458
  competition_matches={competition_matches}
429
459
  competition_match_markets={competition_match_markets}
@@ -451,7 +481,7 @@ const CompetitionModule = ({ competition_id, player_id, confirm_padding, onManag
451
481
  if(!competition || !competition_type || !competition_result_type){
452
482
  return (
453
483
  <View style={{ flex:1 }}>
454
- <ActivityIndicator style={{ padding:20, alignSelf:'center' }} size='large' color={Colors.brand.midnight} />
484
+ <ActivityIndicator style={{ padding:20, alignSelf:'center' }} size='large' color={Colors.text.h1} />
455
485
  </View>
456
486
  )
457
487
  }
@@ -487,7 +517,7 @@ const CompetitionModule = ({ competition_id, player_id, confirm_padding, onManag
487
517
  </View>
488
518
  :<></>}
489
519
  {show_full_leaderboard ?
490
- <View style={{ position:'absolute', bottom:0, left:0, right:0, top:0 }}>
520
+ <View type='blur' style={{ position:'absolute', bottom:0, left:0, right:0, top:0, paddingTop:20, paddingBottom:confirm_padding }}>
491
521
  <CompetitionLeaderboard
492
522
  competition={competition}
493
523
  competition_type={competition_type}
@@ -507,6 +537,8 @@ const CompetitionModule = ({ competition_id, player_id, confirm_padding, onManag
507
537
  title={nav_out.title}
508
538
  padding_bottom={confirm_padding}
509
539
  confirm_title={'Edit My Picks'}
540
+ cancel_title='Close'
541
+ onCancel={() => setNavOut({ ...nav_out, visible:false })}
510
542
  description={nav_out.body}
511
543
  image={competition.image?.url}
512
544
  onConfirm={() => setNavOut({ ...nav_out, visible:false })}
@@ -588,9 +620,9 @@ const CompetitionModule = ({ competition_id, player_id, confirm_padding, onManag
588
620
  </View>
589
621
  </Modal>
590
622
  {competition.status == 'inactive' ?
591
- <View style={{ position:'absolute', top:0, left:0, right:0, bottom:0, backgroundColor:Colors.shades.black_faded, justifyContent:'center', alignItems:'center' }}>
592
- <View style={{ ...view_styles.section, width: '70%', backgroundColor:Colors.shades.white }}>
593
- <View style={{ ...view_styles.section_header, justifyContent:'center', alignItems:'center', backgroundColor:Colors.shades.shade100 }}>
623
+ <View type='blur' style={{ position:'absolute', top:0, left:0, right:0, bottom:0, justifyContent:'center', alignItems:'center' }}>
624
+ <View style={{ ...view_styles.section, width: '70%' }}>
625
+ <View style={{ ...view_styles.section_header, justifyContent:'center', alignItems:'center' }}>
594
626
  <Text theme='h1'>Competition Has Been Deleted</Text>
595
627
  </View>
596
628
  <View style={{ ...view_styles.section_body, justifyContent:'center', alignItems:'center' }}>
@@ -613,9 +645,9 @@ const CompetitionModule = ({ competition_id, player_id, confirm_padding, onManag
613
645
  </View>
614
646
  :<></>}
615
647
  {competition.status == 'paused' ?
616
- <View style={{ position:'absolute', top:0, left:0, right:0, bottom:0, backgroundColor:Colors.shades.black_faded, justifyContent:'center', alignItems:'center' }}>
617
- <View style={{ ...view_styles.section, width: '70%', backgroundColor:Colors.shades.white }}>
618
- <View style={{ ...view_styles.section_header, justifyContent:'center', alignItems:'center', backgroundColor:Colors.shades.shade100 }}>
648
+ <View type='blur' style={{ position:'absolute', top:0, left:0, right:0, bottom:0, justifyContent:'center', alignItems:'center' }}>
649
+ <View style={{ ...view_styles.section, width: '70%' }}>
650
+ <View style={{ ...view_styles.section_header, justifyContent:'center', alignItems:'center' }}>
619
651
  <Text theme='h1'>Competition Is Paused</Text>
620
652
  </View>
621
653
  <View style={{ ...view_styles.section_body, justifyContent:'center', alignItems:'center' }}>