be-components 3.3.5 → 3.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js +21 -28
- package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/LoginForm.js +93 -109
- package/lib/commonjs/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/StrategyForm.js +246 -342
- package/lib/commonjs/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/commonjs/Authenticator/index.js +22 -32
- package/lib/commonjs/Authenticator/index.js.map +1 -1
- package/lib/commonjs/Competition/components/AthleteMarketCard.js +39 -26
- package/lib/commonjs/Competition/components/AthleteMarketCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionInfoCard.js +115 -175
- package/lib/commonjs/Competition/components/CompetitionInfoCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionLeaderboard.js +97 -95
- package/lib/commonjs/Competition/components/CompetitionLeaderboard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionPlay.js +99 -113
- package/lib/commonjs/Competition/components/CompetitionPlay.js.map +1 -1
- package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js +56 -75
- package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js.map +1 -1
- package/lib/commonjs/Competition/components/LeaderPicks.js +4 -4
- package/lib/commonjs/Competition/components/LeaderPicks.js.map +1 -1
- package/lib/commonjs/Competition/components/MarketsCard.js +22 -12
- package/lib/commonjs/Competition/components/MarketsCard.js.map +1 -1
- package/lib/commonjs/Competition/components/TeamEventCard.js +46 -37
- package/lib/commonjs/Competition/components/TeamEventCard.js.map +1 -1
- package/lib/commonjs/Competition/components/WagerPickForm.js +73 -85
- package/lib/commonjs/Competition/components/WagerPickForm.js.map +1 -1
- package/lib/commonjs/Competition/index.js +236 -216
- package/lib/commonjs/Competition/index.js.map +1 -1
- package/lib/commonjs/Components/Button.js +49 -6
- package/lib/commonjs/Components/Button.js.map +1 -1
- package/lib/commonjs/Components/ConfirmationModal.js +29 -29
- package/lib/commonjs/Components/ConfirmationModal.js.map +1 -1
- package/lib/commonjs/Components/Themed.js +281 -0
- package/lib/commonjs/Components/Themed.js.map +1 -0
- package/lib/commonjs/MarketComponents/components/AthleteMarket/index.js +43 -52
- package/lib/commonjs/MarketComponents/components/AthleteMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.js +50 -61
- package/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/EventMarket/index.js +48 -54
- package/lib/commonjs/MarketComponents/components/EventMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/MarketButton/api/index.js +2 -3
- package/lib/commonjs/MarketComponents/components/MarketButton/api/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/MarketButton/index.js +22 -22
- package/lib/commonjs/MarketComponents/components/MarketButton/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/MatchMarket/index.js +65 -63
- package/lib/commonjs/MarketComponents/components/MatchMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/index.js +239 -220
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.js +48 -57
- package/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TournamentMarket/index.js +203 -131
- package/lib/commonjs/MarketComponents/components/TournamentMarket/index.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js +49 -55
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicStatus.js +55 -88
- package/lib/commonjs/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js +94 -121
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/DOBManager.js +42 -46
- package/lib/commonjs/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/EmailManager.js +66 -86
- package/lib/commonjs/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js +60 -78
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js +62 -81
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js +19 -27
- package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js +31 -48
- package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js +69 -92
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js +63 -65
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/VouchCard.js +106 -132
- package/lib/commonjs/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/commonjs/ProfileManager/index.js +29 -31
- package/lib/commonjs/ProfileManager/index.js.map +1 -1
- package/lib/commonjs/Share/api/index.js +13 -6
- package/lib/commonjs/Share/api/index.js.map +1 -1
- package/lib/commonjs/Share/index.js +11 -11
- package/lib/commonjs/Share/index.js.map +1 -1
- package/lib/commonjs/Squares/components/BidForm.js +142 -120
- package/lib/commonjs/Squares/components/BidForm.js.map +1 -1
- package/lib/commonjs/Squares/components/BidToggle.js +10 -11
- package/lib/commonjs/Squares/components/BidToggle.js.map +1 -1
- package/lib/commonjs/Squares/components/BoardStats.js +63 -47
- package/lib/commonjs/Squares/components/BoardStats.js.map +1 -1
- package/lib/commonjs/Squares/components/EventCard.js +48 -29
- package/lib/commonjs/Squares/components/EventCard.js.map +1 -1
- package/lib/commonjs/Squares/components/MySquaresCard.js +48 -31
- package/lib/commonjs/Squares/components/MySquaresCard.js.map +1 -1
- package/lib/commonjs/Squares/components/MyStatsCard.js +155 -121
- package/lib/commonjs/Squares/components/MyStatsCard.js.map +1 -1
- package/lib/commonjs/Squares/components/OfferForm.js +32 -32
- package/lib/commonjs/Squares/components/OfferForm.js.map +1 -1
- package/lib/commonjs/Squares/components/PrizeCard.js +44 -35
- package/lib/commonjs/Squares/components/PrizeCard.js.map +1 -1
- package/lib/commonjs/Squares/components/ResultsCard.js +37 -24
- package/lib/commonjs/Squares/components/ResultsCard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquareOffersCard.js +20 -13
- package/lib/commonjs/Squares/components/SquareOffersCard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquareOwners.js +44 -38
- package/lib/commonjs/Squares/components/SquareOwners.js.map +1 -1
- package/lib/commonjs/Squares/components/SquaresBoard.js +77 -59
- package/lib/commonjs/Squares/components/SquaresBoard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquaresDetails.js +46 -36
- package/lib/commonjs/Squares/components/SquaresDetails.js.map +1 -1
- package/lib/commonjs/Squares/index.js +207 -150
- package/lib/commonjs/Squares/index.js.map +1 -1
- package/lib/commonjs/constants/colors.js +18 -3
- package/lib/commonjs/constants/colors.js.map +1 -1
- package/lib/commonjs/constants/styles.js +72 -2
- package/lib/commonjs/constants/styles.js.map +1 -1
- package/lib/commonjs/constants/useColors.js +153 -0
- package/lib/commonjs/constants/useColors.js.map +1 -0
- package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js +19 -26
- package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
- package/lib/module/Authenticator/Components/LoginForm.js +54 -70
- package/lib/module/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/module/Authenticator/Components/StrategyForm.js +227 -322
- package/lib/module/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/module/Authenticator/index.js +16 -26
- package/lib/module/Authenticator/index.js.map +1 -1
- package/lib/module/Competition/components/AthleteMarketCard.js +28 -15
- package/lib/module/Competition/components/AthleteMarketCard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionInfoCard.js +82 -141
- package/lib/module/Competition/components/CompetitionInfoCard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionLeaderboard.js +68 -66
- package/lib/module/Competition/components/CompetitionLeaderboard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionPlay.js +65 -79
- package/lib/module/Competition/components/CompetitionPlay.js.map +1 -1
- package/lib/module/Competition/components/EnterCompetitionPrompt.js +35 -54
- package/lib/module/Competition/components/EnterCompetitionPrompt.js.map +1 -1
- package/lib/module/Competition/components/LeaderPicks.js +4 -4
- package/lib/module/Competition/components/LeaderPicks.js.map +1 -1
- package/lib/module/Competition/components/MarketsCard.js +15 -5
- package/lib/module/Competition/components/MarketsCard.js.map +1 -1
- package/lib/module/Competition/components/TeamEventCard.js +24 -15
- package/lib/module/Competition/components/TeamEventCard.js.map +1 -1
- package/lib/module/Competition/components/WagerPickForm.js +44 -56
- package/lib/module/Competition/components/WagerPickForm.js.map +1 -1
- package/lib/module/Competition/index.js +215 -195
- package/lib/module/Competition/index.js.map +1 -1
- package/lib/module/Components/Button.js +49 -6
- package/lib/module/Components/Button.js.map +1 -1
- package/lib/module/Components/ConfirmationModal.js +21 -21
- package/lib/module/Components/ConfirmationModal.js.map +1 -1
- package/lib/module/Components/Themed.js +269 -0
- package/lib/module/Components/Themed.js.map +1 -0
- package/lib/module/MarketComponents/components/AthleteMarket/index.js +29 -38
- package/lib/module/MarketComponents/components/AthleteMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/AthleteTournamentMarket/index.js +36 -47
- package/lib/module/MarketComponents/components/AthleteTournamentMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/EventMarket/index.js +35 -41
- package/lib/module/MarketComponents/components/EventMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/MarketButton/api/index.js +2 -3
- package/lib/module/MarketComponents/components/MarketButton/api/index.js.map +1 -1
- package/lib/module/MarketComponents/components/MarketButton/index.js +17 -17
- package/lib/module/MarketComponents/components/MarketButton/index.js.map +1 -1
- package/lib/module/MarketComponents/components/MatchMarket/index.js +50 -48
- package/lib/module/MarketComponents/components/MatchMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/TeamEventMarket/index.js +176 -157
- package/lib/module/MarketComponents/components/TeamEventMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/TeamTournamentMarket/index.js +34 -43
- package/lib/module/MarketComponents/components/TeamTournamentMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/TournamentMarket/index.js +172 -100
- package/lib/module/MarketComponents/components/TournamentMarket/index.js.map +1 -1
- package/lib/module/ProfileManager/Components/BasicInfoManager.js +28 -34
- package/lib/module/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/BasicStatus.js +28 -61
- package/lib/module/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/module/ProfileManager/Components/CodeRedeem.js +55 -81
- package/lib/module/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/module/ProfileManager/Components/DOBManager.js +27 -31
- package/lib/module/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/EmailManager.js +42 -61
- package/lib/module/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PasswordManager.js +36 -54
- package/lib/module/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PhoneManager.js +37 -56
- package/lib/module/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfilePicManager.js +10 -18
- package/lib/module/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWelcome.js +21 -38
- package/lib/module/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWizard.js +42 -65
- package/lib/module/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/module/ProfileManager/Components/SettingsManager.js +45 -47
- package/lib/module/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/VouchCard.js +69 -95
- package/lib/module/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/module/ProfileManager/index.js +18 -20
- package/lib/module/ProfileManager/index.js.map +1 -1
- package/lib/module/Share/api/index.js +11 -6
- package/lib/module/Share/api/index.js.map +1 -1
- package/lib/module/Share/index.js +13 -13
- package/lib/module/Share/index.js.map +1 -1
- package/lib/module/Squares/components/BidForm.js +138 -116
- package/lib/module/Squares/components/BidForm.js.map +1 -1
- package/lib/module/Squares/components/BidToggle.js +6 -7
- package/lib/module/Squares/components/BidToggle.js.map +1 -1
- package/lib/module/Squares/components/BoardStats.js +44 -27
- package/lib/module/Squares/components/BoardStats.js.map +1 -1
- package/lib/module/Squares/components/EventCard.js +34 -15
- package/lib/module/Squares/components/EventCard.js.map +1 -1
- package/lib/module/Squares/components/MySquaresCard.js +36 -19
- package/lib/module/Squares/components/MySquaresCard.js.map +1 -1
- package/lib/module/Squares/components/MyStatsCard.js +98 -64
- package/lib/module/Squares/components/MyStatsCard.js.map +1 -1
- package/lib/module/Squares/components/OfferForm.js +12 -12
- package/lib/module/Squares/components/OfferForm.js.map +1 -1
- package/lib/module/Squares/components/PrizeCard.js +25 -16
- package/lib/module/Squares/components/PrizeCard.js.map +1 -1
- package/lib/module/Squares/components/ResultsCard.js +27 -14
- package/lib/module/Squares/components/ResultsCard.js.map +1 -1
- package/lib/module/Squares/components/SquareOffersCard.js +16 -9
- package/lib/module/Squares/components/SquareOffersCard.js.map +1 -1
- package/lib/module/Squares/components/SquareOwners.js +35 -28
- package/lib/module/Squares/components/SquareOwners.js.map +1 -1
- package/lib/module/Squares/components/SquaresBoard.js +52 -34
- package/lib/module/Squares/components/SquaresBoard.js.map +1 -1
- package/lib/module/Squares/components/SquaresDetails.js +30 -19
- package/lib/module/Squares/components/SquaresDetails.js.map +1 -1
- package/lib/module/Squares/index.js +206 -149
- package/lib/module/Squares/index.js.map +1 -1
- package/lib/module/constants/colors.js +18 -3
- package/lib/module/constants/colors.js.map +1 -1
- package/lib/module/constants/styles.js +71 -1
- package/lib/module/constants/styles.js.map +1 -1
- package/lib/module/constants/useColors.js +145 -0
- package/lib/module/constants/useColors.js.map +1 -0
- package/lib/typescript/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/LoginForm.d.ts +2 -2
- package/lib/typescript/lib/commonjs/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/StrategyForm.d.ts +2 -4
- package/lib/typescript/lib/commonjs/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/index.d.ts +2 -2
- package/lib/typescript/lib/commonjs/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/AthleteMarketCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionLeaderboard.d.ts +1 -3
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionPlay.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/MarketsCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/TeamEventCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/WagerPickForm.d.ts +1 -2
- package/lib/typescript/lib/commonjs/Competition/components/WagerPickForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Button.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Components/Button.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/ConfirmationModal.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Themed.d.ts +6 -0
- package/lib/typescript/lib/commonjs/Components/Themed.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.d.ts +2 -2
- package/lib/typescript/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/EventMarket/index.d.ts +2 -2
- package/lib/typescript/lib/commonjs/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MarketButton/api/index.d.ts +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MarketButton/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MatchMarket/index.d.ts +5 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.d.ts +2 -2
- package/lib/typescript/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/TournamentMarket/index.d.ts +3 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWelcome.d.ts +1 -2
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/index.d.ts +1 -2
- package/lib/typescript/lib/commonjs/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Share/api/index.d.ts +1 -1
- package/lib/typescript/lib/commonjs/Share/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/BidForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/BidToggle.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/BoardStats.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/EventCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/MySquaresCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/MyStatsCard.d.ts +1 -2
- package/lib/typescript/lib/commonjs/Squares/components/MyStatsCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/PrizeCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/ResultsCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquareOffersCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquareOwners.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquaresBoard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquaresDetails.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/constants/colors.d.ts +9 -0
- package/lib/typescript/lib/commonjs/constants/styles.d.ts +95 -8
- package/lib/typescript/lib/commonjs/constants/useColors.d.ts +58 -0
- package/lib/typescript/lib/commonjs/constants/useColors.d.ts.map +1 -0
- package/lib/typescript/lib/module/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts +3 -4
- package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts +3 -6
- package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/index.d.ts +4 -4
- package/lib/typescript/lib/module/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/AthleteMarketCard.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/AthleteMarketCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionInfoCard.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts +2 -5
- package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionPlay.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/CompetitionPlay.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/EnterCompetitionPrompt.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/MarketsCard.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/MarketsCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/TeamEventCard.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/TeamEventCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/WagerPickForm.d.ts +2 -4
- package/lib/typescript/lib/module/Competition/components/WagerPickForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/index.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Button.d.ts +2 -1
- package/lib/typescript/lib/module/Components/Button.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/ConfirmationModal.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Spring.d.ts +1 -1
- package/lib/typescript/lib/module/Components/Themed.d.ts +9 -0
- package/lib/typescript/lib/module/Components/Themed.d.ts.map +1 -0
- package/lib/typescript/lib/module/MarketComponents/components/AthleteMarket/index.d.ts +3 -4
- package/lib/typescript/lib/module/MarketComponents/components/AthleteMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/AthleteTournamentMarket/index.d.ts +3 -4
- package/lib/typescript/lib/module/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/EventMarket/index.d.ts +3 -4
- package/lib/typescript/lib/module/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/MarketButton/api/index.d.ts +2 -2
- package/lib/typescript/lib/module/MarketComponents/components/MarketButton/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/MarketButton/index.d.ts +1 -2
- package/lib/typescript/lib/module/MarketComponents/components/MarketButton/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/MatchMarket/index.d.ts +6 -3
- package/lib/typescript/lib/module/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/TeamEventMarket/index.d.ts +3 -3
- package/lib/typescript/lib/module/MarketComponents/components/TeamEventMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/TeamTournamentMarket/index.d.ts +3 -4
- package/lib/typescript/lib/module/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/TournamentMarket/index.d.ts +4 -3
- package/lib/typescript/lib/module/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/BasicInfoManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/BasicStatus.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/CodeRedeem.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/DOBManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/EmailManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/PasswordManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/PhoneManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/ProfilePicManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWelcome.d.ts +2 -4
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWizard.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/SettingsManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts +1 -4
- package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/index.d.ts +2 -4
- package/lib/typescript/lib/module/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Share/api/index.d.ts +1 -1
- package/lib/typescript/lib/module/Share/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Share/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/BidForm.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/BidForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/BidToggle.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/BidToggle.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/BoardStats.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/BoardStats.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/EventCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/EventCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/MySquaresCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/MySquaresCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/MyStatsCard.d.ts +2 -4
- package/lib/typescript/lib/module/Squares/components/MyStatsCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/OfferForm.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/OfferForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/PrizeCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/PrizeCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/ResultsCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/ResultsCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquareOffersCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquareOffersCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquareOwners.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquareOwners.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquaresBoard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquaresBoard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquaresDetails.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquaresDetails.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/index.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/constants/colors.d.ts +9 -0
- package/lib/typescript/lib/module/constants/styles.d.ts +95 -8
- package/lib/typescript/lib/module/constants/useColors.d.ts +57 -0
- package/lib/typescript/lib/module/constants/useColors.d.ts.map +1 -0
- package/lib/typescript/src/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts +2 -2
- package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts +2 -3
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/index.d.ts +2 -2
- package/lib/typescript/src/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/AthleteMarketCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts +1 -1
- package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionPlay.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/LeaderPicks.d.ts +1 -1
- package/lib/typescript/src/Competition/components/LeaderPicks.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/MarketsCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/TeamEventCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/WagerPickForm.d.ts +1 -1
- package/lib/typescript/src/Competition/components/WagerPickForm.d.ts.map +1 -1
- package/lib/typescript/src/Competition/index.d.ts.map +1 -1
- package/lib/typescript/src/Components/Button.d.ts +2 -1
- package/lib/typescript/src/Components/Button.d.ts.map +1 -1
- package/lib/typescript/src/Components/ConfirmationModal.d.ts.map +1 -1
- package/lib/typescript/src/Components/Themed.d.ts +38 -0
- package/lib/typescript/src/Components/Themed.d.ts.map +1 -0
- package/lib/typescript/src/MarketComponents/components/AthleteMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/AthleteMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/AthleteTournamentMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/EventMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/MarketButton/api/index.d.ts +2 -2
- package/lib/typescript/src/MarketComponents/components/MarketButton/api/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/MarketButton/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/MatchMarket/index.d.ts +5 -1
- package/lib/typescript/src/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TeamEventMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/TeamEventMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TeamTournamentMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TournamentMarket/index.d.ts +3 -1
- package/lib/typescript/src/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/index.d.ts +18 -7
- package/lib/typescript/src/MarketComponents/index.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfileWelcome.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/index.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/src/Share/api/index.d.ts +1 -1
- package/lib/typescript/src/Share/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Share/index.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/BidForm.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/BidToggle.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/BoardStats.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/EventCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/MySquaresCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/MyStatsCard.d.ts +1 -1
- package/lib/typescript/src/Squares/components/MyStatsCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/OfferForm.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/PrizeCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/ResultsCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquareOffersCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquareOwners.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquaresBoard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquaresDetails.d.ts.map +1 -1
- package/lib/typescript/src/Squares/index.d.ts.map +1 -1
- package/lib/typescript/src/constants/colors.d.ts +9 -0
- package/lib/typescript/src/constants/colors.d.ts.map +1 -1
- package/lib/typescript/src/constants/styles.d.ts +55 -1
- package/lib/typescript/src/constants/styles.d.ts.map +1 -1
- package/lib/typescript/src/constants/useColors.d.ts +57 -0
- package/lib/typescript/src/constants/useColors.d.ts.map +1 -0
- package/package.json +2 -1
- package/src/Authenticator/Components/AuthStrategyIdentifier.tsx +40 -40
- package/src/Authenticator/Components/LoginForm.tsx +50 -54
- package/src/Authenticator/Components/StrategyForm.tsx +135 -147
- package/src/Authenticator/index.tsx +16 -18
- package/src/Competition/components/AthleteMarketCard.tsx +19 -17
- package/src/Competition/components/CompetitionInfoCard.tsx +48 -138
- package/src/Competition/components/CompetitionLeaderboard.tsx +65 -57
- package/src/Competition/components/CompetitionPlay.tsx +55 -48
- package/src/Competition/components/EnterCompetitionPrompt.tsx +30 -39
- package/src/Competition/components/LeaderPicks.tsx +5 -5
- package/src/Competition/components/MarketsCard.tsx +14 -10
- package/src/Competition/components/TeamEventCard.tsx +24 -23
- package/src/Competition/components/WagerPickForm.tsx +35 -41
- package/src/Competition/index.tsx +162 -125
- package/src/Components/Button.tsx +50 -6
- package/src/Components/ConfirmationModal.tsx +13 -21
- package/src/Components/Themed.tsx +233 -0
- package/src/MarketComponents/components/AthleteMarket/index.tsx +21 -26
- package/src/MarketComponents/components/AthleteTournamentMarket/index.tsx +24 -32
- package/src/MarketComponents/components/EventMarket/index.tsx +25 -33
- package/src/MarketComponents/components/MarketButton/api/index.ts +2 -3
- package/src/MarketComponents/components/MarketButton/index.tsx +16 -15
- package/src/MarketComponents/components/MatchMarket/index.tsx +54 -57
- package/src/MarketComponents/components/TeamEventMarket/index.tsx +160 -139
- package/src/MarketComponents/components/TeamTournamentMarket/index.tsx +24 -30
- package/src/MarketComponents/components/TournamentMarket/index.tsx +117 -107
- package/src/ProfileManager/Components/BasicInfoManager.tsx +26 -29
- package/src/ProfileManager/Components/BasicStatus.tsx +29 -36
- package/src/ProfileManager/Components/CodeRedeem.tsx +50 -60
- package/src/ProfileManager/Components/DOBManager.tsx +25 -30
- package/src/ProfileManager/Components/EmailManager.tsx +37 -45
- package/src/ProfileManager/Components/PasswordManager.tsx +36 -40
- package/src/ProfileManager/Components/PhoneManager.tsx +36 -43
- package/src/ProfileManager/Components/ProfilePicManager.tsx +10 -16
- package/src/ProfileManager/Components/ProfileWelcome.tsx +19 -25
- package/src/ProfileManager/Components/ProfileWizard.tsx +42 -46
- package/src/ProfileManager/Components/SettingsManager.tsx +41 -45
- package/src/ProfileManager/Components/VouchCard.tsx +50 -59
- package/src/ProfileManager/index.tsx +16 -13
- package/src/Share/api/index.ts +9 -3
- package/src/Share/index.tsx +13 -12
- package/src/Squares/components/BidForm.tsx +85 -62
- package/src/Squares/components/BidToggle.tsx +8 -9
- package/src/Squares/components/BoardStats.tsx +28 -28
- package/src/Squares/components/EventCard.tsx +33 -31
- package/src/Squares/components/MySquaresCard.tsx +24 -23
- package/src/Squares/components/MyStatsCard.tsx +66 -68
- package/src/Squares/components/OfferForm.tsx +15 -15
- package/src/Squares/components/PrizeCard.tsx +21 -18
- package/src/Squares/components/ResultsCard.tsx +21 -18
- package/src/Squares/components/SquareOffersCard.tsx +12 -10
- package/src/Squares/components/SquareOwners.tsx +24 -23
- package/src/Squares/components/SquaresBoard.tsx +39 -42
- package/src/Squares/components/SquaresDetails.tsx +25 -24
- package/src/Squares/index.tsx +196 -144
- package/src/constants/colors.ts +55 -47
- package/src/constants/styles.ts +37 -1
- package/src/constants/useColors.tsx +131 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Image, FlatList, ActivityIndicator, ScrollView } from 'react-native';
|
|
3
3
|
import type { AthleteProps, BEEventProps, BestAvailableOrderProps, CompanyProps, CompetitionProps, EventOrderStatProps, EventProps, LeagueProps, MarketProps, MarketSideOptionProps, OrderProps, PodcastProps, SquaresCompetitionProps, TradeProps } from '../../../types';
|
|
4
4
|
import { view_styles } from '../../../constants/styles';
|
|
5
|
-
import {
|
|
5
|
+
import { Icons, LinearDiagnal } from '../../../Components';
|
|
6
6
|
import {TeamEventMarketHelpers} from './api';
|
|
7
7
|
import MarketButton from '../../components/MarketButton';
|
|
8
8
|
import Colors from '../../../constants/colors';
|
|
@@ -15,6 +15,8 @@ import { LinearGradient } from 'expo-linear-gradient';
|
|
|
15
15
|
import { useIsInViewport } from '../../../Components/ViewportObserver';
|
|
16
16
|
import ContestStatsCard from '../ContestStats';
|
|
17
17
|
import PodcastCard from '../PodcastCard';
|
|
18
|
+
import { Button, Text, View } from '../../../Components/Themed';
|
|
19
|
+
import { useColors } from '../../../constants/useColors';
|
|
18
20
|
|
|
19
21
|
type TeamEventMarketProps = {
|
|
20
22
|
event:EventProps,
|
|
@@ -24,6 +26,7 @@ type TeamEventMarketProps = {
|
|
|
24
26
|
competitions?:CompetitionProps[],
|
|
25
27
|
show_id?:string,
|
|
26
28
|
hide_liquidity?:boolean,
|
|
29
|
+
float?:boolean,
|
|
27
30
|
hot_markets_direction?:'vertical'|'horizontal'
|
|
28
31
|
show_podcasts?:boolean,
|
|
29
32
|
squares_competitions?:SquaresCompetitionProps[],
|
|
@@ -47,11 +50,9 @@ type TeamEventMarketProps = {
|
|
|
47
50
|
onActivate?:(event_id:string, event_type:string) => void
|
|
48
51
|
activate_loading?:boolean
|
|
49
52
|
}
|
|
50
|
-
const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_direction, show_id, hide_liquidity, show_podcasts, activate_loading, competitions, squares_competitions, show_grades, markets, latest_trades, best_available_orders, event_order_stats, default_price_view, onTeamSelect, onSquaresSelect, onCompetitionSelect, onExpand, onOrder, onView, onViewAdditionalMarkets, onTradeLongPress, onActivate, onEvent, onShare, onPodcastSelect }:TeamEventMarketProps) => {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
set_style = style
|
|
54
|
-
}
|
|
53
|
+
const TeamEventMarket = ({ event, league, float, style, init_expanded, hot_markets_direction, show_id, hide_liquidity, show_podcasts, activate_loading, competitions, squares_competitions, show_grades, markets, latest_trades, best_available_orders, event_order_stats, default_price_view, onTeamSelect, onSquaresSelect, onCompetitionSelect, onExpand, onOrder, onView, onViewAdditionalMarkets, onTradeLongPress, onActivate, onEvent, onShare, onPodcastSelect }:TeamEventMarketProps) => {
|
|
54
|
+
const C = useColors();
|
|
55
|
+
|
|
55
56
|
const [ market_width, setMarketWidth ] = useState(180);
|
|
56
57
|
const [ expanded_data, setExpandedData ] = useState<{
|
|
57
58
|
expanded:boolean,
|
|
@@ -155,39 +156,45 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
|
|
|
155
156
|
|
|
156
157
|
const renderCompetitions = (data:{ item:CompetitionProps, index: number }) => {
|
|
157
158
|
return (
|
|
158
|
-
<
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
<Button
|
|
160
|
+
type='text'
|
|
161
|
+
style={{ flexDirection:'row', alignItems:'center', borderBottomWidth:1, borderColor:C.borders.light }}
|
|
162
|
+
onPress={() => {
|
|
163
|
+
setCompetitionsExpanded(false);
|
|
164
|
+
onCompetitionSelect(data.item.competition_id)
|
|
165
|
+
}}>
|
|
162
166
|
<Image
|
|
163
167
|
source={{ uri: data.item.image?.url }}
|
|
164
168
|
style={{ height:25, width:25 }}
|
|
165
169
|
resizeMode='cover'
|
|
166
170
|
/>
|
|
167
|
-
<View style={{ flex:1, marginLeft:10 }}>
|
|
168
|
-
<Text theme='
|
|
171
|
+
<View transparent style={{ flex:1, marginLeft:10 }}>
|
|
172
|
+
<Text theme='description'>{data.item.competition_name}</Text>
|
|
169
173
|
</View>
|
|
170
|
-
<Icons.ChevronIcon direction='right' size={10} color={
|
|
171
|
-
</
|
|
174
|
+
<Icons.ChevronIcon direction='right' size={10} color={C.text.h1} />
|
|
175
|
+
</Button>
|
|
172
176
|
)
|
|
173
177
|
}
|
|
174
178
|
|
|
175
179
|
const renderSquaresCompetitions = (data:{ item:SquaresCompetitionProps, index: number }) => {
|
|
176
180
|
return (
|
|
177
|
-
<
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
+
<Button
|
|
182
|
+
type='text'
|
|
183
|
+
style={{ flexDirection:'row', alignItems:'center', borderBottomWidth:1, borderColor:C.borders.light }}
|
|
184
|
+
onPress={() => {
|
|
185
|
+
setCompetitionsExpanded(false);
|
|
186
|
+
onSquaresSelect(data.item.sq_comp_id)
|
|
187
|
+
}}>
|
|
181
188
|
<Image
|
|
182
189
|
source={{ uri: data.item.image?.url }}
|
|
183
190
|
style={{ height:25, width:25 }}
|
|
184
191
|
resizeMode='cover'
|
|
185
192
|
/>
|
|
186
|
-
<View style={{ flex:1, marginLeft:10 }}>
|
|
187
|
-
<Text theme='
|
|
193
|
+
<View transparent style={{ flex:1, marginLeft:10 }}>
|
|
194
|
+
<Text theme='description'>{data.item.sq_comp_name}</Text>
|
|
188
195
|
</View>
|
|
189
|
-
<Icons.ChevronIcon direction='right' size={10} color={
|
|
190
|
-
</
|
|
196
|
+
<Icons.ChevronIcon direction='right' size={10} color={C.text.h1} />
|
|
197
|
+
</Button>
|
|
191
198
|
)
|
|
192
199
|
}
|
|
193
200
|
|
|
@@ -201,7 +208,7 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
|
|
|
201
208
|
}
|
|
202
209
|
if(!trade){ return <></> }
|
|
203
210
|
return (
|
|
204
|
-
<View key={`${event.event_id}_${data.item.side}`} style={{ margin:2, width:primary_width, height:50 }}>
|
|
211
|
+
<View transparent key={`${event.event_id}_${data.item.side}`} style={{ margin:2, width:primary_width, height:50 }}>
|
|
205
212
|
<MarketButton
|
|
206
213
|
side_option={data.item}
|
|
207
214
|
market={data.market}
|
|
@@ -222,8 +229,8 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
|
|
|
222
229
|
|
|
223
230
|
const renderMarketHeaders = useCallback((data:{ item:MarketProps, index:number }) => {
|
|
224
231
|
return (
|
|
225
|
-
<View style={{ width:primary_width, marginLeft:2, marginRight:2 }}>
|
|
226
|
-
<Text size={12} color={
|
|
232
|
+
<View transparent style={{ width:primary_width, marginLeft:2, marginRight:2 }}>
|
|
233
|
+
<Text size={12} color={C.text.h1} textAlign='center'>{data.item.type.toUpperCase()}</Text>
|
|
227
234
|
</View>
|
|
228
235
|
)
|
|
229
236
|
},[primary_markets.length, primary_width])
|
|
@@ -253,11 +260,12 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
|
|
|
253
260
|
const athlete_trades = latest_trades.filter(t => t.market_type == 'FOR_MONEY' && t.market_id == data.item.market_id && t.side_type == 'athlete' && t.side_id == data.item.side_id);
|
|
254
261
|
const athlete_orders = best_available_orders.filter(t => t.market_id == data.item.market_id && t.side_type == 'athlete' && t.side_id == data.item.side_id);
|
|
255
262
|
return (
|
|
256
|
-
<View style={{ flexGrow:1 }}>
|
|
263
|
+
<View transparent style={{ flexGrow:1 }}>
|
|
257
264
|
<AthleteMarket
|
|
258
265
|
event={event}
|
|
259
266
|
event_type='team'
|
|
260
267
|
athlete={athlete}
|
|
268
|
+
float
|
|
261
269
|
direction={hot_markets_direction=='vertical' ? 'horizontal' : 'vertical'}
|
|
262
270
|
show_grades={show_grades}
|
|
263
271
|
market={market}
|
|
@@ -276,10 +284,11 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
|
|
|
276
284
|
const event_trades = latest_trades.filter(t => t.market_type == 'FOR_MONEY' && t.market_id == data.item.market_id);
|
|
277
285
|
const event_orders = best_available_orders.filter(t => t.market_id == data.item.market_id);
|
|
278
286
|
return (
|
|
279
|
-
<View>
|
|
287
|
+
<View transparent style={{ flexGrow:1 }}>
|
|
280
288
|
<EventMarket
|
|
281
289
|
event={event}
|
|
282
290
|
market={market}
|
|
291
|
+
float
|
|
283
292
|
direction={hot_markets_direction=='vertical' ? 'horizontal' : 'vertical'}
|
|
284
293
|
hide_liquidity={hide_liquidity}
|
|
285
294
|
onTradeLongPress={onTradeLongPress}
|
|
@@ -300,7 +309,7 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
|
|
|
300
309
|
const renderPrimaryMarkets = useCallback((data:{ item:MarketProps, index:number }) => {
|
|
301
310
|
const is_locked = MarketComponentHelpers.isEventMarketLocked(event, data.item.market_id);
|
|
302
311
|
return (
|
|
303
|
-
<View>
|
|
312
|
+
<View transparent>
|
|
304
313
|
<FlatList
|
|
305
314
|
key={`${event.event_id}_side_options`}
|
|
306
315
|
scrollEnabled={false}
|
|
@@ -322,9 +331,9 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
|
|
|
322
331
|
const { non_primary_markets, available } = useMemo(() => TeamEventMarketHelpers.sortNonPrimaryMarkets(TeamEventMarketHelpers.getNonPrimaryMarkets(event, markets), event_order_stats, latest_trades),[])
|
|
323
332
|
|
|
324
333
|
return (
|
|
325
|
-
<View
|
|
334
|
+
<View float={float} style={[style]}>
|
|
326
335
|
{sponsor ?
|
|
327
|
-
<LinearGradient style={{ marginTop:-1, marginLeft:-1, marginRight:-1, padding:10, flexDirection:'row', alignItems:'center', borderTopRightRadius:8, borderTopLeftRadius:8 }} start={{x: 0, y: 0}} end={{x: 1, y: 0}} colors={[sponsor.brand_primary ??
|
|
336
|
+
<LinearGradient style={{ marginTop:-1, marginLeft:-1, marginRight:-1, padding:10, flexDirection:'row', alignItems:'center', borderTopRightRadius:8, borderTopLeftRadius:8 }} start={{x: 0, y: 0}} end={{x: 1, y: 0}} colors={[sponsor.brand_primary ?? C.text.h1, sponsor.brand_secondary ?? C.text.h1]}>
|
|
328
337
|
<View style={{ height:30, width:30, borderRadius:4, backgroundColor:Colors.shades.white }}>
|
|
329
338
|
<Image
|
|
330
339
|
source={{ uri: sponsor.company_image?.url }}
|
|
@@ -359,14 +368,14 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
|
|
|
359
368
|
/>
|
|
360
369
|
:<></>}
|
|
361
370
|
{onShare ?
|
|
362
|
-
<
|
|
363
|
-
<Icons.ShareIcon size={14} color={
|
|
364
|
-
</
|
|
371
|
+
<Button type='text' style={{ marginLeft:10 }} onPress={() => onShare(event)}>
|
|
372
|
+
<Icons.ShareIcon size={14} color={C.text.action} />
|
|
373
|
+
</Button>
|
|
365
374
|
:<></>}
|
|
366
375
|
</LinearGradient>
|
|
367
376
|
:
|
|
368
|
-
<View nativeID='event_header_data' style={{ flexDirection:'row', alignItems:'center', flexWrap:'wrap', padding:10, borderBottomWidth:1, borderBottomColor:
|
|
369
|
-
<View style={{ flex:1, flexDirection:'row', alignItems:'center' }}>
|
|
377
|
+
<View transparent nativeID='event_header_data' style={{ flexDirection:'row', alignItems:'center', flexWrap:'wrap', padding:10, borderBottomWidth:1, borderBottomColor:C.borders.light }}>
|
|
378
|
+
<View transparent style={{ flex:1, flexDirection:'row', alignItems:'center' }}>
|
|
370
379
|
{league ?
|
|
371
380
|
<Image
|
|
372
381
|
source={{ uri: league.league_image }}
|
|
@@ -375,99 +384,106 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
|
|
|
375
384
|
/>
|
|
376
385
|
:<></>}
|
|
377
386
|
{show_id ?
|
|
378
|
-
<Text style={{ marginLeft:2, marginRight:3 }}
|
|
387
|
+
<Text style={{ marginLeft:2, marginRight:3 }} theme='description' selectable>{event.event_id} </Text>
|
|
379
388
|
:<></>}
|
|
380
389
|
{event.event_sub_title ?
|
|
381
|
-
<Text size={12}
|
|
390
|
+
<Text size={12} theme='description'>{event.event_sub_title}</Text>
|
|
382
391
|
:<></>}
|
|
383
392
|
</View>
|
|
384
393
|
<View style={{ flexDirection:'row', alignItems:'center' }}>
|
|
385
|
-
<Icons.TVIcon size={
|
|
386
|
-
<Text style={{ marginLeft:8 }}
|
|
394
|
+
<Icons.TVIcon size={16} color={C.text.h1} />
|
|
395
|
+
<Text style={{ marginLeft:8 }} theme='description'>{event.info?.broadcast?.network}</Text>
|
|
387
396
|
</View>
|
|
388
397
|
{onActivate && event_status != 'closed' ?
|
|
389
398
|
<Button
|
|
390
399
|
title={event_status == 'active' ? 'Refresh' : 'Activate'}
|
|
391
|
-
style={{ opacity: activate_loading ? 0.5 : 1, marginLeft:5 }}
|
|
400
|
+
style={{ opacity: activate_loading ? 0.5 : 1, marginLeft:5, padding:10 }}
|
|
392
401
|
disabled={activate_loading}
|
|
393
402
|
loading={activate_loading}
|
|
394
|
-
|
|
395
|
-
backgroundColor={Colors.utility.success}
|
|
403
|
+
type='success'
|
|
396
404
|
onPress={() => onActivate(event.event_id, 'team')}
|
|
397
405
|
/>
|
|
398
406
|
:<></>}
|
|
399
407
|
{onShare ?
|
|
400
|
-
<
|
|
401
|
-
<Icons.ShareIcon size={14} color={
|
|
402
|
-
</
|
|
408
|
+
<Button type='text' style={{ marginLeft:10 }} onPress={() => onShare(event)}>
|
|
409
|
+
<Icons.ShareIcon size={14} color={C.text.action} />
|
|
410
|
+
</Button>
|
|
403
411
|
:<></>}
|
|
404
412
|
</View>
|
|
405
413
|
}
|
|
406
|
-
<View nativeID='primary_markets' style={{ flexDirection:'row' }}>
|
|
407
|
-
<View nativeID='team_details' style={{ flex:1, padding:5, paddingRight:0 }}>
|
|
408
|
-
<
|
|
414
|
+
<View transparent nativeID='primary_markets' style={{ flexDirection:'row' }}>
|
|
415
|
+
<View transparent nativeID='team_details' style={{ flex:1, padding:5, paddingRight:0 }}>
|
|
416
|
+
<View transparent style={{ flexDirection:'row', alignItems:'center', marginTop:5, marginBottom:5, marginLeft:10 }}>
|
|
409
417
|
{show_stats ?
|
|
410
418
|
<Button
|
|
411
419
|
title='X'
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
style={{ marginRight:5 }}
|
|
415
|
-
disabled={true}
|
|
420
|
+
style={{ marginRight:5, padding:10 }}
|
|
421
|
+
type='error'
|
|
416
422
|
title_color={Colors.utility.error}
|
|
417
|
-
onPress={() =>
|
|
423
|
+
onPress={() => setShowStats(!show_stats)}
|
|
418
424
|
/>
|
|
419
425
|
:<></>}
|
|
420
426
|
{!show_stats ?
|
|
421
|
-
<View style={{ marginRight:5, height:10, width:10, borderRadius:100, backgroundColor:event_status=='active'?
|
|
427
|
+
<View style={{ marginRight:5, height:10, width:10, borderRadius:100, backgroundColor:event_status=='active'?C.text.success:event_status=='inactive'?C.text.action:C.text.error }} />
|
|
422
428
|
:<></>}
|
|
423
429
|
|
|
424
|
-
<Text size={12} color={show_stats ?
|
|
425
|
-
</
|
|
426
|
-
<
|
|
430
|
+
<Text size={12} color={show_stats ? C.text.error : C.text.action}>{show_stats ? 'Hide Boxscore': `${TeamEventMarketHelpers.getTimeDetail(event)}`}</Text>
|
|
431
|
+
</View>
|
|
432
|
+
<Button
|
|
433
|
+
disabled={!onTeamSelect}
|
|
434
|
+
style={{ ...view_styles.body_row, minHeight:48 }}
|
|
435
|
+
type='text'
|
|
436
|
+
onPress={() => onTeamSelect ? onTeamSelect(event.away_team_id) : console.log('')}
|
|
437
|
+
>
|
|
427
438
|
<Image
|
|
428
439
|
source={{ uri: event.away.image?.url }}
|
|
429
440
|
style={{ height:30, width:30 }}
|
|
430
441
|
resizeMode='cover'
|
|
431
442
|
/>
|
|
432
|
-
<View style={{ flex:1, flexDirection:'row', alignItems:'center', marginLeft:5 }}>
|
|
443
|
+
<View transparent style={{ flex:1, flexDirection:'row', alignItems:'center', marginLeft:5 }}>
|
|
433
444
|
{event.away.rank ?
|
|
434
|
-
<Text style={{ marginRight:3 }} size={12} color={
|
|
445
|
+
<Text style={{ marginRight:3 }} size={12} color={C.text.highlight} weight='semibold'>{event.away.rank}</Text>
|
|
435
446
|
:<></>}
|
|
436
|
-
<View style={{ flex:1, marginRight:5 }}>
|
|
437
|
-
<Text theme='
|
|
447
|
+
<View transparent style={{ flex:1, marginRight:5 }}>
|
|
448
|
+
<Text theme='h2'>{event.away.market_name} {event.away.name}</Text>
|
|
438
449
|
{event.away_sub_title ?
|
|
439
|
-
<Text style={{ marginTop:3 }} theme='
|
|
450
|
+
<Text style={{ marginTop:3 }} theme='description'>{event.away_sub_title}</Text>
|
|
440
451
|
:<></>}
|
|
441
452
|
</View>
|
|
442
|
-
<Text theme='
|
|
453
|
+
<Text theme='description'>{event.away_team_score}</Text>
|
|
443
454
|
</View>
|
|
444
|
-
</
|
|
445
|
-
<
|
|
455
|
+
</Button>
|
|
456
|
+
<Button
|
|
457
|
+
disabled={!onTeamSelect}
|
|
458
|
+
style={{ ...view_styles.body_row, minHeight:48 }}
|
|
459
|
+
type='text'
|
|
460
|
+
onPress={() => onTeamSelect ? onTeamSelect(event.home_team_id) : console.log('')}
|
|
461
|
+
>
|
|
446
462
|
<Image
|
|
447
463
|
source={{ uri: event.home.image?.url }}
|
|
448
464
|
style={{ height:30, width:30 }}
|
|
449
465
|
resizeMode='cover'
|
|
450
466
|
/>
|
|
451
|
-
<View style={{ flex:1, flexDirection:'row', alignItems:'center', marginLeft:5 }}>
|
|
467
|
+
<View transparent style={{ flex:1, flexDirection:'row', alignItems:'center', marginLeft:5 }}>
|
|
452
468
|
{event.home.rank ?
|
|
453
|
-
<Text style={{ marginRight:3 }} size={12} color={
|
|
469
|
+
<Text style={{ marginRight:3 }} size={12} color={C.text.highlight} weight='semibold'>{event.home.rank}</Text>
|
|
454
470
|
:<></>}
|
|
455
|
-
<View style={{ flex:1, marginRight:5 }}>
|
|
456
|
-
<Text theme='
|
|
471
|
+
<View transparent style={{ flex:1, marginRight:5 }}>
|
|
472
|
+
<Text theme='h2'>{event.home.market_name} {event.home.name}</Text>
|
|
457
473
|
{event.home_sub_title ?
|
|
458
|
-
<Text style={{ marginTop:3 }} theme='
|
|
474
|
+
<Text style={{ marginTop:3 }} theme='description'>{event.home_sub_title}</Text>
|
|
459
475
|
:<></>}
|
|
460
476
|
</View>
|
|
461
|
-
<Text theme='
|
|
477
|
+
<Text theme='description'>{event.home_team_score}</Text>
|
|
462
478
|
</View>
|
|
463
|
-
</
|
|
479
|
+
</Button>
|
|
464
480
|
</View>
|
|
465
481
|
{event_status == 'active' ?
|
|
466
|
-
<View nativeID='primary_market_details' style={{ padding:5, flex:1 }} onLayout={(ev) => {
|
|
482
|
+
<View transparent nativeID='primary_market_details' style={{ padding:5, flex:1 }} onLayout={(ev) => {
|
|
467
483
|
const { width } = ev.nativeEvent.layout
|
|
468
484
|
setMarketWidth(width);
|
|
469
485
|
}}>
|
|
470
|
-
<View style={{ marginTop:5, marginBottom:5 }}>
|
|
486
|
+
<View transparent style={{ marginTop:5, marginBottom:5 }}>
|
|
471
487
|
<FlatList
|
|
472
488
|
key={`${event.event_id}_market_headers`}
|
|
473
489
|
data={primary_markets}
|
|
@@ -487,70 +503,84 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
|
|
|
487
503
|
/>
|
|
488
504
|
</View>
|
|
489
505
|
:
|
|
490
|
-
<
|
|
491
|
-
|
|
492
|
-
|
|
506
|
+
<Button
|
|
507
|
+
disabled={!onActivate ? true: false}
|
|
508
|
+
style={{ flex:0.5, justifyContent:'center', alignItems:'center' }}
|
|
509
|
+
type='text'
|
|
510
|
+
transparent
|
|
511
|
+
onPress={() => onActivate ? onActivate(event.event_id, 'team') : console.log('')}
|
|
512
|
+
>
|
|
513
|
+
<Icons.MarketClosedIcon size={60} color={C.text.h1} />
|
|
514
|
+
</Button>
|
|
493
515
|
}
|
|
494
516
|
</View>
|
|
495
517
|
{event_status == 'active' ?
|
|
496
|
-
<View style={{
|
|
518
|
+
<View type='footer' style={{ padding:10, flexDirection:'row', alignItems:'center', flexWrap:'wrap', borderBottomLeftRadius:8, borderBottomRightRadius:8 }}>
|
|
497
519
|
{!hide_liquidity ?
|
|
498
|
-
<
|
|
520
|
+
<Button
|
|
521
|
+
style={{ flex:1, flexDirection:'row', minWidth:115, padding:0 }}
|
|
522
|
+
type='text'
|
|
523
|
+
|
|
524
|
+
onPress={() => {
|
|
499
525
|
if(!primary_markets[0]){ return }
|
|
500
526
|
onView({ event_id: event.event_id, event_type:'team', market_id: primary_markets[0].market_id });
|
|
501
527
|
}}>
|
|
502
|
-
<View style={{
|
|
503
|
-
<Icons.LiquidityIcon color={
|
|
528
|
+
<View transparent float style={{ height:30, width:30, borderRadius:100, justifyContent:'center', alignItems:'center' }}>
|
|
529
|
+
<Icons.LiquidityIcon color={C.text.h1} size={30}/>
|
|
504
530
|
</View>
|
|
505
|
-
<View style={{ marginLeft:5 }}>
|
|
506
|
-
<Text theme='
|
|
507
|
-
<Text size={12} color={
|
|
531
|
+
<View transparent style={{ marginLeft:5 }}>
|
|
532
|
+
<Text theme='description'>Liquidity</Text>
|
|
533
|
+
<Text size={12} style={{ marginTop:3 }} color={C.text.highlight} weight='semibold'>${liquidity.toFixed()} {open_order_count} Orders</Text>
|
|
508
534
|
</View>
|
|
509
|
-
</
|
|
535
|
+
</Button>
|
|
510
536
|
:<></>}
|
|
511
537
|
{squares_competitions && squares_competitions.length > 0 ?
|
|
512
|
-
<
|
|
513
|
-
|
|
538
|
+
<Button
|
|
539
|
+
float
|
|
540
|
+
type='squares'
|
|
541
|
+
style={{ marginRight:5, flexDirection:'row', alignItems:'center', padding:10, borderRadius:22 }}
|
|
514
542
|
onPress={() => handleSelectSquares()}>
|
|
515
|
-
<Icons.SquaresIcon size={18} color={
|
|
516
|
-
<Text style={{ marginLeft:5 }} size={14} color={
|
|
517
|
-
</
|
|
543
|
+
<Icons.SquaresIcon size={18} color={C.text.white} />
|
|
544
|
+
<Text style={{ marginLeft:5 }} size={14} color={C.text.white} weight='semibold'>Squares</Text>
|
|
545
|
+
</Button>
|
|
518
546
|
:<></>}
|
|
519
547
|
{competitions && competitions.length > 0 ?
|
|
520
|
-
<
|
|
521
|
-
|
|
548
|
+
<Button
|
|
549
|
+
float
|
|
550
|
+
type='competition'
|
|
551
|
+
style={{ marginRight:5, flexDirection:'row', alignItems:'center', padding:10, borderRadius:22 }}
|
|
522
552
|
onPress={() => handleSelectCompetition()}>
|
|
523
|
-
<Icons.PickEmIcon size={14} color={
|
|
524
|
-
<Text style={{ marginLeft:5 }} size={14} color={
|
|
525
|
-
</
|
|
553
|
+
<Icons.PickEmIcon size={14} color={C.text.white} />
|
|
554
|
+
<Text style={{ marginLeft:5 }} size={14} color={C.text.white} weight='semibold'>MultiPick</Text>
|
|
555
|
+
</Button>
|
|
526
556
|
:<></>}
|
|
527
557
|
{non_primary_markets.length > 0 ?
|
|
528
|
-
<
|
|
529
|
-
|
|
530
|
-
|
|
558
|
+
<Button
|
|
559
|
+
float
|
|
560
|
+
style={{ height:35, width:35, justifyContent:'center', borderRadius:100, alignItems:'center' }}
|
|
561
|
+
onPress={() => expandedEvent()}
|
|
562
|
+
>
|
|
563
|
+
<Icons.ChevronIcon direction={expanded ? 'up' : 'down'} size={8} color={C.text.h1} />
|
|
564
|
+
</Button>
|
|
531
565
|
:available ?
|
|
532
566
|
<Button
|
|
533
567
|
title='MORE'
|
|
534
|
-
|
|
535
|
-
backgroundColor={Colors.brand.electric}
|
|
568
|
+
type='info'
|
|
536
569
|
onPress={() => onViewAdditionalMarkets(event.event_id, 'team')}
|
|
537
570
|
/>
|
|
538
571
|
:<></>}
|
|
539
572
|
{competitions && competitions_expanded ?
|
|
540
|
-
<View style={{ position:'absolute', bottom:0, right:0,
|
|
541
|
-
<
|
|
542
|
-
<Icons.PickEmIcon size={16} color={
|
|
543
|
-
<Text style={{ flex:1, marginLeft:10 }}
|
|
573
|
+
<View float style={{ position:'absolute', bottom:0, right:0, justifyContent:'flex-end', maxHeight:230, minWidth:300 }}>
|
|
574
|
+
<View type='header' style={{ flexDirection:'row', alignItems:'center', padding:5 }}>
|
|
575
|
+
<Icons.PickEmIcon size={16} color={C.text.h1} />
|
|
576
|
+
<Text style={{ flex:1, marginLeft:10 }} theme='h2'>Select Competition</Text>
|
|
544
577
|
<Button
|
|
545
578
|
title='X'
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
title_size={16}
|
|
550
|
-
padding={0}
|
|
551
|
-
onPress={() => console.log('')}
|
|
579
|
+
style={{ padding:10, borderRadius:100 }}
|
|
580
|
+
type='error'
|
|
581
|
+
onPress={() => setCompetitionsExpanded(false)}
|
|
552
582
|
/>
|
|
553
|
-
</
|
|
583
|
+
</View>
|
|
554
584
|
<ScrollView style={{flex:1}}>
|
|
555
585
|
<FlatList
|
|
556
586
|
data={competitions}
|
|
@@ -561,20 +591,17 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
|
|
|
561
591
|
</View>
|
|
562
592
|
:<></>}
|
|
563
593
|
{squares_competitions && squares_expanded ?
|
|
564
|
-
<View style={{ position:'absolute', bottom:0, right:0,
|
|
565
|
-
<
|
|
566
|
-
<Icons.
|
|
567
|
-
<Text style={{ flex:1, marginLeft:10 }}
|
|
594
|
+
<View float style={{ position:'absolute', bottom:0, right:0, justifyContent:'flex-end', maxHeight:230, minWidth:300 }}>
|
|
595
|
+
<View type='header' style={{ flexDirection:'row', alignItems:'center', padding:5 }}>
|
|
596
|
+
<Icons.PickEmIcon size={16} color={C.text.h1} />
|
|
597
|
+
<Text style={{ flex:1, marginLeft:10 }} theme='h2'>Select Squares</Text>
|
|
568
598
|
<Button
|
|
569
599
|
title='X'
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
title_size={16}
|
|
574
|
-
padding={0}
|
|
575
|
-
onPress={() => console.log('')}
|
|
600
|
+
style={{ padding:10, borderRadius:100 }}
|
|
601
|
+
type='error'
|
|
602
|
+
onPress={() => setSquaresExpanded(false)}
|
|
576
603
|
/>
|
|
577
|
-
</
|
|
604
|
+
</View>
|
|
578
605
|
<ScrollView style={{flex:1}}>
|
|
579
606
|
<FlatList
|
|
580
607
|
data={squares_competitions}
|
|
@@ -587,9 +614,9 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
|
|
|
587
614
|
</View>
|
|
588
615
|
:<></>}
|
|
589
616
|
{expanded ?
|
|
590
|
-
<View>
|
|
591
|
-
<View style={{ flexDirection:'row', alignItems:'center' }}>
|
|
592
|
-
<View style={{ flexGrow:1 }}>
|
|
617
|
+
<View transparent>
|
|
618
|
+
<View transparent style={{ flexDirection:'row', alignItems:'center' }}>
|
|
619
|
+
<View transparent style={{ flexGrow:1 }}>
|
|
593
620
|
<LinearDiagnal label_size={12} label={'Hot Markets'} left_color={Colors.utility.warning} right_color={Colors.utility.error}/>
|
|
594
621
|
</View>
|
|
595
622
|
{loading ?
|
|
@@ -597,14 +624,12 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
|
|
|
597
624
|
:
|
|
598
625
|
<Button
|
|
599
626
|
title='SEE ALL'
|
|
600
|
-
|
|
601
|
-
backgroundColor='transparent'
|
|
602
|
-
title_color={Colors.brand.electric}
|
|
627
|
+
type='text'
|
|
603
628
|
onPress={() => onViewAdditionalMarkets(event.event_id, 'team')}
|
|
604
629
|
/>
|
|
605
630
|
}
|
|
606
631
|
</View>
|
|
607
|
-
<View>
|
|
632
|
+
<View transparent>
|
|
608
633
|
<FlatList
|
|
609
634
|
data={non_primary_markets}
|
|
610
635
|
renderItem={renderNonPrimaryMarkets}
|
|
@@ -614,12 +639,12 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
|
|
|
614
639
|
/>
|
|
615
640
|
</View>
|
|
616
641
|
{podcasts.length > 0 ?
|
|
617
|
-
<View style={{ flexDirection:'row', marginTop:10, borderBottomRightRadius:8, borderBottomLeftRadius:8
|
|
618
|
-
<View style={{ padding:5, paddingRight:20, paddingLeft:20, justifyContent:'center',
|
|
619
|
-
<Icons.HeadphoneIcon size={36} color={
|
|
642
|
+
<View type='footer' style={{ flexDirection:'row', marginTop:10, borderBottomRightRadius:8, borderBottomLeftRadius:8 }}>
|
|
643
|
+
<View transparent style={{ padding:5, paddingRight:20, paddingLeft:20, justifyContent:'center', borderBottomLeftRadius:8 }}>
|
|
644
|
+
<Icons.HeadphoneIcon size={36} color={C.text.h1} />
|
|
620
645
|
</View>
|
|
621
|
-
<View style={{ flex:1, padding:5 }}>
|
|
622
|
-
<Text style={{ marginBottom:3 }}
|
|
646
|
+
<View transparent style={{ flex:1, padding:5 }}>
|
|
647
|
+
<Text style={{ marginBottom:3 }} theme='h2'>Need Help? Checkout these podcasts!</Text>
|
|
623
648
|
<FlatList
|
|
624
649
|
key={`${event.event_id}:pods`}
|
|
625
650
|
data={podcasts}
|
|
@@ -645,10 +670,6 @@ const TeamEventMarket = ({ event, league, style, init_expanded, hot_markets_dire
|
|
|
645
670
|
}
|
|
646
671
|
|
|
647
672
|
|
|
648
|
-
const styles = StyleSheet.create({
|
|
649
|
-
container_style: { ...view_styles.section, borderWidth:1, borderColor:Colors.shades.shade600 }
|
|
650
|
-
})
|
|
651
|
-
|
|
652
673
|
|
|
653
674
|
export default React.memo(TeamEventMarket, (left, right) => {
|
|
654
675
|
if(JSON.stringify(left) != JSON.stringify(right)){ return false }
|