be-components 3.3.5 → 3.3.7
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/Authenticator/Components/AuthStrategyIdentifier.js +21 -28
- package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/LoginForm.js +93 -109
- package/lib/commonjs/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/StrategyForm.js +246 -342
- package/lib/commonjs/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/commonjs/Authenticator/index.js +22 -32
- package/lib/commonjs/Authenticator/index.js.map +1 -1
- package/lib/commonjs/Competition/components/AthleteMarketCard.js +39 -26
- package/lib/commonjs/Competition/components/AthleteMarketCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionInfoCard.js +115 -175
- package/lib/commonjs/Competition/components/CompetitionInfoCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionLeaderboard.js +97 -95
- package/lib/commonjs/Competition/components/CompetitionLeaderboard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionPlay.js +99 -113
- package/lib/commonjs/Competition/components/CompetitionPlay.js.map +1 -1
- package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js +56 -75
- package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js.map +1 -1
- package/lib/commonjs/Competition/components/LeaderPicks.js +4 -4
- package/lib/commonjs/Competition/components/LeaderPicks.js.map +1 -1
- package/lib/commonjs/Competition/components/MarketsCard.js +22 -12
- package/lib/commonjs/Competition/components/MarketsCard.js.map +1 -1
- package/lib/commonjs/Competition/components/TeamEventCard.js +46 -37
- package/lib/commonjs/Competition/components/TeamEventCard.js.map +1 -1
- package/lib/commonjs/Competition/components/WagerPickForm.js +73 -85
- package/lib/commonjs/Competition/components/WagerPickForm.js.map +1 -1
- package/lib/commonjs/Competition/index.js +236 -216
- package/lib/commonjs/Competition/index.js.map +1 -1
- package/lib/commonjs/Components/Button.js +49 -6
- package/lib/commonjs/Components/Button.js.map +1 -1
- package/lib/commonjs/Components/ConfirmationModal.js +29 -29
- package/lib/commonjs/Components/ConfirmationModal.js.map +1 -1
- package/lib/commonjs/Components/Themed.js +281 -0
- package/lib/commonjs/Components/Themed.js.map +1 -0
- package/lib/commonjs/MarketComponents/components/AthleteMarket/index.js +43 -52
- package/lib/commonjs/MarketComponents/components/AthleteMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.js +50 -61
- package/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/EventMarket/index.js +48 -54
- package/lib/commonjs/MarketComponents/components/EventMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/MarketButton/api/index.js +2 -3
- package/lib/commonjs/MarketComponents/components/MarketButton/api/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/MarketButton/index.js +22 -22
- package/lib/commonjs/MarketComponents/components/MarketButton/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/MatchMarket/index.js +65 -63
- package/lib/commonjs/MarketComponents/components/MatchMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/index.js +239 -220
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.js +48 -57
- package/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TournamentMarket/index.js +203 -131
- package/lib/commonjs/MarketComponents/components/TournamentMarket/index.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js +49 -55
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicStatus.js +55 -88
- package/lib/commonjs/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js +94 -121
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/DOBManager.js +42 -46
- package/lib/commonjs/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/EmailManager.js +66 -86
- package/lib/commonjs/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js +60 -78
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js +62 -81
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js +19 -27
- package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js +31 -48
- package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js +69 -92
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js +63 -65
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/VouchCard.js +106 -132
- package/lib/commonjs/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/commonjs/ProfileManager/index.js +29 -31
- package/lib/commonjs/ProfileManager/index.js.map +1 -1
- package/lib/commonjs/Share/api/index.js +13 -6
- package/lib/commonjs/Share/api/index.js.map +1 -1
- package/lib/commonjs/Share/index.js +11 -11
- package/lib/commonjs/Share/index.js.map +1 -1
- package/lib/commonjs/Squares/components/BidForm.js +142 -120
- package/lib/commonjs/Squares/components/BidForm.js.map +1 -1
- package/lib/commonjs/Squares/components/BidToggle.js +10 -11
- package/lib/commonjs/Squares/components/BidToggle.js.map +1 -1
- package/lib/commonjs/Squares/components/BoardStats.js +63 -47
- package/lib/commonjs/Squares/components/BoardStats.js.map +1 -1
- package/lib/commonjs/Squares/components/EventCard.js +48 -29
- package/lib/commonjs/Squares/components/EventCard.js.map +1 -1
- package/lib/commonjs/Squares/components/MySquaresCard.js +48 -31
- package/lib/commonjs/Squares/components/MySquaresCard.js.map +1 -1
- package/lib/commonjs/Squares/components/MyStatsCard.js +155 -121
- package/lib/commonjs/Squares/components/MyStatsCard.js.map +1 -1
- package/lib/commonjs/Squares/components/OfferForm.js +32 -32
- package/lib/commonjs/Squares/components/OfferForm.js.map +1 -1
- package/lib/commonjs/Squares/components/PrizeCard.js +44 -35
- package/lib/commonjs/Squares/components/PrizeCard.js.map +1 -1
- package/lib/commonjs/Squares/components/ResultsCard.js +37 -24
- package/lib/commonjs/Squares/components/ResultsCard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquareOffersCard.js +20 -13
- package/lib/commonjs/Squares/components/SquareOffersCard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquareOwners.js +44 -38
- package/lib/commonjs/Squares/components/SquareOwners.js.map +1 -1
- package/lib/commonjs/Squares/components/SquaresBoard.js +77 -59
- package/lib/commonjs/Squares/components/SquaresBoard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquaresDetails.js +46 -36
- package/lib/commonjs/Squares/components/SquaresDetails.js.map +1 -1
- package/lib/commonjs/Squares/index.js +207 -150
- package/lib/commonjs/Squares/index.js.map +1 -1
- package/lib/commonjs/constants/colors.js +18 -3
- package/lib/commonjs/constants/colors.js.map +1 -1
- package/lib/commonjs/constants/styles.js +72 -2
- package/lib/commonjs/constants/styles.js.map +1 -1
- package/lib/commonjs/constants/useColors.js +153 -0
- package/lib/commonjs/constants/useColors.js.map +1 -0
- package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js +19 -26
- package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
- package/lib/module/Authenticator/Components/LoginForm.js +54 -70
- package/lib/module/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/module/Authenticator/Components/StrategyForm.js +227 -322
- package/lib/module/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/module/Authenticator/index.js +16 -26
- package/lib/module/Authenticator/index.js.map +1 -1
- package/lib/module/Competition/components/AthleteMarketCard.js +28 -15
- package/lib/module/Competition/components/AthleteMarketCard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionInfoCard.js +82 -141
- package/lib/module/Competition/components/CompetitionInfoCard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionLeaderboard.js +68 -66
- package/lib/module/Competition/components/CompetitionLeaderboard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionPlay.js +65 -79
- package/lib/module/Competition/components/CompetitionPlay.js.map +1 -1
- package/lib/module/Competition/components/EnterCompetitionPrompt.js +35 -54
- package/lib/module/Competition/components/EnterCompetitionPrompt.js.map +1 -1
- package/lib/module/Competition/components/LeaderPicks.js +4 -4
- package/lib/module/Competition/components/LeaderPicks.js.map +1 -1
- package/lib/module/Competition/components/MarketsCard.js +15 -5
- package/lib/module/Competition/components/MarketsCard.js.map +1 -1
- package/lib/module/Competition/components/TeamEventCard.js +24 -15
- package/lib/module/Competition/components/TeamEventCard.js.map +1 -1
- package/lib/module/Competition/components/WagerPickForm.js +44 -56
- package/lib/module/Competition/components/WagerPickForm.js.map +1 -1
- package/lib/module/Competition/index.js +215 -195
- package/lib/module/Competition/index.js.map +1 -1
- package/lib/module/Components/Button.js +49 -6
- package/lib/module/Components/Button.js.map +1 -1
- package/lib/module/Components/ConfirmationModal.js +21 -21
- package/lib/module/Components/ConfirmationModal.js.map +1 -1
- package/lib/module/Components/Themed.js +269 -0
- package/lib/module/Components/Themed.js.map +1 -0
- package/lib/module/MarketComponents/components/AthleteMarket/index.js +29 -38
- package/lib/module/MarketComponents/components/AthleteMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/AthleteTournamentMarket/index.js +36 -47
- package/lib/module/MarketComponents/components/AthleteTournamentMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/EventMarket/index.js +35 -41
- package/lib/module/MarketComponents/components/EventMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/MarketButton/api/index.js +2 -3
- package/lib/module/MarketComponents/components/MarketButton/api/index.js.map +1 -1
- package/lib/module/MarketComponents/components/MarketButton/index.js +17 -17
- package/lib/module/MarketComponents/components/MarketButton/index.js.map +1 -1
- package/lib/module/MarketComponents/components/MatchMarket/index.js +50 -48
- package/lib/module/MarketComponents/components/MatchMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/TeamEventMarket/index.js +176 -157
- package/lib/module/MarketComponents/components/TeamEventMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/TeamTournamentMarket/index.js +34 -43
- package/lib/module/MarketComponents/components/TeamTournamentMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/TournamentMarket/index.js +172 -100
- package/lib/module/MarketComponents/components/TournamentMarket/index.js.map +1 -1
- package/lib/module/ProfileManager/Components/BasicInfoManager.js +28 -34
- package/lib/module/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/BasicStatus.js +28 -61
- package/lib/module/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/module/ProfileManager/Components/CodeRedeem.js +55 -81
- package/lib/module/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/module/ProfileManager/Components/DOBManager.js +27 -31
- package/lib/module/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/EmailManager.js +42 -61
- package/lib/module/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PasswordManager.js +36 -54
- package/lib/module/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PhoneManager.js +37 -56
- package/lib/module/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfilePicManager.js +10 -18
- package/lib/module/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWelcome.js +21 -38
- package/lib/module/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWizard.js +42 -65
- package/lib/module/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/module/ProfileManager/Components/SettingsManager.js +45 -47
- package/lib/module/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/VouchCard.js +69 -95
- package/lib/module/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/module/ProfileManager/index.js +18 -20
- package/lib/module/ProfileManager/index.js.map +1 -1
- package/lib/module/Share/api/index.js +11 -6
- package/lib/module/Share/api/index.js.map +1 -1
- package/lib/module/Share/index.js +13 -13
- package/lib/module/Share/index.js.map +1 -1
- package/lib/module/Squares/components/BidForm.js +138 -116
- package/lib/module/Squares/components/BidForm.js.map +1 -1
- package/lib/module/Squares/components/BidToggle.js +6 -7
- package/lib/module/Squares/components/BidToggle.js.map +1 -1
- package/lib/module/Squares/components/BoardStats.js +44 -27
- package/lib/module/Squares/components/BoardStats.js.map +1 -1
- package/lib/module/Squares/components/EventCard.js +34 -15
- package/lib/module/Squares/components/EventCard.js.map +1 -1
- package/lib/module/Squares/components/MySquaresCard.js +36 -19
- package/lib/module/Squares/components/MySquaresCard.js.map +1 -1
- package/lib/module/Squares/components/MyStatsCard.js +98 -64
- package/lib/module/Squares/components/MyStatsCard.js.map +1 -1
- package/lib/module/Squares/components/OfferForm.js +12 -12
- package/lib/module/Squares/components/OfferForm.js.map +1 -1
- package/lib/module/Squares/components/PrizeCard.js +25 -16
- package/lib/module/Squares/components/PrizeCard.js.map +1 -1
- package/lib/module/Squares/components/ResultsCard.js +27 -14
- package/lib/module/Squares/components/ResultsCard.js.map +1 -1
- package/lib/module/Squares/components/SquareOffersCard.js +16 -9
- package/lib/module/Squares/components/SquareOffersCard.js.map +1 -1
- package/lib/module/Squares/components/SquareOwners.js +35 -28
- package/lib/module/Squares/components/SquareOwners.js.map +1 -1
- package/lib/module/Squares/components/SquaresBoard.js +52 -34
- package/lib/module/Squares/components/SquaresBoard.js.map +1 -1
- package/lib/module/Squares/components/SquaresDetails.js +30 -19
- package/lib/module/Squares/components/SquaresDetails.js.map +1 -1
- package/lib/module/Squares/index.js +206 -149
- package/lib/module/Squares/index.js.map +1 -1
- package/lib/module/constants/colors.js +18 -3
- package/lib/module/constants/colors.js.map +1 -1
- package/lib/module/constants/styles.js +71 -1
- package/lib/module/constants/styles.js.map +1 -1
- package/lib/module/constants/useColors.js +145 -0
- package/lib/module/constants/useColors.js.map +1 -0
- package/lib/typescript/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/LoginForm.d.ts +2 -2
- package/lib/typescript/lib/commonjs/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/StrategyForm.d.ts +2 -4
- package/lib/typescript/lib/commonjs/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/index.d.ts +2 -2
- package/lib/typescript/lib/commonjs/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/AthleteMarketCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionLeaderboard.d.ts +1 -3
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionPlay.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/MarketsCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/TeamEventCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/WagerPickForm.d.ts +1 -2
- package/lib/typescript/lib/commonjs/Competition/components/WagerPickForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Button.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Components/Button.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/ConfirmationModal.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Themed.d.ts +6 -0
- package/lib/typescript/lib/commonjs/Components/Themed.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.d.ts +2 -2
- package/lib/typescript/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/EventMarket/index.d.ts +2 -2
- package/lib/typescript/lib/commonjs/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MarketButton/api/index.d.ts +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MarketButton/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MatchMarket/index.d.ts +5 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.d.ts +2 -2
- package/lib/typescript/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/TournamentMarket/index.d.ts +3 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWelcome.d.ts +1 -2
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/index.d.ts +1 -2
- package/lib/typescript/lib/commonjs/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Share/api/index.d.ts +1 -1
- package/lib/typescript/lib/commonjs/Share/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/BidForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/BidToggle.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/BoardStats.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/EventCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/MySquaresCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/MyStatsCard.d.ts +1 -2
- package/lib/typescript/lib/commonjs/Squares/components/MyStatsCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/PrizeCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/ResultsCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquareOffersCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquareOwners.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquaresBoard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquaresDetails.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/constants/colors.d.ts +9 -0
- package/lib/typescript/lib/commonjs/constants/styles.d.ts +95 -8
- package/lib/typescript/lib/commonjs/constants/useColors.d.ts +58 -0
- package/lib/typescript/lib/commonjs/constants/useColors.d.ts.map +1 -0
- package/lib/typescript/lib/module/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts +3 -4
- package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts +3 -6
- package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/index.d.ts +4 -4
- package/lib/typescript/lib/module/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/AthleteMarketCard.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/AthleteMarketCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionInfoCard.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts +2 -5
- package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionPlay.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/CompetitionPlay.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/EnterCompetitionPrompt.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/MarketsCard.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/MarketsCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/TeamEventCard.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/TeamEventCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/WagerPickForm.d.ts +2 -4
- package/lib/typescript/lib/module/Competition/components/WagerPickForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/index.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Button.d.ts +2 -1
- package/lib/typescript/lib/module/Components/Button.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/ConfirmationModal.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Spring.d.ts +1 -1
- package/lib/typescript/lib/module/Components/Themed.d.ts +9 -0
- package/lib/typescript/lib/module/Components/Themed.d.ts.map +1 -0
- package/lib/typescript/lib/module/MarketComponents/components/AthleteMarket/index.d.ts +3 -4
- package/lib/typescript/lib/module/MarketComponents/components/AthleteMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/AthleteTournamentMarket/index.d.ts +3 -4
- package/lib/typescript/lib/module/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/EventMarket/index.d.ts +3 -4
- package/lib/typescript/lib/module/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/MarketButton/api/index.d.ts +2 -2
- package/lib/typescript/lib/module/MarketComponents/components/MarketButton/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/MarketButton/index.d.ts +1 -2
- package/lib/typescript/lib/module/MarketComponents/components/MarketButton/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/MatchMarket/index.d.ts +6 -3
- package/lib/typescript/lib/module/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/TeamEventMarket/index.d.ts +3 -3
- package/lib/typescript/lib/module/MarketComponents/components/TeamEventMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/TeamTournamentMarket/index.d.ts +3 -4
- package/lib/typescript/lib/module/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/TournamentMarket/index.d.ts +4 -3
- package/lib/typescript/lib/module/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/BasicInfoManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/BasicStatus.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/CodeRedeem.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/DOBManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/EmailManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/PasswordManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/PhoneManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/ProfilePicManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWelcome.d.ts +2 -4
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWizard.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/SettingsManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts +1 -4
- package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/index.d.ts +2 -4
- package/lib/typescript/lib/module/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Share/api/index.d.ts +1 -1
- package/lib/typescript/lib/module/Share/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Share/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/BidForm.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/BidForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/BidToggle.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/BidToggle.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/BoardStats.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/BoardStats.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/EventCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/EventCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/MySquaresCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/MySquaresCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/MyStatsCard.d.ts +2 -4
- package/lib/typescript/lib/module/Squares/components/MyStatsCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/OfferForm.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/OfferForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/PrizeCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/PrizeCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/ResultsCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/ResultsCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquareOffersCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquareOffersCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquareOwners.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquareOwners.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquaresBoard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquaresBoard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquaresDetails.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquaresDetails.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/index.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/constants/colors.d.ts +9 -0
- package/lib/typescript/lib/module/constants/styles.d.ts +95 -8
- package/lib/typescript/lib/module/constants/useColors.d.ts +57 -0
- package/lib/typescript/lib/module/constants/useColors.d.ts.map +1 -0
- package/lib/typescript/src/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts +2 -2
- package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts +2 -3
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/index.d.ts +2 -2
- package/lib/typescript/src/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/AthleteMarketCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts +1 -1
- package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionPlay.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/LeaderPicks.d.ts +1 -1
- package/lib/typescript/src/Competition/components/LeaderPicks.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/MarketsCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/TeamEventCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/WagerPickForm.d.ts +1 -1
- package/lib/typescript/src/Competition/components/WagerPickForm.d.ts.map +1 -1
- package/lib/typescript/src/Competition/index.d.ts.map +1 -1
- package/lib/typescript/src/Components/Button.d.ts +2 -1
- package/lib/typescript/src/Components/Button.d.ts.map +1 -1
- package/lib/typescript/src/Components/ConfirmationModal.d.ts.map +1 -1
- package/lib/typescript/src/Components/Themed.d.ts +38 -0
- package/lib/typescript/src/Components/Themed.d.ts.map +1 -0
- package/lib/typescript/src/MarketComponents/components/AthleteMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/AthleteMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/AthleteTournamentMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/EventMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/MarketButton/api/index.d.ts +2 -2
- package/lib/typescript/src/MarketComponents/components/MarketButton/api/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/MarketButton/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/MatchMarket/index.d.ts +5 -1
- package/lib/typescript/src/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TeamEventMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/TeamEventMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TeamTournamentMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TournamentMarket/index.d.ts +3 -1
- package/lib/typescript/src/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/index.d.ts +18 -7
- package/lib/typescript/src/MarketComponents/index.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfileWelcome.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/index.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/src/Share/api/index.d.ts +1 -1
- package/lib/typescript/src/Share/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Share/index.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/BidForm.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/BidToggle.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/BoardStats.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/EventCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/MySquaresCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/MyStatsCard.d.ts +1 -1
- package/lib/typescript/src/Squares/components/MyStatsCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/OfferForm.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/PrizeCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/ResultsCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquareOffersCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquareOwners.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquaresBoard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquaresDetails.d.ts.map +1 -1
- package/lib/typescript/src/Squares/index.d.ts.map +1 -1
- package/lib/typescript/src/constants/colors.d.ts +9 -0
- package/lib/typescript/src/constants/colors.d.ts.map +1 -1
- package/lib/typescript/src/constants/styles.d.ts +55 -1
- package/lib/typescript/src/constants/styles.d.ts.map +1 -1
- package/lib/typescript/src/constants/useColors.d.ts +57 -0
- package/lib/typescript/src/constants/useColors.d.ts.map +1 -0
- package/package.json +2 -1
- package/src/Authenticator/Components/AuthStrategyIdentifier.tsx +40 -40
- package/src/Authenticator/Components/LoginForm.tsx +50 -54
- package/src/Authenticator/Components/StrategyForm.tsx +135 -147
- package/src/Authenticator/index.tsx +16 -18
- package/src/Competition/components/AthleteMarketCard.tsx +19 -17
- package/src/Competition/components/CompetitionInfoCard.tsx +48 -138
- package/src/Competition/components/CompetitionLeaderboard.tsx +65 -57
- package/src/Competition/components/CompetitionPlay.tsx +55 -48
- package/src/Competition/components/EnterCompetitionPrompt.tsx +30 -39
- package/src/Competition/components/LeaderPicks.tsx +5 -5
- package/src/Competition/components/MarketsCard.tsx +14 -10
- package/src/Competition/components/TeamEventCard.tsx +24 -23
- package/src/Competition/components/WagerPickForm.tsx +35 -41
- package/src/Competition/index.tsx +162 -125
- package/src/Components/Button.tsx +50 -6
- package/src/Components/ConfirmationModal.tsx +13 -21
- package/src/Components/Themed.tsx +233 -0
- package/src/MarketComponents/components/AthleteMarket/index.tsx +21 -26
- package/src/MarketComponents/components/AthleteTournamentMarket/index.tsx +24 -32
- package/src/MarketComponents/components/EventMarket/index.tsx +25 -33
- package/src/MarketComponents/components/MarketButton/api/index.ts +2 -3
- package/src/MarketComponents/components/MarketButton/index.tsx +16 -15
- package/src/MarketComponents/components/MatchMarket/index.tsx +54 -57
- package/src/MarketComponents/components/TeamEventMarket/index.tsx +160 -139
- package/src/MarketComponents/components/TeamTournamentMarket/index.tsx +24 -30
- package/src/MarketComponents/components/TournamentMarket/index.tsx +117 -107
- package/src/ProfileManager/Components/BasicInfoManager.tsx +26 -29
- package/src/ProfileManager/Components/BasicStatus.tsx +29 -36
- package/src/ProfileManager/Components/CodeRedeem.tsx +50 -60
- package/src/ProfileManager/Components/DOBManager.tsx +25 -30
- package/src/ProfileManager/Components/EmailManager.tsx +37 -45
- package/src/ProfileManager/Components/PasswordManager.tsx +36 -40
- package/src/ProfileManager/Components/PhoneManager.tsx +36 -43
- package/src/ProfileManager/Components/ProfilePicManager.tsx +10 -16
- package/src/ProfileManager/Components/ProfileWelcome.tsx +19 -25
- package/src/ProfileManager/Components/ProfileWizard.tsx +42 -46
- package/src/ProfileManager/Components/SettingsManager.tsx +41 -45
- package/src/ProfileManager/Components/VouchCard.tsx +50 -59
- package/src/ProfileManager/index.tsx +16 -13
- package/src/Share/api/index.ts +9 -3
- package/src/Share/index.tsx +13 -12
- package/src/Squares/components/BidForm.tsx +85 -62
- package/src/Squares/components/BidToggle.tsx +8 -9
- package/src/Squares/components/BoardStats.tsx +28 -28
- package/src/Squares/components/EventCard.tsx +33 -31
- package/src/Squares/components/MySquaresCard.tsx +24 -23
- package/src/Squares/components/MyStatsCard.tsx +66 -68
- package/src/Squares/components/OfferForm.tsx +15 -15
- package/src/Squares/components/PrizeCard.tsx +21 -18
- package/src/Squares/components/ResultsCard.tsx +21 -18
- package/src/Squares/components/SquareOffersCard.tsx +12 -10
- package/src/Squares/components/SquareOwners.tsx +24 -23
- package/src/Squares/components/SquaresBoard.tsx +39 -42
- package/src/Squares/components/SquaresDetails.tsx +25 -24
- package/src/Squares/index.tsx +196 -144
- package/src/constants/colors.ts +55 -47
- package/src/constants/styles.ts +37 -1
- package/src/constants/useColors.tsx +131 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FlatList
|
|
2
|
+
import { FlatList } from "react-native"
|
|
3
3
|
import type { AthleteProps, BEEventProps, CompetitionMatchMarketProps, CompetitionMatchProps, CompetitionPlayerProps, CompetitionProps, CompetitionTypeProps, LeagueProps, MarketProps, PlayerPickProps } from "../../types";
|
|
4
4
|
import Colors from '../../constants/colors';
|
|
5
5
|
import { useEffect, useState } from "react"
|
|
@@ -10,8 +10,10 @@ import type { EventProps, MatchProps, TournamentProps } from "../../types";
|
|
|
10
10
|
import moment from "moment-mini";
|
|
11
11
|
import { view_styles } from "../../constants/styles";
|
|
12
12
|
import {LinearGradient} from "expo-linear-gradient";
|
|
13
|
-
import { Icons
|
|
13
|
+
import { Icons } from "../../Components";
|
|
14
14
|
import LinearDiagnal from "../../Components/LinearDiagnal";
|
|
15
|
+
import { Button, Text, View } from '../../Components/Themed';
|
|
16
|
+
import { useColors } from '../../constants/useColors';
|
|
15
17
|
|
|
16
18
|
type CompetitionPlayProps = {
|
|
17
19
|
player_id?:string,
|
|
@@ -41,6 +43,7 @@ type CompetitionPlayProps = {
|
|
|
41
43
|
onChangeCompetition?: (competition_id:string) => void
|
|
42
44
|
}
|
|
43
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 ) => {
|
|
46
|
+
const C = useColors();
|
|
44
47
|
//const [ complete_loaded, setCompleteLoaded ] = useState(false);
|
|
45
48
|
const [ contest_view, setContestView ] = useState<'upcoming'|'closed'>('upcoming')
|
|
46
49
|
//const [ show_completed, setShowCompleted ] = useState(false);
|
|
@@ -85,7 +88,7 @@ const CompetitionPlay = ( { authenticated_competition_player, pick_loading, comp
|
|
|
85
88
|
const isLoading = pick_loading == data.item.competition_match_id ? true : false
|
|
86
89
|
if(match_markets.length != 2){ return <></> }
|
|
87
90
|
return (
|
|
88
|
-
<View style={{ minWidth:150,
|
|
91
|
+
<View float transparent style={{ minWidth:150, margin:5, flex:1 }}>
|
|
89
92
|
<AthleteMarketCard
|
|
90
93
|
event={event}
|
|
91
94
|
athlete={athlete}
|
|
@@ -111,7 +114,7 @@ const CompetitionPlay = ( { authenticated_competition_player, pick_loading, comp
|
|
|
111
114
|
const event_picks = player_picks.filter(pp => pp.competition_match_id == data.item.competition_match_id);
|
|
112
115
|
const isLoading = pick_loading == data.item.competition_match_id ? true : false
|
|
113
116
|
return (
|
|
114
|
-
<View style={{
|
|
117
|
+
<View transparent style={{ margin:5 }}>
|
|
115
118
|
<TeamEventCard
|
|
116
119
|
event={event}
|
|
117
120
|
markets={markets}
|
|
@@ -137,7 +140,7 @@ const CompetitionPlay = ( { authenticated_competition_player, pick_loading, comp
|
|
|
137
140
|
return (
|
|
138
141
|
<View>
|
|
139
142
|
<LinearDiagnal label_size={12} label={market.description} left_color={Colors.brand.midnight} right_color={Colors.brand.midnightTopGradient}/>
|
|
140
|
-
<View style={{ flexDirection:'row', flexWrap:'wrap',
|
|
143
|
+
<View style={{ flexDirection:'row', flexWrap:'wrap', paddingTop:10, paddingBottom:10 }}>
|
|
141
144
|
{athlete_non_primary_matches.map((cm,i) => {
|
|
142
145
|
return renderAthleteEvents({ item: cm, index:i })
|
|
143
146
|
})}
|
|
@@ -215,13 +218,13 @@ const CompetitionPlay = ( { authenticated_competition_player, pick_loading, comp
|
|
|
215
218
|
const non_primary_markets = [ ... new Set(competition_matches.filter(cm => cm.event_type == 'team' && cm.event_id == data.item && cm.market_id_override).map(cm => cm.market_id_override ?? ''))]
|
|
216
219
|
const expanded = expanded_markets.includes(data.item) ? true : false
|
|
217
220
|
return (
|
|
218
|
-
<
|
|
219
|
-
<View style={{ padding:10, flexDirection:'row', borderBottomWidth:1, borderColor:Colors.shades.shade600 }}>
|
|
221
|
+
<View float style={{ margin:5, borderRadius:8 }}>
|
|
222
|
+
<View transparent type='header' style={{ padding:10, flexDirection:'row', borderBottomWidth:1, borderColor:Colors.shades.shade600 }}>
|
|
220
223
|
{league ?
|
|
221
|
-
<Text size={14}
|
|
224
|
+
<Text size={14} theme='h1'>{league.league_name}: </Text>
|
|
222
225
|
:<></>}
|
|
223
|
-
<Text style={{ flex:1 }}
|
|
224
|
-
<Text size={14}
|
|
226
|
+
<Text style={{ flex:1 }} theme='h2'>{event.event_title}</Text>
|
|
227
|
+
<Text size={14} theme='description'>{event.time_detail == 'scheduled' ? moment(event.scheduled_datetime).format('MM/DD @ hh:mm a'): event.time_detail}</Text>
|
|
225
228
|
</View>
|
|
226
229
|
|
|
227
230
|
<LinearDiagnal label_size={12} label="Primary Markets" left_color={Colors.brand.midnight} right_color={Colors.brand.midnightTopGradient}/>
|
|
@@ -229,43 +232,47 @@ const CompetitionPlay = ( { authenticated_competition_player, pick_loading, comp
|
|
|
229
232
|
return renderEvents({ item: cm, index: i })
|
|
230
233
|
})}
|
|
231
234
|
{non_primary_markets.length > 0 ?
|
|
232
|
-
<View style={{ borderBottomRightRadius:8, borderBottomLeftRadius:8 }}>
|
|
235
|
+
<View transparent style={{ borderBottomRightRadius:8, borderBottomLeftRadius:8 }}>
|
|
233
236
|
{expanded ?
|
|
234
|
-
<View>
|
|
237
|
+
<View transparent>
|
|
235
238
|
{non_primary_markets.map((id, i) => {
|
|
236
239
|
return renderNonPrimaryMarkets({ item:id, index:i, event_id: data.item, event_type: 'team' })
|
|
237
240
|
})}
|
|
238
241
|
</View>
|
|
239
242
|
:<></>}
|
|
240
|
-
<
|
|
241
|
-
<Text style={{ flex:1 }}
|
|
242
|
-
<Icons.ChevronIcon direction={expanded?'up':'down'} color={
|
|
243
|
-
</
|
|
243
|
+
<Button transparent style={{ flexDirection:'row', alignItems:'center', padding:15, borderTopWidth:1, borderColor:Colors.shades.shade600 }} onPress={() => expanded ? setExpandedMarkets(expanded_markets.filter(m => m != data.item)): setExpandedMarkets(expanded_markets.concat(data.item))}>
|
|
244
|
+
<Text style={{ flex:1 }} theme='h2'>{expanded?'Hide Markets':`${non_primary_markets.length} More Markets` }</Text>
|
|
245
|
+
<Icons.ChevronIcon direction={expanded?'up':'down'} color={C.text.h1} size={8}/>
|
|
246
|
+
</Button>
|
|
244
247
|
</View>
|
|
245
248
|
:<></>}
|
|
246
|
-
</
|
|
249
|
+
</View>
|
|
247
250
|
)
|
|
248
251
|
}
|
|
249
252
|
|
|
250
253
|
|
|
251
254
|
|
|
252
255
|
return (
|
|
253
|
-
<View
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
<
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
256
|
+
<View float nativeID="competition_play">
|
|
257
|
+
<Button
|
|
258
|
+
style={{ flexDirection:'row', alignItems:'center', borderBottomWidth:expanded?1:0, borderColor:C.borders.light }}
|
|
259
|
+
transparent
|
|
260
|
+
onPress={() => setExpanded(!expanded)}>
|
|
261
|
+
<Icons.SettingsIcon size={18} color={C.text.h1} />
|
|
262
|
+
<View transparent style={{ flex:1, marginLeft:10 }}>
|
|
263
|
+
<Text theme="h1">MANAGE MY {competition_type.type == 'pick' ? 'PICKS' : 'WAGERS'}</Text>
|
|
264
|
+
<Text style={{ marginTop: 4 }} theme="description">Make {competition_type.type == 'pick' ? 'Picks' : 'Wagers'} from the available contests.</Text>
|
|
265
|
+
</View>
|
|
266
|
+
<View transparent style={{ margin:10 }}>
|
|
267
|
+
<Text size={16} color={picks_completed?C.text.success:C.text.warning} weight='bold'>{player_picks.filter(pp => pp.status != 'deleted').length}</Text>
|
|
268
|
+
</View>
|
|
269
|
+
<Icons.ChevronIcon direction={expanded?'up':'down'} color={C.text.h1} size={8} />
|
|
270
|
+
</Button>
|
|
265
271
|
{expanded ?
|
|
266
|
-
<View style={{ ...view_styles.section_body, padding:
|
|
267
|
-
<View style={{ flexDirection:'row', backgroundColor:Colors.shades.white, margin:5, marginTop:15, borderRadius:22, borderWidth:4, borderColor:Colors.shades.shade100 }}>
|
|
268
|
-
<
|
|
272
|
+
<View transparent style={{ ...view_styles.section_body, padding:10 }}>
|
|
273
|
+
<View transparent style={{ flexDirection:'row', backgroundColor:Colors.shades.white, margin:5, marginTop:15, borderRadius:22, borderWidth:4, borderColor:Colors.shades.shade100 }}>
|
|
274
|
+
<Button
|
|
275
|
+
transparent
|
|
269
276
|
style={{ flex:1, flexDirection:'row', alignItems:'center', borderRadius:22, padding:10, backgroundColor: contest_view=='upcoming'?Colors.brand.midnight:Colors.shades.white }}
|
|
270
277
|
onPress={() => setContestView('upcoming')}
|
|
271
278
|
>
|
|
@@ -273,32 +280,32 @@ const CompetitionPlay = ( { authenticated_competition_player, pick_loading, comp
|
|
|
273
280
|
<View style={{ borderRadius:100, justifyContent:'center', alignItems:'center', height:25, width:25, backgroundColor:contest_view == 'upcoming' ? Colors.shades.white : Colors.brand.midnight }}>
|
|
274
281
|
<Text weight='bold' size={12} color={contest_view == 'upcoming' ? Colors.brand.midnight: Colors.shades.white}>{ip_unique_team_events.length}</Text>
|
|
275
282
|
</View>
|
|
276
|
-
</
|
|
277
|
-
<
|
|
283
|
+
</Button>
|
|
284
|
+
<Button
|
|
285
|
+
transparent
|
|
278
286
|
style={{ flex:1, flexDirection:'row', alignItems:'center', borderRadius:22, padding:10, backgroundColor: contest_view=='closed'?Colors.brand.midnight:Colors.shades.white }}
|
|
279
287
|
onPress={() => setContestView('closed')}
|
|
280
288
|
>
|
|
281
289
|
<Text style={{ flex:1 }} size={12} color={contest_view == 'closed'?Colors.shades.white:Colors.brand.midnight} weight={contest_view == 'closed' ? 'bold': 'semibold'}>CLOSED CONTESTS</Text>
|
|
282
|
-
<View style={{ borderRadius:100, justifyContent:'center', alignItems:'center', height:25, width:25, backgroundColor:contest_view == 'closed' ? Colors.shades.white : Colors.brand.midnight }}>
|
|
290
|
+
<View transparent style={{ borderRadius:100, justifyContent:'center', alignItems:'center', height:25, width:25, backgroundColor:contest_view == 'closed' ? Colors.shades.white : Colors.brand.midnight }}>
|
|
283
291
|
<Text weight='bold' size={12} color={contest_view == 'closed' ? Colors.brand.midnight: Colors.shades.white}>{closed_unique_team_events.length}</Text>
|
|
284
292
|
</View>
|
|
285
|
-
</
|
|
293
|
+
</Button>
|
|
286
294
|
|
|
287
295
|
</View>
|
|
288
|
-
<View nativeID="picks" style={{ marginTop:15 }}>
|
|
289
|
-
<View style={{flexDirection:'row', alignItems:'center', justifyContent:'space-between', marginBottom:15}} >
|
|
290
|
-
<View style={{ flex:1, flexDirection:'row', alignItems:'center'
|
|
291
|
-
<View style={{ flex:1, flexDirection:'row', alignItems:'center', padding:10 }}>
|
|
292
|
-
<Text size={16}
|
|
293
|
-
|
|
296
|
+
<View transparent nativeID="picks" style={{ marginTop:15 }}>
|
|
297
|
+
<View transparent style={{flexDirection:'row', alignItems:'center', justifyContent:'space-between', marginBottom:15}} >
|
|
298
|
+
<View transparent style={{ flex:1, flexDirection:'row', alignItems:'center' }}>
|
|
299
|
+
<View transparent style={{ flex:1, flexDirection:'row', alignItems:'center', padding:10 }}>
|
|
300
|
+
<Text size={16} theme='h1'>{contest_view.toUpperCase()} CONTESTS</Text>
|
|
294
301
|
</View>
|
|
295
302
|
{authenticated_competition_player ?
|
|
296
|
-
<View>
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
303
|
+
<View transparent>
|
|
304
|
+
{ competition_type?.type == 'wager' ?
|
|
305
|
+
<Text style={{ flex:1 }} theme='h2' textAlign="right">{authenticated_competition_player.wager_based_balance.toFixed(2)} Remaining</Text>
|
|
306
|
+
:
|
|
307
|
+
<Text style={{ flex:1 }} theme='h2' textAlign="right">{parseFloat(competition.max_pick_count as string) - player_picks.length} Picks Remaining</Text>
|
|
308
|
+
}
|
|
302
309
|
</View>
|
|
303
310
|
:<></>}
|
|
304
311
|
</View>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { TouchableOpacity, View } from "react-native"
|
|
2
|
-
|
|
3
1
|
import React, { useEffect, useState } from "react"
|
|
4
2
|
import type { CompetitionProps, CompetitionResultTypeProps, CompetitionTypeProps, MyPlayerProps, PlayerBalanceProps } from "../../types"
|
|
5
3
|
import Colors from "../../constants/colors"
|
|
6
|
-
import {
|
|
4
|
+
import { Icons } from "../../Components"
|
|
7
5
|
import { CompetitionHelpers } from "../api"
|
|
8
6
|
import { view_styles } from "../../constants/styles"
|
|
9
7
|
import moment from "moment-mini"
|
|
8
|
+
import { Button, Text, View } from "../../Components/Themed"
|
|
9
|
+
import { useColors } from "../../constants/useColors"
|
|
10
10
|
|
|
11
11
|
type EnterCompetitionPromptProps = {
|
|
12
12
|
player?:MyPlayerProps,
|
|
@@ -21,6 +21,7 @@ type EnterCompetitionPromptProps = {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const EnterCompetitionPrompt = ({ player, player_balance, competition, competition_type, competition_result_type, onCancel, onEnter, onVerify }:EnterCompetitionPromptProps) => {
|
|
24
|
+
const C = useColors();
|
|
24
25
|
const [ use_promo_balance, setUsePromoBalance ] = useState(false)
|
|
25
26
|
|
|
26
27
|
|
|
@@ -31,13 +32,13 @@ const EnterCompetitionPrompt = ({ player, player_balance, competition, competiti
|
|
|
31
32
|
const requires_verification = player && parseInt(competition?.buy_in as string ?? 0) > 0 && competition?.market_type == 'FOR_MONEY' && player?.vouched_status != 'verified' ? true : false
|
|
32
33
|
const cl = competition.market_type == 'FOR_MONEY'?'$':'E'
|
|
33
34
|
return (
|
|
34
|
-
<View style={{
|
|
35
|
-
<View nativeID="competition_info">
|
|
36
|
-
<Text size={16}
|
|
35
|
+
<View float style={{ borderTopRightRadius:22, borderTopLeftRadius:22, paddingTop:22 }}>
|
|
36
|
+
<View transparent nativeID="competition_info">
|
|
37
|
+
<Text size={16} theme="h1" textAlign="center">Competition Details</Text>
|
|
37
38
|
{competition_type ?
|
|
38
|
-
<View style={{ flexDirection:'row', justifyContent:'center', margin:10 }}>
|
|
39
|
-
<View style={{ padding:10, marginRight:4, backgroundColor: CompetitionHelpers.getCompColors(competition_type.type).borderColor, borderRadius:4 }}>
|
|
40
|
-
<Text size={12}
|
|
39
|
+
<View transparent style={{ flexDirection:'row', justifyContent:'center', margin:10 }}>
|
|
40
|
+
<View transparent style={{ padding:10, marginRight:4, backgroundColor: CompetitionHelpers.getCompColors(competition_type.type).borderColor, borderRadius:4 }}>
|
|
41
|
+
<Text size={12} theme="h2">{competition_type.type_label}</Text>
|
|
41
42
|
</View>
|
|
42
43
|
<View style={{ flexDirection:'row', alignItems:'center', padding:10, marginLeft:4, backgroundColor: Colors.shades.white, borderRadius:4, ...view_styles.float }}>
|
|
43
44
|
<Text style={{ marginRight:5 }} size={12} color={Colors.brand.midnight} weight='semibold'>{competition.invite_only?'Private':'Public'}</Text>
|
|
@@ -49,58 +50,48 @@ const EnterCompetitionPrompt = ({ player, player_balance, competition, competiti
|
|
|
49
50
|
</View>
|
|
50
51
|
</View>
|
|
51
52
|
:<></>}
|
|
52
|
-
<Text size={14}
|
|
53
|
+
<Text size={14} theme="h2" textAlign="center">{competition.competition_name}</Text>
|
|
53
54
|
</View>
|
|
54
|
-
<View>
|
|
55
|
-
<Text style={{ marginTop:5 }}
|
|
55
|
+
<View transparent>
|
|
56
|
+
<Text style={{ marginTop:5 }} theme="description" textAlign="center">{moment(competition.scheduled_datetime).format('MMM DD - hh:mm a')}</Text>
|
|
56
57
|
{competition.competition_description ?
|
|
57
|
-
<Text style={{ marginTop:5 }}
|
|
58
|
+
<Text style={{ marginTop:5 }} theme="description" textAlign="center">{competition.competition_description}</Text>
|
|
58
59
|
:<></>}
|
|
59
60
|
{competition_result_type ?
|
|
60
|
-
<Text style={{ marginTop:5 }}
|
|
61
|
+
<Text style={{ marginTop:5 }} theme="description" textAlign="center">{competition_result_type.label}</Text>
|
|
61
62
|
:<></>}
|
|
62
63
|
{competition_type?.type == 'pick' ?
|
|
63
|
-
<Text style={{ marginTop:5 }}
|
|
64
|
+
<Text style={{ marginTop:5 }} theme="description" textAlign="center">Picks: {competition.max_pick_count}</Text>
|
|
64
65
|
:<></>}
|
|
65
|
-
<Text style={{ marginTop:5 }}
|
|
66
|
-
<Text style={{ marginTop:5 }}
|
|
67
|
-
<Text style={{ marginTop:5 }}
|
|
66
|
+
<Text style={{ marginTop:5 }} theme="description" textAlign="center">Potential Winnings: {cl}{competition.ticket_revenue.toFixed(2)}</Text>
|
|
67
|
+
<Text style={{ marginTop:5 }} theme="description" textAlign="center">Ticket Price: {cl}{(competition.buy_in as number).toFixed(2)}</Text>
|
|
68
|
+
<Text style={{ marginTop:5 }} theme="description" textAlign="center">Entries: {competition.tickets_sold}/{competition.available_tickets}</Text>
|
|
68
69
|
</View>
|
|
69
|
-
<View nativeID="pick_actions" style={{ flexDirection:'row', padding:10 }}>
|
|
70
|
+
<View transparent nativeID="pick_actions" style={{ flexDirection:'row', padding:10 }}>
|
|
70
71
|
<Button
|
|
71
72
|
style={{ flex:1, marginRight:3 }}
|
|
72
|
-
|
|
73
|
-
borderWidth={1}
|
|
74
|
-
borderColor={Colors.brand.electric}
|
|
75
|
-
padding={10}
|
|
73
|
+
type='close'
|
|
76
74
|
title="Cancel"
|
|
77
|
-
title_color={Colors.brand.electric}
|
|
78
75
|
onPress={() => onCancel()}
|
|
79
76
|
/>
|
|
80
77
|
{requires_verification ?
|
|
81
78
|
<Button
|
|
82
|
-
borderRadius={4}
|
|
83
79
|
style={{ flex:2, marginLeft:2 }}
|
|
84
|
-
backgroundColor={Colors.utility.warning}
|
|
85
|
-
padding={10}
|
|
86
80
|
title={`Verify My Account`}
|
|
87
|
-
|
|
81
|
+
type='success'
|
|
88
82
|
onPress={() => onVerify()}
|
|
89
83
|
/>
|
|
90
84
|
:
|
|
91
85
|
<Button
|
|
92
|
-
borderRadius={4}
|
|
93
86
|
style={{ flexGrow:2, marginLeft:2 }}
|
|
94
|
-
backgroundColor={Colors.utility.success}
|
|
95
|
-
padding={10}
|
|
96
87
|
title={`Enter Competition${competition.buy_in == 0 ? ``:` ${cl}${competition.buy_in}`}`}
|
|
97
|
-
|
|
88
|
+
type='success'
|
|
98
89
|
onPress={() => onEnter(use_promo_balance)}
|
|
99
90
|
/>
|
|
100
91
|
}
|
|
101
92
|
</View>
|
|
102
93
|
{player_balance && player_balance.promo_balance > 0 ?
|
|
103
|
-
<
|
|
94
|
+
<Button style={{ backgroundColor:C.text.gold, padding:10, flexDirection:'row', alignItems:'center' }} onPress={() => {
|
|
104
95
|
if(use_promo_balance){
|
|
105
96
|
//Remove promo balance and open_amt
|
|
106
97
|
setUsePromoBalance(false);
|
|
@@ -108,17 +99,17 @@ const EnterCompetitionPrompt = ({ player, player_balance, competition, competiti
|
|
|
108
99
|
setUsePromoBalance(true);
|
|
109
100
|
}
|
|
110
101
|
}}>
|
|
111
|
-
<View style={{ marginRight:10, height:30, width:30, borderWidth:1, borderColor:
|
|
102
|
+
<View transparent style={{ marginRight:10, height:30, width:30, borderWidth:1, borderColor:C.text.h1, justifyContent:'center', alignItems:'center' }}>
|
|
112
103
|
{use_promo_balance ?
|
|
113
|
-
<View style={{ height:20, width:20, backgroundColor:
|
|
104
|
+
<View style={{ height:20, width:20, backgroundColor:C.text.h1 }} />
|
|
114
105
|
:<></>}
|
|
115
106
|
</View>
|
|
116
|
-
<View>
|
|
117
|
-
<Text size={14}
|
|
118
|
-
<Text style={{ marginTop:2}}
|
|
107
|
+
<View transparent>
|
|
108
|
+
<Text size={14} theme="h1">${player_balance?.promo_balance} Promotion Available</Text>
|
|
109
|
+
<Text style={{ marginTop:2}} theme="description">Press / Click here to use promo balance</Text>
|
|
119
110
|
</View>
|
|
120
111
|
|
|
121
|
-
</
|
|
112
|
+
</Button>
|
|
122
113
|
:<></>}
|
|
123
114
|
</View>
|
|
124
115
|
)
|
|
@@ -23,7 +23,7 @@ type LeaderPicksProps = {
|
|
|
23
23
|
competition_matches:CompetitionMatchProps[],
|
|
24
24
|
competition_match_markets:CompetitionMatchMarketProps[],
|
|
25
25
|
height: number,
|
|
26
|
-
leader
|
|
26
|
+
leader?:PublicPlayerProps,
|
|
27
27
|
onNext?:() => void
|
|
28
28
|
onPrevious?:() => void,
|
|
29
29
|
onClose:() => void
|
|
@@ -46,7 +46,7 @@ const LeaderPicks = ({ markets, events, matches, athletes, competition, competit
|
|
|
46
46
|
useEffect(() => {
|
|
47
47
|
if(!competition || !leader){ return }
|
|
48
48
|
getPlayerPicksFromServer(competition.competition_id, leader.player_id, 0)
|
|
49
|
-
},[competition, leader
|
|
49
|
+
},[competition, leader?.player_id])
|
|
50
50
|
|
|
51
51
|
const getPlayerPicksFromServer = async(competition_id:string, player_id:string, offset:number) => {
|
|
52
52
|
setData({ ...data, loading:true });
|
|
@@ -154,13 +154,13 @@ const LeaderPicks = ({ markets, events, matches, athletes, competition, competit
|
|
|
154
154
|
</View>
|
|
155
155
|
<View nativeID="image" style={{ paddingLeft:10, paddingRight:10 }}>
|
|
156
156
|
<Image
|
|
157
|
-
source={{ uri: leader
|
|
157
|
+
source={{ uri: leader?.profile_pic }}
|
|
158
158
|
style={{ height:30, width:30, borderRadius:100 }}
|
|
159
159
|
resizeMode="cover"
|
|
160
160
|
/>
|
|
161
161
|
</View>
|
|
162
162
|
<View nativeID="details" style={{ flex:1 }}>
|
|
163
|
-
<Text size={12} color={Colors.brand.midnight} weight='semibold'>{leader
|
|
163
|
+
<Text size={12} color={Colors.brand.midnight} weight='semibold'>{leader?.username}</Text>
|
|
164
164
|
{competition_type?.type == 'wager' ?
|
|
165
165
|
<Text style={{ marginTop:3 }} size={12} color={Colors.brand.midnight} weight='regular'>{record.earnings.toFixed(2)} Earned ({record.remaining_stakes.toFixed(2)} at risk)</Text>
|
|
166
166
|
:
|
|
@@ -186,7 +186,7 @@ const LeaderPicks = ({ markets, events, matches, athletes, competition, competit
|
|
|
186
186
|
:<></>}
|
|
187
187
|
|
|
188
188
|
<ScrollView style={{flex:1, backgroundColor:Colors.shades.white}} nativeID="leader_picks">
|
|
189
|
-
<Text style={{ margin:10 }} color={Colors.brand.midnight} textAlign="center" weight='bold' size={18}>{leader
|
|
189
|
+
<Text style={{ margin:10 }} color={Colors.brand.midnight} textAlign="center" weight='bold' size={18}>{leader?.username} Picks</Text>
|
|
190
190
|
<Text style={{ margin:10 }} color={Colors.brand.slate} textAlign="center" weight='bold' size={14}>Locked picks will appear after event is live</Text>
|
|
191
191
|
<View nativeID="picks" style={{ marginTop:10 }}>
|
|
192
192
|
<FlatList
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React, { useState } from "react"
|
|
2
|
-
import { ActivityIndicator, FlatList
|
|
2
|
+
import { ActivityIndicator, FlatList } from "react-native"
|
|
3
3
|
import type { CompetitionMatchMarketProps, MarketProps, PlayerPickProps } from "../../types"
|
|
4
4
|
import Colors from "../../constants/colors"
|
|
5
|
-
import { Icons
|
|
5
|
+
import { Icons } from "../../Components"
|
|
6
6
|
import { CompetitionHelpers } from "../api"
|
|
7
|
+
import { Text, View, Button } from "../../Components/Themed"
|
|
8
|
+
import { useColors } from "../../constants/useColors"
|
|
7
9
|
|
|
8
10
|
|
|
9
11
|
type MarketsCardProps = {
|
|
@@ -17,6 +19,7 @@ type MarketsCardProps = {
|
|
|
17
19
|
onMarketSelect:(cmm:CompetitionMatchMarketProps, player_pick?:PlayerPickProps) => void
|
|
18
20
|
}
|
|
19
21
|
const MarketsCard = ({ competition_match_markets, markets, orientation, onMarketSelect, player_picks, locked, disabled, mode }:MarketsCardProps) => {
|
|
22
|
+
const C = useColors();
|
|
20
23
|
const [ markets_width, setMarketsWidth ] = useState(0)
|
|
21
24
|
|
|
22
25
|
let unique_market_ids = [ ...new Set(competition_match_markets.map(cmm => cmm.market_id))]
|
|
@@ -38,7 +41,7 @@ const MarketsCard = ({ competition_match_markets, markets, orientation, onMarket
|
|
|
38
41
|
const market_width = orientation == "horizontal" ? markets_width : markets_width / unique_market_ids.length
|
|
39
42
|
|
|
40
43
|
return (
|
|
41
|
-
<View style={{ flex:1, flexDirection:orientation == 'horizontal'?'row':'column', width: market_width }}>
|
|
44
|
+
<View transparent style={{ flex:1, flexDirection:orientation == 'horizontal'?'row':'column', width: market_width }}>
|
|
42
45
|
{orientation == 'horizontal' ?
|
|
43
46
|
<></>
|
|
44
47
|
:
|
|
@@ -49,7 +52,8 @@ const MarketsCard = ({ competition_match_markets, markets, orientation, onMarket
|
|
|
49
52
|
}).map(mm => {
|
|
50
53
|
const player_pick = player_picks.find(pp => pp.market_id == data.item && pp.side == mm.side)
|
|
51
54
|
return (
|
|
52
|
-
<
|
|
55
|
+
<Button
|
|
56
|
+
float
|
|
53
57
|
delayPressIn={0}
|
|
54
58
|
disabled={locked || mode == 'view' || disabled}
|
|
55
59
|
onPress={() => onMarketSelect(mm, player_pick)}
|
|
@@ -68,22 +72,22 @@ const MarketsCard = ({ competition_match_markets, markets, orientation, onMarket
|
|
|
68
72
|
<Text size={12} color={player_pick&&!locked?Colors.shades.white:Colors.shades.black} textAlign="center" weight='bold'>{CompetitionHelpers.getOddsLabel(mm.odds as number)}</Text>
|
|
69
73
|
{locked ?
|
|
70
74
|
<View style={{ position:'absolute', backgroundColor:Colors.shades.shade600, borderRadius:4, top:0, bottom:0, right:0, left:0, justifyContent:'center', alignItems:'center' }}>
|
|
71
|
-
<Icons.LockClosedIcon size={14} color={
|
|
75
|
+
<Icons.LockClosedIcon size={14} color={C.text.h1} />
|
|
72
76
|
</View>
|
|
73
77
|
:<></>}
|
|
74
|
-
</
|
|
78
|
+
</Button>
|
|
75
79
|
)
|
|
76
80
|
})}
|
|
77
81
|
</View>
|
|
78
82
|
)
|
|
79
83
|
}
|
|
80
84
|
return (
|
|
81
|
-
<View style={{ flex:1 }} onLayout={(ev) => {
|
|
85
|
+
<View transparent style={{ flex:1 }} onLayout={(ev) => {
|
|
82
86
|
const { width } = ev.nativeEvent.layout;
|
|
83
87
|
setMarketsWidth(width)
|
|
84
88
|
}}>
|
|
85
89
|
{markets_width > 0 ?
|
|
86
|
-
<View>
|
|
90
|
+
<View transparent>
|
|
87
91
|
{unique_market_ids.length > 0 ?
|
|
88
92
|
<FlatList
|
|
89
93
|
horizontal
|
|
@@ -91,13 +95,13 @@ const MarketsCard = ({ competition_match_markets, markets, orientation, onMarket
|
|
|
91
95
|
renderItem={renderMarkets}
|
|
92
96
|
/>
|
|
93
97
|
:
|
|
94
|
-
<View style={{ height:100, justifyContent:'center', alignItems:'center' }}>
|
|
98
|
+
<View transparent style={{ height:100, justifyContent:'center', alignItems:'center' }}>
|
|
95
99
|
<Icons.LockClosedIcon color={Colors.brand.midnight} size={32}/>
|
|
96
100
|
</View>
|
|
97
101
|
}
|
|
98
102
|
</View>
|
|
99
103
|
:
|
|
100
|
-
<View style={{ height:100, justifyContent:'center', alignItems:'center' }}>
|
|
104
|
+
<View transparent style={{ height:100, justifyContent:'center', alignItems:'center' }}>
|
|
101
105
|
<ActivityIndicator size={'large'} color={Colors.brand.midnight}/>
|
|
102
106
|
</View>
|
|
103
107
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ActivityIndicator, FlatList, Image
|
|
2
|
+
import { ActivityIndicator, FlatList, Image } from "react-native"
|
|
3
3
|
import type { CompetitionMatchMarketProps, CompetitionMatchProps, CompetitionProps, CompetitionTypeProps, EventProps, MarketProps, PlayerPickProps } from "../../types"
|
|
4
4
|
import MarketsCard from './MarketsCard';
|
|
5
|
-
import { Text } from '../../Components';
|
|
6
5
|
import Colors from '../../constants/colors';
|
|
7
6
|
import moment from 'moment-mini';
|
|
8
7
|
import { CompetitionHelpers, FINALIZED_STATUSES } from '../api';
|
|
8
|
+
import { Text, View } from '../../Components/Themed';
|
|
9
|
+
import { useColors } from '../../constants/useColors';
|
|
9
10
|
|
|
10
11
|
type TeamEventCardProps = {
|
|
11
12
|
competition:CompetitionProps,
|
|
@@ -21,7 +22,7 @@ type TeamEventCardProps = {
|
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
const TeamEventCard = ({ loading, event, markets, competition_type, competition_match, competition_match_markets, player_picks, mode, onPick }:TeamEventCardProps) => {
|
|
24
|
-
|
|
25
|
+
const C = useColors();
|
|
25
26
|
const wager_picks = player_picks.filter(pp => pp.stake > 0)
|
|
26
27
|
|
|
27
28
|
const handleMarketSelect = async(mm:CompetitionMatchMarketProps, player_pick?:PlayerPickProps) => {
|
|
@@ -44,23 +45,23 @@ const TeamEventCard = ({ loading, event, markets, competition_type, competition_
|
|
|
44
45
|
let locked = mode == 'view' && moment().isBefore(moment(event.scheduled_datetime)) ? true : false
|
|
45
46
|
return (
|
|
46
47
|
<View style={{ flexDirection:'row', marginTop:5 }}>
|
|
47
|
-
<Text style={{ flex:1 }} size={12} color={
|
|
48
|
-
<Text style={{ flex:1 }} size={12} color={
|
|
48
|
+
<Text style={{ flex:1 }} size={12} color={C.text.highlight}>{locked?'WAGER LOCKED':data.item.pick_title}</Text>
|
|
49
|
+
<Text style={{ flex:1 }} size={12} color={C.text.highlight} textAlign="right">{locked?'':`${data.item.stake.toFixed(2)} to win ${data.item.potential_winnings.toFixed(2)}`}</Text>
|
|
49
50
|
</View>
|
|
50
51
|
)
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
if(!event){ return <></> }
|
|
54
55
|
return (
|
|
55
|
-
<View style={{ padding:5 }}>
|
|
56
|
-
<View style={{ flexDirection:'row' }}>
|
|
57
|
-
<View nativeID="event_details" style={{ flex:1 }}>
|
|
56
|
+
<View transparent style={{ padding:5 }}>
|
|
57
|
+
<View transparent style={{ flexDirection:'row' }}>
|
|
58
|
+
<View transparent nativeID="event_details" style={{ flex:1 }}>
|
|
58
59
|
<View />
|
|
59
|
-
<View nativeID="away_team" style={{ flex:1, flexDirection:'row', alignItems:'center', paddingRight:5 }}>
|
|
60
|
-
<View style={{ flex:1, marginRight:5 }}>
|
|
61
|
-
<View style={{ flexDirection:'row', alignItems:'flex-start' }}>
|
|
60
|
+
<View transparent nativeID="away_team" style={{ flex:1, flexDirection:'row', alignItems:'center', paddingRight:5 }}>
|
|
61
|
+
<View transparent style={{ flex:1, marginRight:5 }}>
|
|
62
|
+
<View transparent style={{ flexDirection:'row', alignItems:'flex-start' }}>
|
|
62
63
|
{event?.away?.rank ?
|
|
63
|
-
<Text style={{ marginRight:4 }} size={12} color={
|
|
64
|
+
<Text style={{ marginRight:4 }} size={12} color={C.text.highlight} weight='bold'>{event.away.rank}</Text>
|
|
64
65
|
:<></>}
|
|
65
66
|
{event?.away?.image?.url?
|
|
66
67
|
<Image
|
|
@@ -69,19 +70,19 @@ const TeamEventCard = ({ loading, event, markets, competition_type, competition_
|
|
|
69
70
|
resizeMode="cover"
|
|
70
71
|
/>
|
|
71
72
|
:<></>}
|
|
72
|
-
<Text size={12}
|
|
73
|
+
<Text size={12} theme='h2'>{event.away?.market_name} {event.away?.name}</Text>
|
|
73
74
|
</View>
|
|
74
75
|
{event?.away_sub_title ?
|
|
75
|
-
<Text size={12}
|
|
76
|
+
<Text size={12} theme='description'>{event?.away_sub_title}</Text>
|
|
76
77
|
:<></>}
|
|
77
78
|
</View>
|
|
78
|
-
<Text size={12}
|
|
79
|
+
<Text size={12} theme='h1' weight='bold'>{event.away_team_score}</Text>
|
|
79
80
|
</View>
|
|
80
|
-
<View nativeID="home_team" style={{ flex:1, flexDirection:'row', alignItems:'center', paddingRight:5 }}>
|
|
81
|
-
<View style={{ flex:1, marginRight:5 }}>
|
|
82
|
-
<View style={{ flexDirection:'row', alignItems:'flex-start' }}>
|
|
81
|
+
<View transparent nativeID="home_team" style={{ flex:1, flexDirection:'row', alignItems:'center', paddingRight:5 }}>
|
|
82
|
+
<View transparent style={{ flex:1, marginRight:5 }}>
|
|
83
|
+
<View transparent style={{ flexDirection:'row', alignItems:'flex-start' }}>
|
|
83
84
|
{event?.home?.rank ?
|
|
84
|
-
<Text style={{ marginRight:4 }} size={12} color={
|
|
85
|
+
<Text style={{ marginRight:4 }} size={12} color={C.text.highlight} weight='bold'>{event.home.rank}</Text>
|
|
85
86
|
:<></>}
|
|
86
87
|
{event?.home?.image?.url?
|
|
87
88
|
<Image
|
|
@@ -90,16 +91,16 @@ const TeamEventCard = ({ loading, event, markets, competition_type, competition_
|
|
|
90
91
|
resizeMode="cover"
|
|
91
92
|
/>
|
|
92
93
|
:<></>}
|
|
93
|
-
<Text size={12}
|
|
94
|
+
<Text size={12} theme='h2' weight='semibold'>{event.home?.market_name} {event.home?.name}</Text>
|
|
94
95
|
</View>
|
|
95
96
|
{event?.home_sub_title ?
|
|
96
|
-
<Text size={12}
|
|
97
|
+
<Text size={12} theme='description'>{event?.home_sub_title}</Text>
|
|
97
98
|
:<></>}
|
|
98
99
|
</View>
|
|
99
|
-
<Text size={12}
|
|
100
|
+
<Text size={12} theme='h1' weight='bold'>{event.home_team_score}</Text>
|
|
100
101
|
</View>
|
|
101
102
|
</View>
|
|
102
|
-
<View nativeID="market_details" style={{ flex:1 }}>
|
|
103
|
+
<View transparent nativeID="market_details" style={{ flex:1 }}>
|
|
103
104
|
<MarketsCard
|
|
104
105
|
player_picks={player_picks}
|
|
105
106
|
markets={markets}
|