be-components 3.3.6 → 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 +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 +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 +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.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 +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 +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,10 +1,12 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { FlatList } from 'react-native';
|
|
3
3
|
import { view_styles } from '../../constants/styles';
|
|
4
|
-
import { Checkbox
|
|
4
|
+
import { Checkbox } from '../../Components';
|
|
5
5
|
import Colors from '../../constants/colors';
|
|
6
6
|
import type { PlayerBalanceProps, PlayerSquareProps, SquareProps } from '../../types';
|
|
7
7
|
import BidToggle from './BidToggle';
|
|
8
|
+
import { Button, Text, View } from '../../Components/Themed';
|
|
9
|
+
import { useColors } from '../../constants/useColors';
|
|
8
10
|
|
|
9
11
|
type BidFormProps = {
|
|
10
12
|
player_id?:string,
|
|
@@ -21,7 +23,11 @@ type BidFormProps = {
|
|
|
21
23
|
square_bids:PlayerSquareProps[],
|
|
22
24
|
squares:SquareProps[]
|
|
23
25
|
}
|
|
26
|
+
|
|
27
|
+
const form_sections = ['header','bids','actions']
|
|
28
|
+
|
|
24
29
|
const BidForm = ({ player_id, player_balance, market_type, home_abbr, away_abbr, submit_ready, square_bids, squares, onSubmitBid, onClearBids, onBidAmountChange, onRequestAuthenticate }:BidFormProps) => {
|
|
30
|
+
const C = useColors();
|
|
25
31
|
const [ promo_balance, setPromoBalance ] = useState(false);
|
|
26
32
|
const cl = market_type == 'FOR_MONEY' ? '$' : 'E'
|
|
27
33
|
const total_bid_amount = square_bids.reduce((a,b) => a + b.purchase_price, 0)
|
|
@@ -33,76 +39,93 @@ const BidForm = ({ player_id, player_balance, market_type, home_abbr, away_abbr,
|
|
|
33
39
|
let square = squares.find(s => s.sq_square_id == data.item.sq_square_id)
|
|
34
40
|
if(!square){ return ( <></> ) }
|
|
35
41
|
return (
|
|
36
|
-
<View style={{
|
|
37
|
-
<View style={{flex:1}}>
|
|
38
|
-
<Text theme=
|
|
39
|
-
<Text theme="
|
|
42
|
+
<View type='row' transparent style={{ borderBottomWidth:1, borderColor:C.borders.light, padding:5}}>
|
|
43
|
+
<View transparent style={{flex:1}}>
|
|
44
|
+
<Text theme='h2'>SQUARE: {home_abbr}: {square.square_score_x}, {away_abbr}: {square.square_score_y}</Text>
|
|
45
|
+
<Text theme="description">Current Bid: {cl}{square.last_purchase_price.toFixed(2)}</Text>
|
|
40
46
|
</View>
|
|
41
|
-
<View>
|
|
47
|
+
<View transparent>
|
|
42
48
|
<BidToggle sq_square_id={data.item.sq_square_id} amount={data.item.purchase_price} cl={cl} onAmountChange={(dir) => onBidAmountChange(data.item, square, dir)}/>
|
|
43
49
|
</View>
|
|
44
50
|
</View>
|
|
45
51
|
)
|
|
46
52
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
<View style={{
|
|
53
|
-
<
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
<
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
<View style={{ ...view_styles.section_body }}>
|
|
61
|
-
<FlatList data={square_bids.sort((a,b) => parseInt(a.sq_square_id) - parseInt(b.sq_square_id))} renderItem={renderBids} keyExtractor={(item) => `b-${item.sq_square_id}`}/>
|
|
62
|
-
<View style={view_styles.body_row}>
|
|
63
|
-
<Text style={{ flex:1 }} theme='body'>Total</Text>
|
|
64
|
-
<Text theme='header_2'>{cl}{total_bid_amount.toFixed(2)}</Text>
|
|
53
|
+
|
|
54
|
+
const renderSections = (data:{ item:string, index:number }) => {
|
|
55
|
+
switch(data.item){
|
|
56
|
+
case 'header':
|
|
57
|
+
return (
|
|
58
|
+
<View type='header' style={{ flexDirection:'row', alignItems:'center', padding:10 }}>
|
|
59
|
+
<View transparent style={{ flex:1 }}>
|
|
60
|
+
<Text theme="h1">SET BID AMOUNTS</Text>
|
|
61
|
+
<Text style={{ marginTop:3 }} color={Colors.utility.error} size={12} weight='regular'>All purchases are final and cannot be removed</Text>
|
|
62
|
+
</View>
|
|
63
|
+
<View transparent style={{ height:24, width:24, borderRadius:100, backgroundColor:Colors.highlights.highlight200, justifyContent:'center', alignItems:'center', marginLeft: 5 }}>
|
|
64
|
+
<Text size={12} color={C.text.white} textAlign='center'>{square_bids.length}</Text>
|
|
65
|
+
</View>
|
|
65
66
|
</View>
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
/>
|
|
75
|
-
<View style={{ flex:1, marginLeft:10 }}>
|
|
76
|
-
<Text size={12} color={Colors.shades.white} weight='bold'>${player_balance.promo_balance.toFixed(2)} Promotion Available</Text>
|
|
77
|
-
<Text size={10} color={Colors.shades.white} weight='regular' style={{ marginTop:3 }}>Press / Click here to use promo balance</Text>
|
|
67
|
+
)
|
|
68
|
+
case 'bids':
|
|
69
|
+
return (
|
|
70
|
+
<View type='body' transparent style={{ padding:20, flexGrow:1 }}>
|
|
71
|
+
<FlatList data={square_bids.sort((a,b) => parseInt(a.sq_square_id) - parseInt(b.sq_square_id))} renderItem={renderBids} keyExtractor={(item) => `b-${item.sq_square_id}`}/>
|
|
72
|
+
<View transparent style={view_styles.body_row}>
|
|
73
|
+
<Text style={{ flex:1 }} theme='description'>Total</Text>
|
|
74
|
+
<Text theme='h2'>{cl}{total_bid_amount.toFixed(2)}</Text>
|
|
78
75
|
</View>
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
<ActivityIndicator size='small' color={Colors.shades.white}/>
|
|
94
|
-
:
|
|
95
|
-
<Text size={14} weight='semibold' textAlign='center' color={Colors.shades.white}>{submit_ready.is_ready?'Submit Bids':'Review Bids'}</Text>
|
|
96
|
-
}
|
|
97
|
-
</TouchableOpacity>
|
|
98
|
-
:
|
|
99
|
-
<TouchableOpacity style={{ flex:2/3, padding:12, borderRadius:4, backgroundColor:Colors.highlights.highlight400, justifyContent:'center', alignItems:'center', marginLeft:4 }} onPress={() => onRequestAuthenticate()}>
|
|
100
|
-
<Text size={14} weight='semibold' textAlign='center' color={Colors.shades.white}>Sign Up</Text>
|
|
101
|
-
</TouchableOpacity>
|
|
102
|
-
}
|
|
76
|
+
{player_balance && player_balance.promo_balance > 0 ?
|
|
77
|
+
<Button transparent style={{ flexDirection:'row', alignItems:'center', margin:5, padding:5, backgroundColor:C.text.gold, borderRadius:8 }} onPress={() => setPromoBalance(!promo_balance)}>
|
|
78
|
+
<Checkbox
|
|
79
|
+
checked={promo_balance}
|
|
80
|
+
disabled
|
|
81
|
+
size={26}
|
|
82
|
+
onSelect={() => setPromoBalance(!promo_balance)}
|
|
83
|
+
/>
|
|
84
|
+
<View transparent style={{ flex:1, marginLeft:10 }}>
|
|
85
|
+
<Text size={12} color={C.text.white} weight='bold'>${player_balance.promo_balance.toFixed(2)} Promotion Available</Text>
|
|
86
|
+
<Text size={10} color={C.text.white} weight='regular' style={{ marginTop:3 }}>Press / Click here to use promo balance</Text>
|
|
87
|
+
</View>
|
|
88
|
+
</Button>
|
|
89
|
+
:<></>}
|
|
103
90
|
</View>
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
default: return <></>
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return (
|
|
98
|
+
<View float style={{ padding:0, maxHeight:550, maxWidth:600 }}>
|
|
99
|
+
<FlatList
|
|
100
|
+
key='bid_form_sections'
|
|
101
|
+
data={form_sections}
|
|
102
|
+
renderItem={renderSections}
|
|
103
|
+
keyExtractor={(item) => item}
|
|
104
|
+
/>
|
|
105
|
+
<View type='footer' style={{ flexDirection:'row', alignItems:'center', padding:10}}>
|
|
106
|
+
<Button
|
|
107
|
+
title='CLEAR'
|
|
108
|
+
style={{ flex:1 }}
|
|
109
|
+
type='close'
|
|
110
|
+
onPress={() => onClearBids()}>
|
|
111
|
+
</Button>
|
|
112
|
+
{player_id ?
|
|
113
|
+
<Button
|
|
114
|
+
loading={submit_ready.is_loading}
|
|
115
|
+
style={{ flex:3, marginLeft:10, backgroundColor:submit_ready.is_ready?Colors.highlights.highlight400:Colors.highlights.highlight200, opacity:submit_ready.is_loading || !can_submit?0.5:1 }}
|
|
116
|
+
title_color={C.text.white}
|
|
117
|
+
onPress={() => onSubmitBid(promo_balance)}
|
|
118
|
+
disabled={!can_submit}
|
|
119
|
+
title={submit_ready.is_ready?'Submit Bids':'Review Bids'}
|
|
120
|
+
>
|
|
121
|
+
|
|
122
|
+
</Button>
|
|
123
|
+
:
|
|
124
|
+
<Button style={{ flex:2/3, padding:12, borderRadius:4, backgroundColor:Colors.highlights.highlight400, justifyContent:'center', alignItems:'center', marginLeft:4 }} onPress={() => onRequestAuthenticate()}>
|
|
125
|
+
<Text size={14} weight='semibold' textAlign='center' color={Colors.shades.white}>Sign Up</Text>
|
|
126
|
+
</Button>
|
|
127
|
+
}
|
|
104
128
|
</View>
|
|
105
|
-
</ScrollView>
|
|
106
129
|
</View>
|
|
107
130
|
)
|
|
108
131
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TouchableOpacity, View } from "react-native"
|
|
3
|
-
import { Text } from "../../Components"
|
|
4
2
|
import Colors from "../../constants/colors"
|
|
5
3
|
import { view_styles } from "../../constants/styles"
|
|
4
|
+
import { Button, Text, View } from '../../Components/Themed';
|
|
6
5
|
|
|
7
6
|
type BidToggleProps = {
|
|
8
7
|
cl: string,
|
|
@@ -14,13 +13,13 @@ type BidToggleProps = {
|
|
|
14
13
|
const BidToggle = ({ cl, amount, onAmountChange }:BidToggleProps) => {
|
|
15
14
|
return (
|
|
16
15
|
<View style={{ ...view_styles.body_row, borderWidth:1, borderColor:Colors.accents.accent200, borderRadius:4, padding:0 }}>
|
|
17
|
-
<
|
|
18
|
-
<Text size={16} weight='semibold'
|
|
19
|
-
</
|
|
20
|
-
<Text style={{ marginLeft:4, marginRight:4 }} theme="
|
|
21
|
-
<
|
|
22
|
-
<Text size={16} weight='semibold'
|
|
23
|
-
</
|
|
16
|
+
<Button style={{ justifyContent:'center', alignItems:'center', padding:12, borderRightWidth:1, borderRightColor:Colors.accents.accent200}} onPress={() => onAmountChange('decrease')}>
|
|
17
|
+
<Text size={16} weight='semibold' theme='action' textAlign='center'>-</Text>
|
|
18
|
+
</Button>
|
|
19
|
+
<Text style={{ marginLeft:4, marginRight:4 }} theme="h2">{cl}{amount.toFixed(2)}</Text>
|
|
20
|
+
<Button style={{ justifyContent:'center', alignItems:'center', padding:12, borderLeftWidth:1, borderLeftColor:Colors.accents.accent200}} onPress={() => onAmountChange('increase')}>
|
|
21
|
+
<Text size={16} weight='semibold' theme='action' textAlign='center'>+</Text>
|
|
22
|
+
</Button>
|
|
24
23
|
</View>
|
|
25
24
|
)
|
|
26
25
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Icons, Text } from "../../Components"
|
|
3
|
-
import { view_styles } from "../../constants/styles"
|
|
4
|
-
import Colors from "../../constants/colors"
|
|
1
|
+
import { Icons } from "../../Components"
|
|
5
2
|
import type { PlayerSquareProps, SquareProps, SquaresCompetitionProps } from "../../types"
|
|
6
3
|
import React, { useState } from "react"
|
|
4
|
+
import { Button, Text, View } from "../../Components/Themed"
|
|
5
|
+
import { useColors } from "../../constants/useColors"
|
|
7
6
|
|
|
8
7
|
type BoardStatsProps = {
|
|
9
8
|
squares_competition:SquaresCompetitionProps,
|
|
@@ -12,6 +11,7 @@ type BoardStatsProps = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
const BoardStats = ({ squares_competition, squares, player_squares}:BoardStatsProps) => {
|
|
14
|
+
const C = useColors();
|
|
15
15
|
const [ expanded, setExpanded ] = useState(false);
|
|
16
16
|
|
|
17
17
|
let total_payout = squares_competition.potential_winnings
|
|
@@ -21,37 +21,37 @@ const BoardStats = ({ squares_competition, squares, player_squares}:BoardStatsPr
|
|
|
21
21
|
const ownership_pct = active_ps.length / squares.length * 100
|
|
22
22
|
|
|
23
23
|
return (
|
|
24
|
-
<View style={{
|
|
25
|
-
<
|
|
26
|
-
<Icons.PieIcon color={
|
|
27
|
-
<View style={{ flex:1, marginLeft:10 }}>
|
|
28
|
-
<Text theme="
|
|
29
|
-
<Text style={{ marginTop: 4 }} theme="
|
|
24
|
+
<View float style={{ minWidth:350 }}>
|
|
25
|
+
<Button transparent style={{ flexDirection:'row', alignItems:'center' }} onPress={() => setExpanded(!expanded)}>
|
|
26
|
+
<Icons.PieIcon color={C.text.h1} size={18} />
|
|
27
|
+
<View transparent style={{ flex:1, marginLeft:10 }}>
|
|
28
|
+
<Text theme="h1">BOARD STATS</Text>
|
|
29
|
+
<Text style={{ marginTop: 4 }} theme="description">Current statistics from the squares board</Text>
|
|
30
30
|
</View>
|
|
31
|
-
<Icons.ChevronIcon direction={expanded ? 'up' : 'down'} color={
|
|
32
|
-
</
|
|
31
|
+
<Icons.ChevronIcon direction={expanded ? 'up' : 'down'} color={C.text.h1} size={8} />
|
|
32
|
+
</Button>
|
|
33
33
|
{expanded ?
|
|
34
|
-
<View style={
|
|
35
|
-
<View style={{
|
|
36
|
-
<View style={{flex:1, marginRight:10}}>
|
|
37
|
-
<Text theme="
|
|
38
|
-
<Text style={{ marginTop:3 }} theme="
|
|
34
|
+
<View transparent style={{ padding:10 }}>
|
|
35
|
+
<View transparent type='row' style={{ borderBottomWidth:1, borderColor:C.borders.light, padding:10 }}>
|
|
36
|
+
<View transparent style={{flex:1, marginRight:10}}>
|
|
37
|
+
<Text theme="h2">Unbid Squares</Text>
|
|
38
|
+
<Text style={{ marginTop:3 }} theme="description">Percent of the board that has no bids</Text>
|
|
39
39
|
</View>
|
|
40
|
-
<Text theme="
|
|
40
|
+
<Text theme="h2">{(squares.length - active_ps.length).toFixed()} ({(100 - ownership_pct).toFixed(2)}%)</Text>
|
|
41
41
|
</View>
|
|
42
|
-
<View style={{
|
|
43
|
-
<View style={{flex:1, marginRight:10}}>
|
|
44
|
-
<Text theme="
|
|
45
|
-
<Text style={{ marginTop:3 }} theme="
|
|
42
|
+
<View transparent type='row' style={{ borderBottomWidth:1, borderColor:C.borders.light, padding:10 }}>
|
|
43
|
+
<View transparent style={{flex:1, marginRight:10}}>
|
|
44
|
+
<Text theme="h2">Current Total Payout</Text>
|
|
45
|
+
<Text style={{ marginTop:3 }} theme="description">The current total amount to be paid out to the winners</Text>
|
|
46
46
|
</View>
|
|
47
|
-
<Text size={16} color={
|
|
47
|
+
<Text size={16} color={C.text.success} weight='bold'>${total_payout.toFixed(2)}</Text>
|
|
48
48
|
</View>
|
|
49
|
-
<View style={{
|
|
50
|
-
<View style={{flex:1, marginRight:10}}>
|
|
51
|
-
<Text theme="
|
|
52
|
-
<Text style={{ marginTop:3 }} theme="
|
|
49
|
+
<View transparent type='row' style={{ borderBottomWidth:1, borderColor:C.borders.light, padding:10 }}>
|
|
50
|
+
<View transparent style={{flex:1, marginRight:10}}>
|
|
51
|
+
<Text theme="h2">Current Iteration Payout</Text>
|
|
52
|
+
<Text style={{ marginTop:3 }} theme="description">The current amount to be paid out per quarter</Text>
|
|
53
53
|
</View>
|
|
54
|
-
<Text size={16} color={
|
|
54
|
+
<Text size={16} color={C.text.success} weight='bold'>${iteration_payout.toFixed(2)}</Text>
|
|
55
55
|
</View>
|
|
56
56
|
</View>
|
|
57
57
|
:<></>}
|
|
@@ -1,68 +1,70 @@
|
|
|
1
|
-
import { Image
|
|
1
|
+
import { Image } from "react-native"
|
|
2
2
|
import { view_styles } from "../../constants/styles"
|
|
3
|
-
import { Icons
|
|
3
|
+
import { Icons } from "../../Components"
|
|
4
4
|
import type { EventProps, LeagueProps } from "../../types"
|
|
5
5
|
import moment from "moment-mini"
|
|
6
|
-
import Colors from "../../constants/colors"
|
|
7
6
|
import React, { useState } from "react"
|
|
7
|
+
import { Button, Text, View } from "../../Components/Themed"
|
|
8
|
+
import { useColors } from "../../constants/useColors"
|
|
8
9
|
|
|
9
10
|
type EventCardProps = {
|
|
10
11
|
league?:LeagueProps,
|
|
11
12
|
event:EventProps
|
|
12
13
|
}
|
|
13
14
|
const EventCard = ({ event, league }:EventCardProps) => {
|
|
15
|
+
const C = useColors();
|
|
14
16
|
const [ expanded, setExpanded ] = useState(true);
|
|
15
17
|
const overtime_occurred = event.event_scoring && event.event_scoring.length > 4 ? true : false;
|
|
16
18
|
|
|
17
19
|
return (
|
|
18
|
-
<View style={{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
20
|
+
<View float style={{ minWidth:350 }}>
|
|
21
|
+
<Button transparent style={{ flexDirection:'row', alignItems:'center' }} onPress={() => setExpanded(!expanded)}>
|
|
22
|
+
<View transparent style={{ flexDirection:'row', alignItems:'center', paddingRight:5, borderRightWidth:1, borderColor:C.borders.light }}>
|
|
23
|
+
{league ?
|
|
24
|
+
<Image
|
|
25
|
+
source={{ uri: league.league_image }}
|
|
26
|
+
style={{ height:30, width:30, borderRadius:4, marginRight:5 }}
|
|
27
|
+
resizeMode="cover"
|
|
28
|
+
/>
|
|
29
|
+
:<></>}
|
|
30
|
+
</View>
|
|
31
|
+
<View transparent style={{ flex:1, marginLeft:5 }}>
|
|
32
|
+
<Text theme="h1">{event.away?.market_name} {event.away?.name} vs {event.home?.market_name} {event.home?.name}</Text>
|
|
33
|
+
<Text style={{ marginTop:3 }} theme="description">{event.time_detail == 'scheduled' ? moment(event.scheduled_datetime).format('MMM D - hh:mm a') : event.time_detail}</Text>
|
|
34
|
+
</View>
|
|
35
|
+
<Icons.ChevronIcon direction={expanded?'up':'down'} color={C.text.h1} size={8} />
|
|
36
|
+
</Button>
|
|
35
37
|
{event.event_scoring && expanded ?
|
|
36
|
-
<View style={
|
|
37
|
-
<View style={view_styles.body_row}>
|
|
38
|
+
<View transparent style={{ borderTopWidth:1, borderColor:C.borders.light, padding:10 }}>
|
|
39
|
+
<View transparent style={view_styles.body_row}>
|
|
38
40
|
<Image
|
|
39
41
|
source={{ uri: event.away?.image?.url }}
|
|
40
42
|
style={{ height:20, width:20, borderRadius:4, marginRight:5 }}
|
|
41
43
|
resizeMode="cover"
|
|
42
44
|
/>
|
|
43
|
-
<Text style={{ flex:1 }} theme="
|
|
44
|
-
<View style={{ flex:1, flexDirection:'row', alignItems:'center' }}>
|
|
45
|
+
<Text style={{ flex:1 }} theme="description">{event.away?.abbr}</Text>
|
|
46
|
+
<View transparent style={{ flex:1, flexDirection:'row', alignItems:'center' }}>
|
|
45
47
|
{event.event_scoring.sort((a,b) => a.period - b.period).map(s => {
|
|
46
48
|
return (
|
|
47
|
-
<View style={{ flex:1 }}>
|
|
48
|
-
<Text theme={overtime_occurred && s.period == 4 ? '
|
|
49
|
+
<View transparent style={{ flex:1 }}>
|
|
50
|
+
<Text theme={overtime_occurred && s.period == 4 ? 'error': 'h2'}>{s.away_cumulative_score}</Text>
|
|
49
51
|
</View>
|
|
50
52
|
)
|
|
51
53
|
})}
|
|
52
54
|
</View>
|
|
53
55
|
</View>
|
|
54
|
-
<View style={view_styles.body_row}>
|
|
56
|
+
<View transparent style={view_styles.body_row}>
|
|
55
57
|
<Image
|
|
56
58
|
source={{ uri: event.home?.image?.url }}
|
|
57
59
|
style={{ height:20, width:20, borderRadius:4, marginRight:5 }}
|
|
58
60
|
resizeMode="cover"
|
|
59
61
|
/>
|
|
60
|
-
<Text style={{ flex:1 }} theme="
|
|
61
|
-
<View style={{ flex:1, flexDirection:'row', alignItems:'center' }}>
|
|
62
|
+
<Text style={{ flex:1 }} theme="description">{event.home?.abbr}</Text>
|
|
63
|
+
<View transparent style={{ flex:1, flexDirection:'row', alignItems:'center' }}>
|
|
62
64
|
{event.event_scoring.map(s => {
|
|
63
65
|
return (
|
|
64
|
-
<View style={{ flex:1 }}>
|
|
65
|
-
<Text theme={overtime_occurred && s.period == 4 ? '
|
|
66
|
+
<View transparent style={{ flex:1 }}>
|
|
67
|
+
<Text theme={overtime_occurred && s.period == 4 ? 'error': 'h2'}>{s.home_cumulative_score}</Text>
|
|
66
68
|
</View>
|
|
67
69
|
)
|
|
68
70
|
})}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FlatList } from 'react-native';
|
|
2
2
|
import type { PlayerSquareProps, SquareOfferProps, SquareProps, SquareValueProps } from '../../types';
|
|
3
|
-
import {
|
|
4
|
-
import { Button, Icons, Text } from '../../Components';
|
|
3
|
+
import { Icons } from '../../Components';
|
|
5
4
|
import React, { useState } from 'react';
|
|
6
5
|
import Colors from '../../constants/colors';
|
|
7
6
|
import { SquaresApi } from '../api';
|
|
7
|
+
import { Button, Text, View } from '../../Components/Themed';
|
|
8
|
+
import { useColors } from '../../constants/useColors';
|
|
8
9
|
|
|
9
10
|
type MySquaresCardProps = {
|
|
10
11
|
player_squares:PlayerSquareProps[],
|
|
@@ -18,8 +19,8 @@ type MySquaresCardProps = {
|
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
const MySquaresCard = ({ player_squares, squares, away_abbr, home_abbr, square_offers, my_square_values, comp_status, onSquareOffer }: MySquaresCardProps) => {
|
|
22
|
+
const C = useColors();
|
|
21
23
|
const [ expanded, setExpanded ] = useState(false);
|
|
22
|
-
|
|
23
24
|
const renderPlayerSquares = (data: { item:SquareValueProps, index: number }) => {
|
|
24
25
|
const player_square = player_squares.find(ps => ps.sq_square_id == data.item.sq_square_id);
|
|
25
26
|
const square = squares.find(s => s.sq_square_id == data.item.sq_square_id);
|
|
@@ -27,18 +28,18 @@ const MySquaresCard = ({ player_squares, squares, away_abbr, home_abbr, square_o
|
|
|
27
28
|
const square_offer = square_offers.find(so => so.sq_player_square_id == player_square.sq_player_square_id && so.status == 'offered');
|
|
28
29
|
const square_value = my_square_values.find(sv => sv.sq_square_id == player_square.sq_square_id);
|
|
29
30
|
return (
|
|
30
|
-
<View style={{
|
|
31
|
-
<View style={{ flex:1 }}>
|
|
32
|
-
<Text theme='
|
|
33
|
-
<Text style={{ marginTop:3 }} theme='
|
|
31
|
+
<View transparent type='row' style={{ padding:5, borderBottomWidth:1, borderColor:C.borders.light }}>
|
|
32
|
+
<View transparent style={{ flex:1 }}>
|
|
33
|
+
<Text theme='h2'>SQUARE: {home_abbr}: {square.square_score_x}, {away_abbr}: {square.square_score_y}</Text>
|
|
34
|
+
<Text style={{ marginTop:3 }} theme='description'>${player_square.purchase_price.toFixed(2)}</Text>
|
|
34
35
|
</View>
|
|
35
36
|
{square_value ?
|
|
36
|
-
<View style={{ paddingRight:20, paddingLeft:20 }}>
|
|
37
|
-
<Text size={14} weight='bold' color={square_value.expected_value > 0 ?
|
|
37
|
+
<View transparent style={{ paddingRight:20, paddingLeft:20 }}>
|
|
38
|
+
<Text size={14} weight='bold' color={square_value.expected_value > 0 ? C.text.success : C.text.error}>EV ${square_value.expected_payout.toFixed(2)}</Text>
|
|
38
39
|
</View>
|
|
39
40
|
:<></>}
|
|
40
41
|
{comp_status == 'in_progress' ?
|
|
41
|
-
<View>
|
|
42
|
+
<View transparent>
|
|
42
43
|
{square_offer ?
|
|
43
44
|
<Button
|
|
44
45
|
title='WITHDRAW'
|
|
@@ -49,8 +50,8 @@ const MySquaresCard = ({ player_squares, squares, away_abbr, home_abbr, square_o
|
|
|
49
50
|
:
|
|
50
51
|
<Button
|
|
51
52
|
title='SELL'
|
|
52
|
-
title_color={
|
|
53
|
-
backgroundColor={
|
|
53
|
+
title_color={C.text.white}
|
|
54
|
+
backgroundColor={C.text.action}
|
|
54
55
|
onPress={() => onSquareOffer(square, 'add')}
|
|
55
56
|
/>
|
|
56
57
|
}
|
|
@@ -62,21 +63,21 @@ const MySquaresCard = ({ player_squares, squares, away_abbr, home_abbr, square_o
|
|
|
62
63
|
|
|
63
64
|
|
|
64
65
|
return (
|
|
65
|
-
<View style={{
|
|
66
|
-
<
|
|
67
|
-
<View style={{ height:18, width:18, borderRadius:100, backgroundColor:Colors.highlights.highlight200, justifyContent:'center', alignItems:'center' }}>
|
|
66
|
+
<View float style={{ minWidth:350 }}>
|
|
67
|
+
<Button transparent style={{ flexDirection:'row', alignItems:'center' }} onPress={() => setExpanded(!expanded)}>
|
|
68
|
+
<View transparent style={{ height:18, width:18, borderRadius:100, backgroundColor:Colors.highlights.highlight200, justifyContent:'center', alignItems:'center' }}>
|
|
68
69
|
<Text size={10} weight='bold' color={Colors.shades.white} textAlign='center'>{player_squares.length}</Text>
|
|
69
70
|
</View>
|
|
70
|
-
<View style={{flex:1, marginLeft:10}}>
|
|
71
|
-
<Text theme='
|
|
72
|
-
<Text style={{ marginTop:3 }} theme='
|
|
71
|
+
<View transparent style={{flex:1, marginLeft:10}}>
|
|
72
|
+
<Text theme='h1'>MY SQUARES</Text>
|
|
73
|
+
<Text style={{ marginTop:3 }} theme='description'>Square you either own or have the highest bid on</Text>
|
|
73
74
|
</View>
|
|
74
|
-
<Icons.ChevronIcon direction={expanded?'up':'down'} size={8} color={
|
|
75
|
-
</
|
|
75
|
+
<Icons.ChevronIcon direction={expanded?'up':'down'} size={8} color={C.text.h1}/>
|
|
76
|
+
</Button>
|
|
76
77
|
{expanded ?
|
|
77
|
-
<View style={
|
|
78
|
+
<View transparent style={{ padding:20 }}>
|
|
78
79
|
<FlatList
|
|
79
|
-
data={my_square_values.sort((a,b) => b.expected_value - a.expected_value)}
|
|
80
|
+
data={my_square_values.filter(sv => player_squares.map(ps => ps.sq_square_id.toString()).includes(sv.sq_square_id.toString())).sort((a,b) => b.expected_value - a.expected_value)}
|
|
80
81
|
renderItem={renderPlayerSquares}
|
|
81
82
|
keyExtractor={(item) => item.sq_square_id.toString()}
|
|
82
83
|
/>
|