be-components 3.3.6 → 3.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js +27 -36
- package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/LoginForm.js +103 -124
- package/lib/commonjs/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/StrategyForm.js +254 -347
- 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 +53 -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 +21 -30
- package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
- package/lib/module/Authenticator/Components/LoginForm.js +61 -82
- package/lib/module/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/module/Authenticator/Components/StrategyForm.js +234 -326
- 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 +35 -45
- 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 +2 -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 +1 -2
- 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 +3 -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 +2 -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 +15 -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 +41 -41
- package/src/Authenticator/Components/LoginForm.tsx +54 -56
- package/src/Authenticator/Components/StrategyForm.tsx +138 -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 +50 -59
- 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,18 +1,18 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import StrategyForm from './Components/StrategyForm';
|
|
3
3
|
import { AuthenticateApi } from './api';
|
|
4
|
-
import {
|
|
4
|
+
import { Image, KeyboardAvoidingView } from 'react-native';
|
|
5
5
|
import LoginForm from './Components/LoginForm';
|
|
6
|
-
import {
|
|
7
|
-
import Colors from '../constants/colors';
|
|
6
|
+
import { Text, View, Button } from '../Components/Themed';
|
|
8
7
|
import type { AuthStrategyIdentifierProps, AuthStrategyProps, AuthenticatedProps } from './api/types';
|
|
9
8
|
import { APIOverrides } from '../ApiOverrides';
|
|
10
9
|
import type { CompanyProps } from '../types';
|
|
10
|
+
import { useColors } from '../constants/useColors';
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
type AuthenticateWizardProps = {
|
|
14
14
|
auth_strategy_id:string,
|
|
15
|
-
|
|
15
|
+
maxWidth?:number,
|
|
16
16
|
company_id?:string,
|
|
17
17
|
default_view?:'login'|'register'
|
|
18
18
|
show_referral?:boolean,
|
|
@@ -26,7 +26,8 @@ type AuthenticateWizardProps = {
|
|
|
26
26
|
onClose: () => void
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
const Authenticator = ({ visible, theme, show_referral, auth_strategy_id, default_view, company_id, source, referral_code,
|
|
29
|
+
const Authenticator = ({ visible, theme, show_referral, auth_strategy_id, default_view, company_id, source, referral_code, maxWidth, opt_in_url, onTryAuthenticate, onAuthenticated, onClose }:AuthenticateWizardProps) => {
|
|
30
|
+
const C = useColors();
|
|
30
31
|
const [ loaded, setLoaded ] = useState(false);
|
|
31
32
|
const [ company, setCompany ] = useState<CompanyProps>();
|
|
32
33
|
const [ distinct_id, setDistinctID ] = useState<string>();
|
|
@@ -82,17 +83,17 @@ const Authenticator = ({ visible, theme, show_referral, auth_strategy_id, defaul
|
|
|
82
83
|
if(!loaded || !distinct_id){ return <></> }
|
|
83
84
|
if(!visible){ return <></> }
|
|
84
85
|
return (
|
|
85
|
-
<
|
|
86
|
+
<KeyboardAvoidingView style={{ maxWidth }}>
|
|
86
87
|
{company && theme != 'mini' ?
|
|
87
|
-
<View style={{ padding:20, flexDirection:'row', alignItems:'center', borderTopRightRadius:22, borderTopLeftRadius:22, borderBottomWidth:1, borderColor:
|
|
88
|
+
<View style={{ padding:20, flexDirection:'row', alignItems:'center', borderTopRightRadius:22, borderTopLeftRadius:22, borderBottomWidth:1, borderColor:C.borders.light }}>
|
|
88
89
|
<View style={{ flex:1, marginRight:10 }}>
|
|
89
|
-
<Text size={28} weight='bold' color={
|
|
90
|
-
<Text
|
|
90
|
+
<Text size={28} weight='bold' color={C.text.h1}>{active_view == 'login' ? 'Log In!': 'Welcome!'}</Text>
|
|
91
|
+
<Text theme='h2'>{active_view == 'login' ? 'Continue to login with':'Complete the form below to participate with'} {company?.company_name ?? 'Bettoredge'}</Text>
|
|
91
92
|
</View>
|
|
92
93
|
<View>
|
|
93
94
|
<Image
|
|
94
95
|
source={{ uri: company?.company_image?.url }}
|
|
95
|
-
style={{ width:
|
|
96
|
+
style={{ width: 50, height: 50, borderRadius:8 }}
|
|
96
97
|
resizeMode='cover'
|
|
97
98
|
/>
|
|
98
99
|
</View>
|
|
@@ -100,10 +101,9 @@ const Authenticator = ({ visible, theme, show_referral, auth_strategy_id, defaul
|
|
|
100
101
|
:<></>}
|
|
101
102
|
<StrategyForm
|
|
102
103
|
visible={active_view == 'register' ? true : false}
|
|
103
|
-
|
|
104
|
+
maxWidth={maxWidth}
|
|
104
105
|
company={company}
|
|
105
106
|
strategy={strategy}
|
|
106
|
-
theme={theme}
|
|
107
107
|
onLogin={() => setActiveView('login')}
|
|
108
108
|
auth_strategy_id={auth_strategy_id}
|
|
109
109
|
company_id={company_id}
|
|
@@ -115,7 +115,7 @@ const Authenticator = ({ visible, theme, show_referral, auth_strategy_id, defaul
|
|
|
115
115
|
onAuthenticated={handleAuthenticated}
|
|
116
116
|
/>
|
|
117
117
|
<LoginForm
|
|
118
|
-
|
|
118
|
+
maxWidth={maxWidth}
|
|
119
119
|
visible={ active_view == 'login' ? true : false }
|
|
120
120
|
onAuthenticated={handleAuthenticated}
|
|
121
121
|
onTryAuthenticate={(attribute, result) => onTryAuthenticate ? onTryAuthenticate(attribute, result) : console.log()}
|
|
@@ -125,15 +125,13 @@ const Authenticator = ({ visible, theme, show_referral, auth_strategy_id, defaul
|
|
|
125
125
|
<View style={{ padding:10 }}>
|
|
126
126
|
<Button
|
|
127
127
|
title='CLOSE'
|
|
128
|
-
title_color={
|
|
129
|
-
|
|
130
|
-
borderWidth={0}
|
|
131
|
-
backgroundColor='transparent'
|
|
128
|
+
title_color={C.text.error}
|
|
129
|
+
type='close'
|
|
132
130
|
onPress={() => onClose()}
|
|
133
131
|
/>
|
|
134
132
|
</View>
|
|
135
133
|
:<></>}
|
|
136
|
-
</
|
|
134
|
+
</KeyboardAvoidingView>
|
|
137
135
|
)
|
|
138
136
|
}
|
|
139
137
|
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ActivityIndicator, FlatList
|
|
2
|
+
import { ActivityIndicator, FlatList } from "react-native"
|
|
3
3
|
import MarketsCard from "./MarketsCard"
|
|
4
4
|
import type { AthleteProps, CompetitionMatchMarketProps, CompetitionMatchProps, CompetitionProps, CompetitionTypeProps, EventProps, MarketProps, PlayerPickProps } from '../../types';
|
|
5
5
|
import moment from 'moment-mini';
|
|
6
6
|
import { CompetitionHelpers, FINALIZED_STATUSES } from '../api';
|
|
7
|
-
import { Text } from '../../Components';
|
|
8
7
|
import Colors from '../../constants/colors';
|
|
9
8
|
import LinearDiagnal from '../../Components/LinearDiagnal';
|
|
10
9
|
import { AthleteImage } from '../../Components/Jerseys';
|
|
10
|
+
import { Text, View } from '../../Components/Themed';
|
|
11
|
+
import { useColors } from '../../constants/useColors';
|
|
11
12
|
|
|
12
13
|
type AthleteMarketCardProps = {
|
|
13
14
|
competition:CompetitionProps,
|
|
@@ -25,7 +26,7 @@ type AthleteMarketCardProps = {
|
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
const AthleteMarketCard = ({ markets, competition_type, event, athlete, mode, loading, player_picks, orientation, competition_match, competition_match_markets, onPick }:AthleteMarketCardProps) => {
|
|
28
|
-
|
|
29
|
+
const C = useColors();
|
|
29
30
|
const market = markets.find(m => m.market_id == competition_match.market_id_override)
|
|
30
31
|
const wager_picks = player_picks.filter(pp => pp.stake > 0)
|
|
31
32
|
|
|
@@ -47,36 +48,37 @@ const AthleteMarketCard = ({ markets, competition_type, event, athlete, mode, l
|
|
|
47
48
|
const locked = mode == 'view' && moment().isBefore(moment(event.scheduled_datetime)) ? true : false
|
|
48
49
|
return (
|
|
49
50
|
<View style={{ flexDirection:'row', marginTop:5 }}>
|
|
50
|
-
<Text style={{ flex:1 }} size={12} color={
|
|
51
|
-
<Text style={{ flex:1 }} size={12} color={
|
|
51
|
+
<Text style={{ flex:1 }} size={12} color={C.text.highlight}>{locked?'WAGER LOCKED':data.item.pick_title}</Text>
|
|
52
|
+
<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>
|
|
52
53
|
</View>
|
|
53
54
|
)
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
if(!athlete){ return <></> }
|
|
57
58
|
return (
|
|
58
|
-
<View
|
|
59
|
+
<View transparent>
|
|
59
60
|
{market ?
|
|
60
61
|
<LinearDiagnal
|
|
61
62
|
label={market.stat_label ?? market.type}
|
|
62
63
|
label_size={10}
|
|
63
64
|
style={{ borderTopLeftRadius:8, padding:5 }}
|
|
64
|
-
left_color={
|
|
65
|
+
left_color={C.text.gold}
|
|
65
66
|
right_color={'#ebd197'}
|
|
66
67
|
/>
|
|
67
68
|
:<></>}
|
|
68
|
-
<View style={{ padding:10, flex:1, flexDirection:orientation=='horizontal'?'row':'column', alignItems:orientation=='horizontal'?'center':undefined }}>
|
|
69
|
+
<View transparent style={{ padding:10, flex:1, flexDirection:orientation=='horizontal'?'row':'column', alignItems:orientation=='horizontal'?'center':undefined }}>
|
|
69
70
|
|
|
70
|
-
<View nativeID="event_details" style={{
|
|
71
|
-
<View nativeID="athlete_image">
|
|
71
|
+
<View transparent nativeID="event_details" style={{ flexGrow:1, flexDirection:orientation=='horizontal'?'row':'column', alignItems:'center' }}>
|
|
72
|
+
<View transparent nativeID="athlete_image" style={{ flexGrow:1 }}>
|
|
72
73
|
<AthleteImage athlete={athlete} size={38} number_size={10}/>
|
|
73
74
|
</View>
|
|
74
|
-
<View>
|
|
75
|
-
<Text size={16}
|
|
76
|
-
<Text style={{ marginTop:3 }}
|
|
75
|
+
<View transparent>
|
|
76
|
+
<Text size={16} theme='h1' textAlign="center">{athlete.first_name} {athlete.last_name}</Text>
|
|
77
|
+
<Text style={{ marginTop:3 }} theme='description' textAlign="center">{athlete.team ? `${athlete.team.abbr} (${athlete.position})`:`${athlete.position}`}</Text>
|
|
77
78
|
</View>
|
|
78
79
|
</View>
|
|
79
|
-
<View
|
|
80
|
+
<View style={{ flex:1 }} />
|
|
81
|
+
<View transparent nativeID="market_details" style={{flex:orientation=='horizontal'?1:undefined, margin:5 }}>
|
|
80
82
|
{orientation == 'horizontal' && market ?
|
|
81
83
|
<Text style={{ margin:2 }} size={14} color={Colors.shades.black} textAlign="center">{market.description}</Text>
|
|
82
84
|
:<></>}
|
|
@@ -91,17 +93,17 @@ const AthleteMarketCard = ({ markets, competition_type, event, athlete, mode, l
|
|
|
91
93
|
onMarketSelect={(mm, player_pick) => handleMarketSelect(mm, player_pick)}
|
|
92
94
|
/>
|
|
93
95
|
{loading ?
|
|
94
|
-
<View style={{ position:'absolute', top:0, right:0, left:0, bottom:0, justifyContent:'center', alignItems:'center' }}>
|
|
96
|
+
<View transparent style={{ position:'absolute', top:0, right:0, left:0, bottom:0, justifyContent:'center', alignItems:'center' }}>
|
|
95
97
|
<ActivityIndicator
|
|
96
98
|
size='large'
|
|
97
|
-
color={
|
|
99
|
+
color={C.text.h1}
|
|
98
100
|
/>
|
|
99
101
|
</View>
|
|
100
102
|
:<></>}
|
|
101
103
|
</View>
|
|
102
104
|
</View>
|
|
103
105
|
{wager_picks.length > 0 ?
|
|
104
|
-
<View nativeID="wager_picks">
|
|
106
|
+
<View transparent nativeID="wager_picks">
|
|
105
107
|
<FlatList
|
|
106
108
|
data={wager_picks}
|
|
107
109
|
renderItem={renderWagerPicks}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Image, FlatList } from "react-native"
|
|
3
3
|
import type { CompetitionPayoutTypeProps, CompetitionProps, CompetitionResultTypeProps, CompetitionTypeProps, MyPlayerProps } from "../../types"
|
|
4
|
-
import { Icons
|
|
5
|
-
import Colors from '../../constants/colors';
|
|
6
|
-
import { view_styles } from '../../constants/styles';
|
|
4
|
+
import { Icons } from '../../Components';
|
|
7
5
|
import { CompetitionHelpers } from '../api';
|
|
6
|
+
import { Button, Text, View } from '../../Components/Themed';
|
|
7
|
+
import { useColors } from '../../constants/useColors';
|
|
8
8
|
|
|
9
9
|
type CompetitionInfoCardProps = {
|
|
10
10
|
competition:CompetitionProps,
|
|
@@ -14,6 +14,7 @@ type CompetitionInfoCardProps = {
|
|
|
14
14
|
player?:MyPlayerProps,
|
|
15
15
|
}
|
|
16
16
|
const CompetitionInfoCard = ({ competition, competition_type, competition_result_type, competition_payouts }:CompetitionInfoCardProps) => {
|
|
17
|
+
const C = useColors();
|
|
17
18
|
const [ expanded, setExpanded ] = useState(false);
|
|
18
19
|
|
|
19
20
|
const cl = competition.market_type == 'FOR_MONEY' ? '$' : 'E'
|
|
@@ -28,71 +29,74 @@ const CompetitionInfoCard = ({ competition, competition_type, competition_result
|
|
|
28
29
|
|
|
29
30
|
const renderPayouts = (data: { item:CompetitionPayoutTypeProps, index:number }) => {
|
|
30
31
|
return (
|
|
31
|
-
<View style={{
|
|
32
|
-
<Text style={{ flex:1 }} theme='
|
|
33
|
-
<Text theme='
|
|
32
|
+
<View type='row' transparent style={{ padding:8, borderBottomWidth:1, borderColor:C.borders.light }}>
|
|
33
|
+
<Text style={{ flex:1 }} theme='h2'>{CompetitionHelpers.formatPlace(data.item.tier)}{data.item.tier!= 1 ? ' Or Better': ''}</Text>
|
|
34
|
+
<Text theme='h2'>Split {data.item.payout}%</Text>
|
|
34
35
|
</View>
|
|
35
36
|
)
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
return (
|
|
39
|
-
<View nativeID="competition_details"
|
|
40
|
-
<
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
<View float nativeID="competition_details">
|
|
41
|
+
<Button
|
|
42
|
+
style={{ flexDirection:'row', alignItems:'center', borderBottomWidth:expanded?1:0, borderColor:C.borders.light }}
|
|
43
|
+
transparent
|
|
44
|
+
onPress={() => setExpanded(!expanded)}>
|
|
45
|
+
<Icons.SettingsIcon size={18} color={C.text.h1} />
|
|
46
|
+
<View transparent style={{ flex:1, marginLeft:10 }}>
|
|
47
|
+
<Text theme="h1">COMPETITION DETAILS</Text>
|
|
48
|
+
<Text style={{ marginTop: 4 }} theme="description">Detailed Information on this competition</Text>
|
|
45
49
|
</View>
|
|
46
|
-
<View style={{ margin:10 }}>
|
|
47
|
-
<Text color={
|
|
50
|
+
<View transparent style={{ margin:10 }}>
|
|
51
|
+
<Text size={16} color={C.text.success} weight='bold'>{cl}{potential_winnings.toFixed(2)}</Text>
|
|
48
52
|
</View>
|
|
49
|
-
<Icons.ChevronIcon direction={expanded?'up':'down'} color={
|
|
50
|
-
</
|
|
53
|
+
<Icons.ChevronIcon direction={expanded?'up':'down'} color={C.text.h1} size={8} />
|
|
54
|
+
</Button>
|
|
51
55
|
{expanded ?
|
|
52
|
-
<View style={{
|
|
53
|
-
<View style={
|
|
54
|
-
<Text style={{flex:1}} theme="
|
|
55
|
-
<Text theme="
|
|
56
|
+
<View transparent style={{ padding:20 }}>
|
|
57
|
+
<View transparent type='row' style={{ padding:5 }}>
|
|
58
|
+
<Text style={{flex:1}} theme="description">Competition Type</Text>
|
|
59
|
+
<Text theme="h2">{competition_type.type.toUpperCase()}</Text>
|
|
56
60
|
</View>
|
|
57
61
|
{competition_type.type == 'pick' ?
|
|
58
|
-
<View style={
|
|
59
|
-
<Text style={{flex:1}} theme="
|
|
60
|
-
<Text theme="
|
|
62
|
+
<View transparent type='row' style={{ padding:5 }}>
|
|
63
|
+
<Text style={{flex:1}} theme="description">Max Pick Count</Text>
|
|
64
|
+
<Text theme="h2">{competition.max_pick_count} Picks</Text>
|
|
61
65
|
</View>
|
|
62
66
|
:
|
|
63
|
-
<View style={
|
|
64
|
-
<Text style={{flex:1}} theme="
|
|
65
|
-
<Text theme="
|
|
67
|
+
<View transparent type='row' style={{ padding:5 }}>
|
|
68
|
+
<Text style={{flex:1}} theme="description">Initial Balance</Text>
|
|
69
|
+
<Text theme="h2">E{competition.initial_balance}</Text>
|
|
66
70
|
</View>
|
|
67
71
|
}
|
|
68
|
-
<View style={
|
|
69
|
-
|
|
70
|
-
<Text theme="
|
|
72
|
+
<View transparent type='row' style={{ padding:5 }}>
|
|
73
|
+
<Text style={{flex:1}} theme="description">Current Payout</Text>
|
|
74
|
+
<Text theme="h2">{cl}{potential_winnings.toFixed(2)}</Text>
|
|
71
75
|
</View>
|
|
72
76
|
{competition.prize_override ?
|
|
73
|
-
<View style={{ padding:10, borderRadius:8, backgroundColor:
|
|
74
|
-
<Text size={14} color={
|
|
75
|
-
<View
|
|
77
|
+
<View transparent style={{ padding:10, borderRadius:8, backgroundColor:C.text.gold }}>
|
|
78
|
+
<Text size={14} color={C.text.h1} weight='bold'>Additional Prize</Text>
|
|
79
|
+
<View type='row'>
|
|
76
80
|
<Image
|
|
77
81
|
source={{ uri: competition.prize_image?.url ?? 'https://res.cloudinary.com/hoabts6mc/image/upload/v1649737862/be_logo_jte2ux.webp' }}
|
|
78
82
|
style={{ height:50, width:50, borderRadius:4 }}
|
|
79
83
|
resizeMode='cover'
|
|
80
84
|
/>
|
|
81
|
-
<Text style={{ marginLeft:10 }} size={14} weight='bold' color={
|
|
85
|
+
<Text style={{ marginLeft:10 }} size={14} weight='bold' color={C.text.h1}>{competition.prize_override}</Text>
|
|
82
86
|
</View>
|
|
83
87
|
</View>
|
|
84
88
|
:<></>}
|
|
85
|
-
<View style={
|
|
86
|
-
<Text style={{flex:1}} theme="
|
|
87
|
-
<Text theme="
|
|
89
|
+
<View transparent type='row' style={{ padding:5 }}>
|
|
90
|
+
<Text style={{flex:1}} theme="description">Entries</Text>
|
|
91
|
+
<Text theme="h2">{competition.tickets_sold} / {competition.available_tickets}</Text>
|
|
88
92
|
</View>
|
|
89
|
-
<View style={
|
|
90
|
-
<Text style={{flex:1}} theme="
|
|
91
|
-
<Text theme="
|
|
93
|
+
<View transparent type='row' style={{ padding:5 }}>
|
|
94
|
+
<Text style={{flex:1}} theme="description">Payout Type</Text>
|
|
95
|
+
<Text theme="h1">{competition_result_type.label.toUpperCase()}</Text>
|
|
92
96
|
</View>
|
|
93
|
-
<View style={{ padding:10, borderRadius:8, backgroundColor:
|
|
94
|
-
<Text style={{ padding:5 }} theme="
|
|
95
|
-
<View style={{ padding:10 }}>
|
|
97
|
+
<View transparent style={{ marginTop:10, padding:10, borderRadius:8, backgroundColor:C.views.illiquidMarket }}>
|
|
98
|
+
<Text style={{ padding:5 }} theme="h2">{competition_result_type.description}</Text>
|
|
99
|
+
<View transparent style={{ padding:10 }}>
|
|
96
100
|
<FlatList
|
|
97
101
|
data={competition_payouts.sort((a,b) => b.tier - a.tier)}
|
|
98
102
|
renderItem={renderPayouts}
|
|
@@ -105,101 +109,7 @@ const CompetitionInfoCard = ({ competition, competition_type, competition_result
|
|
|
105
109
|
</View>
|
|
106
110
|
)
|
|
107
111
|
|
|
108
|
-
|
|
109
|
-
return (
|
|
110
|
-
<View>
|
|
111
|
-
<View nativeID="competition_info">
|
|
112
|
-
<View style={{ padding:10 }}>
|
|
113
|
-
<Text size={16} color={Colors.shades.white} weight='bold' textAlign="center">{competition.competition_name}</Text>
|
|
114
|
-
{competition_type ?
|
|
115
|
-
<View style={{ flexDirection:'row', justifyContent:'center', padding:10}}>
|
|
116
|
-
|
|
117
|
-
<View style={{ padding:10, marginRight:4, justifyContent:'center', backgroundColor: CompetitionHelpers.getCompTypeColor(competition_type), borderRadius:4 }}>
|
|
118
|
-
<Text size={12} color={Colors.shades.white} weight='semibold'>{competition_type.type_label}</Text>
|
|
119
|
-
</View>
|
|
120
|
-
<View style={{ flexDirection:'row', alignItems:'center', padding:10, marginLeft:4, backgroundColor: Colors.shades.white, borderRadius:4 }}>
|
|
121
|
-
<Text style={{ marginRight:5 }} size={12} color={Colors.brand.midnight} weight='semibold'>{competition.invite_only?'Private':'Public'}</Text>
|
|
122
|
-
{competition.invite_only ?
|
|
123
|
-
<Icons.EyeOffIcon color={Colors.brand.midnight} size={14}/>
|
|
124
|
-
:
|
|
125
|
-
<Icons.EyeOnIcon color={Colors.brand.midnight} size={14}/>
|
|
126
|
-
}
|
|
127
|
-
</View>
|
|
128
|
-
<TouchableOpacity
|
|
129
|
-
style={{ flexDirection:'row', alignItems:'center', padding:10, marginLeft:8, backgroundColor: Colors.incentive.gold, borderRadius:4 }}
|
|
130
|
-
onPress={() => onViewRules ? onViewRules(): console.log('')}>
|
|
131
|
-
{competition.prize_image ?
|
|
132
|
-
<Image
|
|
133
|
-
source={{ uri: competition.prize_image.url }}
|
|
134
|
-
style={{ height:20, width:20, marginRight:10 }}
|
|
135
|
-
resizeMode="center"
|
|
136
|
-
/>
|
|
137
|
-
:<></>}
|
|
138
|
-
<Text size={12} color={Colors.shades.white} weight='semibold'>VIEW RULES</Text>
|
|
139
|
-
</TouchableOpacity>
|
|
140
|
-
</View>
|
|
141
|
-
:<></>}
|
|
142
|
-
<View style={{ flexDirection:'row', padding:10, justifyContent:'center' }}>
|
|
143
|
-
<View style={{ padding:10, borderRightWidth:1, borderColor:Colors.shades.shade600 }}>
|
|
144
|
-
<Text color={Colors.shades.white} size={16} weight='bold' textAlign="center">{cl}{potential_winnings.toFixed(2)}</Text>
|
|
145
|
-
<Text style={{ marginTop:3 }} color={Colors.shades.white} size={12} textAlign="center">POT</Text>
|
|
146
|
-
</View>
|
|
147
|
-
<View style={{ padding:10, borderRightWidth:1, borderColor:Colors.shades.shade600 }}>
|
|
148
|
-
<Text color={Colors.shades.white} size={16} weight='bold' textAlign="center">{competition.tickets_sold} / {competition.available_tickets}</Text>
|
|
149
|
-
<Text style={{ marginTop:3 }} color={Colors.shades.white} size={12} textAlign="center">ENTRIES</Text>
|
|
150
|
-
</View>
|
|
151
|
-
{competition_type?.type == 'pick' ?
|
|
152
|
-
<View style={{ padding:10 }}>
|
|
153
|
-
<Text color={Colors.shades.white} size={16} weight='bold' textAlign="center">{competition.max_pick_count}</Text>
|
|
154
|
-
<Text style={{ marginTop:3 }} color={Colors.shades.white} size={12} textAlign="center">PICKS</Text>
|
|
155
|
-
</View>
|
|
156
|
-
:competition_type?.type == 'wager' ?
|
|
157
|
-
<View style={{ padding:10 }}>
|
|
158
|
-
<Text color={Colors.shades.white} size={16} weight='bold' textAlign="center">{competition.initial_balance}</Text>
|
|
159
|
-
<Text style={{ marginTop:3 }} color={Colors.shades.white} size={12} textAlign="center">INIT. BALANCE</Text>
|
|
160
|
-
</View>
|
|
161
|
-
:<></>}
|
|
162
|
-
</View>
|
|
163
|
-
</View>
|
|
164
|
-
</View>
|
|
165
|
-
<View nativeID="competition_actions" style={{ flexDirection:'row', padding:10 }}>
|
|
166
|
-
<TouchableOpacity
|
|
167
|
-
style={{ padding:10, borderRadius:22, borderWidth:1, borderColor:Colors.shades.white, marginRight:10, justifyContent:'center', alignItems:'center' }}
|
|
168
|
-
onPress={() => handleShare()}>
|
|
169
|
-
<Icons.ShareIcon size={14} color={Colors.shades.white}/>
|
|
170
|
-
</TouchableOpacity>
|
|
171
|
-
<Button
|
|
172
|
-
title={competition.entered?can_leave?'Leave':'My Picks':'Preview Events'}
|
|
173
|
-
padding={10}
|
|
174
|
-
style={{ flex:1, marginRight:3 }}
|
|
175
|
-
title_color={can_leave?Colors.utility.error:Colors.shades.white}
|
|
176
|
-
onPress={() => {
|
|
177
|
-
if(can_leave && onLeave){ return onLeave() }
|
|
178
|
-
return onViewEvents()
|
|
179
|
-
}}
|
|
180
|
-
borderRadius={22}
|
|
181
|
-
borderWidth={1}
|
|
182
|
-
backgroundColor="transparent"
|
|
183
|
-
borderColor={can_leave?Colors.utility.error:Colors.shades.white}
|
|
184
|
-
/>
|
|
185
|
-
<Button
|
|
186
|
-
title={competition.entered || !can_enter ? 'In Progress' : 'Enter Competition'}
|
|
187
|
-
padding={10}
|
|
188
|
-
disabled={competition.entered || !can_enter}
|
|
189
|
-
style={{ flex:1, marginLeft:3 }}
|
|
190
|
-
title_color={Colors.shades.white}
|
|
191
|
-
onPress={() => {
|
|
192
|
-
if(competition.entered){ return }
|
|
193
|
-
return onEnter(competition.competition_id)
|
|
194
|
-
}}
|
|
195
|
-
borderRadius={22}
|
|
196
|
-
backgroundColor={ competition.entered ? Colors.accents.accent100 : Colors.utility.success}
|
|
197
|
-
borderWidth={1}
|
|
198
|
-
/>
|
|
199
|
-
</View>
|
|
200
|
-
</View>
|
|
201
|
-
)
|
|
202
|
-
*/
|
|
112
|
+
|
|
203
113
|
}
|
|
204
114
|
|
|
205
115
|
export default CompetitionInfoCard
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React, { useEffect, useState } from "react"
|
|
2
|
-
import { FlatList, Image,
|
|
2
|
+
import { FlatList, Image, ActivityIndicator } from "react-native"
|
|
3
3
|
import type { CompetitionProps, CompetitionRecordProps, CompetitionResultProps, CompetitionTypeProps, PublicPlayerProps } from "../../types"
|
|
4
4
|
import { CompetitionApi, CompetitionHelpers, CompetitionResultApi } from "../api"
|
|
5
|
-
import {
|
|
5
|
+
import { Icons } from "../../Components"
|
|
6
6
|
import Colors from "../../constants/colors"
|
|
7
7
|
import { view_styles } from "../../constants/styles"
|
|
8
|
+
import { Button, Text, View } from "../../Components/Themed"
|
|
9
|
+
import { useColors } from "../../constants/useColors"
|
|
8
10
|
|
|
9
11
|
type CompetitionLeaderboardProps = {
|
|
10
12
|
competition:CompetitionProps,
|
|
@@ -18,7 +20,8 @@ type CompetitionLeaderboardProps = {
|
|
|
18
20
|
onLeaderSelect:(player:PublicPlayerProps) => void
|
|
19
21
|
}
|
|
20
22
|
|
|
21
|
-
const CompetitionLeaderboard = ({ competition, competition_type,
|
|
23
|
+
const CompetitionLeaderboard = ({ competition, competition_type, viewer_id, view_mode, onSeeFull, onClose, onLeaderSelect }:CompetitionLeaderboardProps) => {
|
|
24
|
+
const C = useColors();
|
|
22
25
|
const [ expanded, setExpanded ] = useState(false);
|
|
23
26
|
const [ data, setData ] = useState<{
|
|
24
27
|
loading:boolean,
|
|
@@ -73,101 +76,106 @@ const CompetitionLeaderboard = ({ competition, competition_type, width, height,
|
|
|
73
76
|
|
|
74
77
|
const is_pacer = competition.pacer_id == data.item.player_id ? true : false
|
|
75
78
|
return (
|
|
76
|
-
<
|
|
79
|
+
<Button
|
|
80
|
+
float
|
|
77
81
|
onPress={() => onLeaderSelect(player)}
|
|
78
|
-
style={{ flexDirection:'row',
|
|
82
|
+
style={{ flexDirection:'row', alignItems:'center', margin:3, borderRadius:22, padding:12, paddingLeft:15, paddingRight:15 }}>
|
|
79
83
|
{is_pacer ?
|
|
80
|
-
<View nativeID="pacer"
|
|
81
|
-
<Icons.PacerCarIcon size={28}/>
|
|
84
|
+
<View transparent nativeID="pacer">
|
|
85
|
+
<Icons.PacerCarIcon size={28} color={C.text.h1}/>
|
|
82
86
|
</View>
|
|
83
87
|
:
|
|
84
|
-
<View nativeID="place" style={{ padding:5 }}>
|
|
85
|
-
<Text
|
|
88
|
+
<View transparent nativeID="place" style={{ padding:5 }}>
|
|
89
|
+
<Text theme="description">{CompetitionHelpers.formatPlace(data.item.place)}</Text>
|
|
86
90
|
</View>
|
|
87
91
|
}
|
|
88
|
-
<View nativeID="image" style={{ paddingLeft:10, paddingRight:10 }}>
|
|
92
|
+
<View transparent nativeID="image" style={{ paddingLeft:10, paddingRight:10 }}>
|
|
89
93
|
<Image
|
|
90
94
|
source={{ uri: player.profile_pic }}
|
|
91
95
|
style={{ height:30, width:30, borderRadius:100 }}
|
|
92
96
|
resizeMode="cover"
|
|
93
97
|
/>
|
|
94
98
|
</View>
|
|
95
|
-
<View nativeID="details" style={{ flex:1 }}>
|
|
96
|
-
<Text size={12}
|
|
99
|
+
<View transparent nativeID="details" style={{ flex:1 }}>
|
|
100
|
+
<Text size={12} theme="h2">{player.username}</Text>
|
|
97
101
|
{competition_type?.type == 'wager' ?
|
|
98
|
-
<Text style={{ marginTop:3 }}
|
|
102
|
+
<Text style={{ marginTop:3 }} theme="description">{record.earnings.toFixed(2)} Earned ({record.remaining_stakes.toFixed(2)} at risk)</Text>
|
|
99
103
|
:
|
|
100
|
-
<Text style={{ marginTop:3 }}
|
|
104
|
+
<Text style={{ marginTop:3 }} theme="description">{record.wins} - {record.losses} - {record.draws} ({record.remaining_picks} Remaining)</Text>
|
|
101
105
|
}
|
|
102
106
|
</View>
|
|
103
|
-
<View nativeID="winnings">
|
|
107
|
+
<View transparent nativeID="winnings">
|
|
104
108
|
<Text size={12} color={Colors.brand.slate} weight='regular'>{cl}{data.item.winnings.toFixed(2)}</Text>
|
|
105
109
|
</View>
|
|
106
|
-
</
|
|
110
|
+
</Button>
|
|
107
111
|
)
|
|
108
112
|
}
|
|
109
113
|
|
|
110
114
|
return (
|
|
111
|
-
<View
|
|
115
|
+
<View float nativeID="leaderboard">
|
|
112
116
|
{view_mode == 'short' ?
|
|
113
|
-
<
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
117
|
+
<Button
|
|
118
|
+
style={{ flexDirection:'row', alignItems:'center', borderBottomWidth:expanded?1:0, borderColor:C.borders.light }}
|
|
119
|
+
transparent
|
|
120
|
+
onPress={() => setExpanded(!expanded)}>
|
|
121
|
+
<Icons.SettingsIcon size={18} color={C.text.h1} />
|
|
122
|
+
<View transparent style={{ flex:1, marginLeft:10 }}>
|
|
123
|
+
<Text theme="h1">COMPETITION LEADERBOARD</Text>
|
|
124
|
+
<Text style={{ marginTop: 4 }} theme="description">Leaderboard showing current standings</Text>
|
|
118
125
|
</View>
|
|
119
|
-
<Icons.ChevronIcon direction={expanded?'up':'down'} color={
|
|
120
|
-
</
|
|
126
|
+
<Icons.ChevronIcon direction={expanded?'up':'down'} color={C.text.h1} size={8} />
|
|
127
|
+
</Button>
|
|
128
|
+
|
|
121
129
|
:<></>}
|
|
122
130
|
{expanded || view_mode == 'full' ?
|
|
123
|
-
<View
|
|
131
|
+
<View transparent type='body'>
|
|
124
132
|
{viewer_record && viewer_result && viewer ?
|
|
125
|
-
<View>
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
</
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
</
|
|
150
|
-
</
|
|
151
|
-
</
|
|
133
|
+
<View transparent style={{ padding:10, marginBottom:10, borderTopRightRadius:8, borderTopLeftRadius:8, borderBottomWidth:1, borderColor:C.borders.light }}>
|
|
134
|
+
<Text size={14} theme="h1">MY RESULTS</Text>
|
|
135
|
+
<Button
|
|
136
|
+
float
|
|
137
|
+
style={{ flexDirection:'row', marginTop:10, marginBottom:10, alignItems:'center', borderRadius:22, padding:12, paddingLeft:15, paddingRight:15 }}>
|
|
138
|
+
<View transparent nativeID="place" style={{ padding:5 }}>
|
|
139
|
+
<Text size={12} theme='h2'>{CompetitionHelpers.formatPlace(viewer_result.place)}</Text>
|
|
140
|
+
</View>
|
|
141
|
+
<View transparent nativeID="image" style={{ paddingLeft:10, paddingRight:10 }}>
|
|
142
|
+
<Image
|
|
143
|
+
source={{ uri: viewer.profile_pic }}
|
|
144
|
+
style={{ height:30, width:30, borderRadius:100 }}
|
|
145
|
+
resizeMode="cover"
|
|
146
|
+
/>
|
|
147
|
+
</View>
|
|
148
|
+
<View transparent nativeID="details" style={{ flex:1 }}>
|
|
149
|
+
<Text size={12} theme="h2">{viewer.username}</Text>
|
|
150
|
+
{competition_type?.type == 'wager' ?
|
|
151
|
+
<Text style={{ marginTop:3 }} theme='description'>{viewer_record.earnings.toFixed(2)} Earned ({viewer_record.remaining_stakes.toFixed(2)} at risk)</Text>
|
|
152
|
+
:
|
|
153
|
+
<Text style={{ marginTop:3 }} theme='description'>{viewer_record.wins} - {viewer_record.losses} - {viewer_record.draws} ({viewer_record.remaining_picks} Remaining)</Text>
|
|
154
|
+
}
|
|
155
|
+
</View>
|
|
156
|
+
<View nativeID="winnings">
|
|
157
|
+
<Text size={12} theme="light" weight='bold'>{cl}{viewer_result.winnings.toFixed(2)}</Text>
|
|
158
|
+
</View>
|
|
159
|
+
</Button>
|
|
152
160
|
</View>
|
|
153
161
|
:<></>}
|
|
154
|
-
<
|
|
162
|
+
<View transparent style={{ padding:10 }}>
|
|
155
163
|
{loading ?
|
|
156
|
-
<ActivityIndicator style={{ alignSelf:'center', padding:10 }} size='large' color={
|
|
164
|
+
<ActivityIndicator style={{ alignSelf:'center', padding:10 }} size='large' color={C.text.h1} />
|
|
157
165
|
:<></>}
|
|
166
|
+
<Text size={14} theme="h1" style={{ marginBottom:10 }}>MY RESULTS</Text>
|
|
158
167
|
<FlatList
|
|
159
168
|
data={results}
|
|
160
169
|
renderItem={renderResults}
|
|
161
170
|
keyExtractor={(item, index) => item.competition_result_id ? item.competition_result_id.toString() : index.toString()}
|
|
162
171
|
/>
|
|
163
172
|
|
|
164
|
-
</
|
|
173
|
+
</View>
|
|
165
174
|
{view_mode == 'short' ?
|
|
166
175
|
<Button
|
|
167
176
|
style={{ backgroundColor:undefined }}
|
|
168
177
|
title='View Full Leaderboard'
|
|
169
|
-
|
|
170
|
-
title_size={14}
|
|
178
|
+
type='text'
|
|
171
179
|
onPress={() => onSeeFull()}
|
|
172
180
|
/>
|
|
173
181
|
:<></>}
|