be-components 3.3.6 → 3.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js +27 -36
- package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/LoginForm.js +103 -124
- package/lib/commonjs/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/StrategyForm.js +254 -347
- package/lib/commonjs/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/commonjs/Authenticator/index.js +22 -32
- package/lib/commonjs/Authenticator/index.js.map +1 -1
- package/lib/commonjs/Competition/components/AthleteMarketCard.js +39 -26
- package/lib/commonjs/Competition/components/AthleteMarketCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionInfoCard.js +115 -175
- package/lib/commonjs/Competition/components/CompetitionInfoCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionLeaderboard.js +97 -95
- package/lib/commonjs/Competition/components/CompetitionLeaderboard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionPlay.js +99 -113
- package/lib/commonjs/Competition/components/CompetitionPlay.js.map +1 -1
- package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js +56 -75
- package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js.map +1 -1
- package/lib/commonjs/Competition/components/LeaderPicks.js +4 -4
- package/lib/commonjs/Competition/components/LeaderPicks.js.map +1 -1
- package/lib/commonjs/Competition/components/MarketsCard.js +22 -12
- package/lib/commonjs/Competition/components/MarketsCard.js.map +1 -1
- package/lib/commonjs/Competition/components/TeamEventCard.js +46 -37
- package/lib/commonjs/Competition/components/TeamEventCard.js.map +1 -1
- package/lib/commonjs/Competition/components/WagerPickForm.js +73 -85
- package/lib/commonjs/Competition/components/WagerPickForm.js.map +1 -1
- package/lib/commonjs/Competition/index.js +236 -216
- package/lib/commonjs/Competition/index.js.map +1 -1
- package/lib/commonjs/Components/Button.js +49 -6
- package/lib/commonjs/Components/Button.js.map +1 -1
- package/lib/commonjs/Components/ConfirmationModal.js +29 -29
- package/lib/commonjs/Components/ConfirmationModal.js.map +1 -1
- package/lib/commonjs/Components/Themed.js +281 -0
- package/lib/commonjs/Components/Themed.js.map +1 -0
- package/lib/commonjs/MarketComponents/components/AthleteMarket/index.js +43 -52
- package/lib/commonjs/MarketComponents/components/AthleteMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.js +50 -61
- package/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/EventMarket/index.js +48 -54
- package/lib/commonjs/MarketComponents/components/EventMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/MarketButton/api/index.js +2 -3
- package/lib/commonjs/MarketComponents/components/MarketButton/api/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/MarketButton/index.js +22 -22
- package/lib/commonjs/MarketComponents/components/MarketButton/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/MatchMarket/index.js +53 -63
- package/lib/commonjs/MarketComponents/components/MatchMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/index.js +239 -220
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.js +48 -57
- package/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TournamentMarket/index.js +203 -131
- package/lib/commonjs/MarketComponents/components/TournamentMarket/index.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js +49 -55
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicStatus.js +55 -88
- package/lib/commonjs/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js +94 -121
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/DOBManager.js +42 -46
- package/lib/commonjs/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/EmailManager.js +66 -86
- package/lib/commonjs/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js +60 -78
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js +62 -81
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js +19 -27
- package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js +31 -48
- package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js +69 -92
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js +63 -65
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/VouchCard.js +106 -132
- package/lib/commonjs/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/commonjs/ProfileManager/index.js +29 -31
- package/lib/commonjs/ProfileManager/index.js.map +1 -1
- package/lib/commonjs/Share/api/index.js +13 -6
- package/lib/commonjs/Share/api/index.js.map +1 -1
- package/lib/commonjs/Share/index.js +11 -11
- package/lib/commonjs/Share/index.js.map +1 -1
- package/lib/commonjs/Squares/components/BidForm.js +142 -120
- package/lib/commonjs/Squares/components/BidForm.js.map +1 -1
- package/lib/commonjs/Squares/components/BidToggle.js +10 -11
- package/lib/commonjs/Squares/components/BidToggle.js.map +1 -1
- package/lib/commonjs/Squares/components/BoardStats.js +63 -47
- package/lib/commonjs/Squares/components/BoardStats.js.map +1 -1
- package/lib/commonjs/Squares/components/EventCard.js +48 -29
- package/lib/commonjs/Squares/components/EventCard.js.map +1 -1
- package/lib/commonjs/Squares/components/MySquaresCard.js +48 -31
- package/lib/commonjs/Squares/components/MySquaresCard.js.map +1 -1
- package/lib/commonjs/Squares/components/MyStatsCard.js +155 -121
- package/lib/commonjs/Squares/components/MyStatsCard.js.map +1 -1
- package/lib/commonjs/Squares/components/OfferForm.js +32 -32
- package/lib/commonjs/Squares/components/OfferForm.js.map +1 -1
- package/lib/commonjs/Squares/components/PrizeCard.js +44 -35
- package/lib/commonjs/Squares/components/PrizeCard.js.map +1 -1
- package/lib/commonjs/Squares/components/ResultsCard.js +37 -24
- package/lib/commonjs/Squares/components/ResultsCard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquareOffersCard.js +20 -13
- package/lib/commonjs/Squares/components/SquareOffersCard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquareOwners.js +44 -38
- package/lib/commonjs/Squares/components/SquareOwners.js.map +1 -1
- package/lib/commonjs/Squares/components/SquaresBoard.js +77 -59
- package/lib/commonjs/Squares/components/SquaresBoard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquaresDetails.js +46 -36
- package/lib/commonjs/Squares/components/SquaresDetails.js.map +1 -1
- package/lib/commonjs/Squares/index.js +207 -150
- package/lib/commonjs/Squares/index.js.map +1 -1
- package/lib/commonjs/constants/colors.js +18 -3
- package/lib/commonjs/constants/colors.js.map +1 -1
- package/lib/commonjs/constants/styles.js +72 -2
- package/lib/commonjs/constants/styles.js.map +1 -1
- package/lib/commonjs/constants/useColors.js +153 -0
- package/lib/commonjs/constants/useColors.js.map +1 -0
- package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js +21 -30
- package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
- package/lib/module/Authenticator/Components/LoginForm.js +61 -82
- package/lib/module/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/module/Authenticator/Components/StrategyForm.js +234 -326
- package/lib/module/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/module/Authenticator/index.js +16 -26
- package/lib/module/Authenticator/index.js.map +1 -1
- package/lib/module/Competition/components/AthleteMarketCard.js +28 -15
- package/lib/module/Competition/components/AthleteMarketCard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionInfoCard.js +82 -141
- package/lib/module/Competition/components/CompetitionInfoCard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionLeaderboard.js +68 -66
- package/lib/module/Competition/components/CompetitionLeaderboard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionPlay.js +65 -79
- package/lib/module/Competition/components/CompetitionPlay.js.map +1 -1
- package/lib/module/Competition/components/EnterCompetitionPrompt.js +35 -54
- package/lib/module/Competition/components/EnterCompetitionPrompt.js.map +1 -1
- package/lib/module/Competition/components/LeaderPicks.js +4 -4
- package/lib/module/Competition/components/LeaderPicks.js.map +1 -1
- package/lib/module/Competition/components/MarketsCard.js +15 -5
- package/lib/module/Competition/components/MarketsCard.js.map +1 -1
- package/lib/module/Competition/components/TeamEventCard.js +24 -15
- package/lib/module/Competition/components/TeamEventCard.js.map +1 -1
- package/lib/module/Competition/components/WagerPickForm.js +44 -56
- package/lib/module/Competition/components/WagerPickForm.js.map +1 -1
- package/lib/module/Competition/index.js +215 -195
- package/lib/module/Competition/index.js.map +1 -1
- package/lib/module/Components/Button.js +49 -6
- package/lib/module/Components/Button.js.map +1 -1
- package/lib/module/Components/ConfirmationModal.js +21 -21
- package/lib/module/Components/ConfirmationModal.js.map +1 -1
- package/lib/module/Components/Themed.js +269 -0
- package/lib/module/Components/Themed.js.map +1 -0
- package/lib/module/MarketComponents/components/AthleteMarket/index.js +29 -38
- package/lib/module/MarketComponents/components/AthleteMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/AthleteTournamentMarket/index.js +36 -47
- package/lib/module/MarketComponents/components/AthleteTournamentMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/EventMarket/index.js +35 -41
- package/lib/module/MarketComponents/components/EventMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/MarketButton/api/index.js +2 -3
- package/lib/module/MarketComponents/components/MarketButton/api/index.js.map +1 -1
- package/lib/module/MarketComponents/components/MarketButton/index.js +17 -17
- package/lib/module/MarketComponents/components/MarketButton/index.js.map +1 -1
- package/lib/module/MarketComponents/components/MatchMarket/index.js +35 -45
- package/lib/module/MarketComponents/components/MatchMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/TeamEventMarket/index.js +176 -157
- package/lib/module/MarketComponents/components/TeamEventMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/TeamTournamentMarket/index.js +34 -43
- package/lib/module/MarketComponents/components/TeamTournamentMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/TournamentMarket/index.js +172 -100
- package/lib/module/MarketComponents/components/TournamentMarket/index.js.map +1 -1
- package/lib/module/ProfileManager/Components/BasicInfoManager.js +28 -34
- package/lib/module/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/BasicStatus.js +28 -61
- package/lib/module/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/module/ProfileManager/Components/CodeRedeem.js +55 -81
- package/lib/module/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/module/ProfileManager/Components/DOBManager.js +27 -31
- package/lib/module/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/EmailManager.js +42 -61
- package/lib/module/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PasswordManager.js +36 -54
- package/lib/module/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PhoneManager.js +37 -56
- package/lib/module/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfilePicManager.js +10 -18
- package/lib/module/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWelcome.js +21 -38
- package/lib/module/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWizard.js +42 -65
- package/lib/module/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/module/ProfileManager/Components/SettingsManager.js +45 -47
- package/lib/module/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/VouchCard.js +69 -95
- package/lib/module/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/module/ProfileManager/index.js +18 -20
- package/lib/module/ProfileManager/index.js.map +1 -1
- package/lib/module/Share/api/index.js +11 -6
- package/lib/module/Share/api/index.js.map +1 -1
- package/lib/module/Share/index.js +13 -13
- package/lib/module/Share/index.js.map +1 -1
- package/lib/module/Squares/components/BidForm.js +138 -116
- package/lib/module/Squares/components/BidForm.js.map +1 -1
- package/lib/module/Squares/components/BidToggle.js +6 -7
- package/lib/module/Squares/components/BidToggle.js.map +1 -1
- package/lib/module/Squares/components/BoardStats.js +44 -27
- package/lib/module/Squares/components/BoardStats.js.map +1 -1
- package/lib/module/Squares/components/EventCard.js +34 -15
- package/lib/module/Squares/components/EventCard.js.map +1 -1
- package/lib/module/Squares/components/MySquaresCard.js +36 -19
- package/lib/module/Squares/components/MySquaresCard.js.map +1 -1
- package/lib/module/Squares/components/MyStatsCard.js +98 -64
- package/lib/module/Squares/components/MyStatsCard.js.map +1 -1
- package/lib/module/Squares/components/OfferForm.js +12 -12
- package/lib/module/Squares/components/OfferForm.js.map +1 -1
- package/lib/module/Squares/components/PrizeCard.js +25 -16
- package/lib/module/Squares/components/PrizeCard.js.map +1 -1
- package/lib/module/Squares/components/ResultsCard.js +27 -14
- package/lib/module/Squares/components/ResultsCard.js.map +1 -1
- package/lib/module/Squares/components/SquareOffersCard.js +16 -9
- package/lib/module/Squares/components/SquareOffersCard.js.map +1 -1
- package/lib/module/Squares/components/SquareOwners.js +35 -28
- package/lib/module/Squares/components/SquareOwners.js.map +1 -1
- package/lib/module/Squares/components/SquaresBoard.js +52 -34
- package/lib/module/Squares/components/SquaresBoard.js.map +1 -1
- package/lib/module/Squares/components/SquaresDetails.js +30 -19
- package/lib/module/Squares/components/SquaresDetails.js.map +1 -1
- package/lib/module/Squares/index.js +206 -149
- package/lib/module/Squares/index.js.map +1 -1
- package/lib/module/constants/colors.js +18 -3
- package/lib/module/constants/colors.js.map +1 -1
- package/lib/module/constants/styles.js +71 -1
- package/lib/module/constants/styles.js.map +1 -1
- package/lib/module/constants/useColors.js +145 -0
- package/lib/module/constants/useColors.js.map +1 -0
- package/lib/typescript/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/LoginForm.d.ts +2 -2
- package/lib/typescript/lib/commonjs/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/StrategyForm.d.ts +2 -4
- package/lib/typescript/lib/commonjs/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/index.d.ts +2 -2
- package/lib/typescript/lib/commonjs/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/AthleteMarketCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionLeaderboard.d.ts +1 -3
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionPlay.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/MarketsCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/TeamEventCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/WagerPickForm.d.ts +1 -2
- package/lib/typescript/lib/commonjs/Competition/components/WagerPickForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Button.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Components/Button.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/ConfirmationModal.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Themed.d.ts +6 -0
- package/lib/typescript/lib/commonjs/Components/Themed.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.d.ts +2 -2
- package/lib/typescript/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/EventMarket/index.d.ts +2 -2
- package/lib/typescript/lib/commonjs/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MarketButton/api/index.d.ts +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MarketButton/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MatchMarket/index.d.ts +2 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.d.ts +2 -2
- package/lib/typescript/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/TournamentMarket/index.d.ts +3 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWelcome.d.ts +1 -2
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/index.d.ts +1 -2
- package/lib/typescript/lib/commonjs/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Share/api/index.d.ts +1 -1
- package/lib/typescript/lib/commonjs/Share/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/BidForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/BidToggle.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/BoardStats.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/EventCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/MySquaresCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/MyStatsCard.d.ts +1 -2
- package/lib/typescript/lib/commonjs/Squares/components/MyStatsCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/PrizeCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/ResultsCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquareOffersCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquareOwners.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquaresBoard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquaresDetails.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/constants/colors.d.ts +9 -0
- package/lib/typescript/lib/commonjs/constants/styles.d.ts +95 -8
- package/lib/typescript/lib/commonjs/constants/useColors.d.ts +58 -0
- package/lib/typescript/lib/commonjs/constants/useColors.d.ts.map +1 -0
- package/lib/typescript/lib/module/Authenticator/Components/AuthStrategyIdentifier.d.ts +1 -2
- package/lib/typescript/lib/module/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts +3 -4
- package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts +3 -6
- package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/index.d.ts +4 -4
- package/lib/typescript/lib/module/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/AthleteMarketCard.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/AthleteMarketCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionInfoCard.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts +2 -5
- package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionPlay.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/CompetitionPlay.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/EnterCompetitionPrompt.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/MarketsCard.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/MarketsCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/TeamEventCard.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/TeamEventCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/WagerPickForm.d.ts +2 -4
- package/lib/typescript/lib/module/Competition/components/WagerPickForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/index.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Button.d.ts +2 -1
- package/lib/typescript/lib/module/Components/Button.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/ConfirmationModal.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Spring.d.ts +1 -1
- package/lib/typescript/lib/module/Components/Themed.d.ts +9 -0
- package/lib/typescript/lib/module/Components/Themed.d.ts.map +1 -0
- package/lib/typescript/lib/module/MarketComponents/components/AthleteMarket/index.d.ts +3 -4
- package/lib/typescript/lib/module/MarketComponents/components/AthleteMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/AthleteTournamentMarket/index.d.ts +3 -4
- package/lib/typescript/lib/module/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/EventMarket/index.d.ts +3 -4
- package/lib/typescript/lib/module/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/MarketButton/api/index.d.ts +2 -2
- package/lib/typescript/lib/module/MarketComponents/components/MarketButton/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/MarketButton/index.d.ts +1 -2
- package/lib/typescript/lib/module/MarketComponents/components/MarketButton/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/MatchMarket/index.d.ts +3 -3
- package/lib/typescript/lib/module/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/TeamEventMarket/index.d.ts +3 -3
- package/lib/typescript/lib/module/MarketComponents/components/TeamEventMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/TeamTournamentMarket/index.d.ts +3 -4
- package/lib/typescript/lib/module/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/TournamentMarket/index.d.ts +4 -3
- package/lib/typescript/lib/module/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/BasicInfoManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/BasicStatus.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/CodeRedeem.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/DOBManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/EmailManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/PasswordManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/PhoneManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/ProfilePicManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWelcome.d.ts +2 -4
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWizard.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/SettingsManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts +1 -4
- package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/index.d.ts +2 -4
- package/lib/typescript/lib/module/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Share/api/index.d.ts +1 -1
- package/lib/typescript/lib/module/Share/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Share/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/BidForm.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/BidForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/BidToggle.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/BidToggle.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/BoardStats.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/BoardStats.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/EventCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/EventCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/MySquaresCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/MySquaresCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/MyStatsCard.d.ts +2 -4
- package/lib/typescript/lib/module/Squares/components/MyStatsCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/OfferForm.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/OfferForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/PrizeCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/PrizeCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/ResultsCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/ResultsCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquareOffersCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquareOffersCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquareOwners.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquareOwners.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquaresBoard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquaresBoard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquaresDetails.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquaresDetails.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/index.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/constants/colors.d.ts +9 -0
- package/lib/typescript/lib/module/constants/styles.d.ts +95 -8
- package/lib/typescript/lib/module/constants/useColors.d.ts +57 -0
- package/lib/typescript/lib/module/constants/useColors.d.ts.map +1 -0
- package/lib/typescript/src/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts +2 -2
- package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts +2 -3
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/index.d.ts +2 -2
- package/lib/typescript/src/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/AthleteMarketCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts +1 -1
- package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionPlay.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/LeaderPicks.d.ts +1 -1
- package/lib/typescript/src/Competition/components/LeaderPicks.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/MarketsCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/TeamEventCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/WagerPickForm.d.ts +1 -1
- package/lib/typescript/src/Competition/components/WagerPickForm.d.ts.map +1 -1
- package/lib/typescript/src/Competition/index.d.ts.map +1 -1
- package/lib/typescript/src/Components/Button.d.ts +2 -1
- package/lib/typescript/src/Components/Button.d.ts.map +1 -1
- package/lib/typescript/src/Components/ConfirmationModal.d.ts.map +1 -1
- package/lib/typescript/src/Components/Themed.d.ts +38 -0
- package/lib/typescript/src/Components/Themed.d.ts.map +1 -0
- package/lib/typescript/src/MarketComponents/components/AthleteMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/AthleteMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/AthleteTournamentMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/EventMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/MarketButton/api/index.d.ts +2 -2
- package/lib/typescript/src/MarketComponents/components/MarketButton/api/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/MarketButton/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/MatchMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TeamEventMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/TeamEventMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TeamTournamentMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TournamentMarket/index.d.ts +3 -1
- package/lib/typescript/src/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/index.d.ts +15 -7
- package/lib/typescript/src/MarketComponents/index.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfileWelcome.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/index.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/src/Share/api/index.d.ts +1 -1
- package/lib/typescript/src/Share/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Share/index.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/BidForm.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/BidToggle.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/BoardStats.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/EventCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/MySquaresCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/MyStatsCard.d.ts +1 -1
- package/lib/typescript/src/Squares/components/MyStatsCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/OfferForm.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/PrizeCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/ResultsCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquareOffersCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquareOwners.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquaresBoard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquaresDetails.d.ts.map +1 -1
- package/lib/typescript/src/Squares/index.d.ts.map +1 -1
- package/lib/typescript/src/constants/colors.d.ts +9 -0
- package/lib/typescript/src/constants/colors.d.ts.map +1 -1
- package/lib/typescript/src/constants/styles.d.ts +55 -1
- package/lib/typescript/src/constants/styles.d.ts.map +1 -1
- package/lib/typescript/src/constants/useColors.d.ts +57 -0
- package/lib/typescript/src/constants/useColors.d.ts.map +1 -0
- package/package.json +2 -1
- package/src/Authenticator/Components/AuthStrategyIdentifier.tsx +41 -41
- package/src/Authenticator/Components/LoginForm.tsx +54 -56
- package/src/Authenticator/Components/StrategyForm.tsx +138 -147
- package/src/Authenticator/index.tsx +16 -18
- package/src/Competition/components/AthleteMarketCard.tsx +19 -17
- package/src/Competition/components/CompetitionInfoCard.tsx +48 -138
- package/src/Competition/components/CompetitionLeaderboard.tsx +65 -57
- package/src/Competition/components/CompetitionPlay.tsx +55 -48
- package/src/Competition/components/EnterCompetitionPrompt.tsx +30 -39
- package/src/Competition/components/LeaderPicks.tsx +5 -5
- package/src/Competition/components/MarketsCard.tsx +14 -10
- package/src/Competition/components/TeamEventCard.tsx +24 -23
- package/src/Competition/components/WagerPickForm.tsx +35 -41
- package/src/Competition/index.tsx +162 -125
- package/src/Components/Button.tsx +50 -6
- package/src/Components/ConfirmationModal.tsx +13 -21
- package/src/Components/Themed.tsx +233 -0
- package/src/MarketComponents/components/AthleteMarket/index.tsx +21 -26
- package/src/MarketComponents/components/AthleteTournamentMarket/index.tsx +24 -32
- package/src/MarketComponents/components/EventMarket/index.tsx +25 -33
- package/src/MarketComponents/components/MarketButton/api/index.ts +2 -3
- package/src/MarketComponents/components/MarketButton/index.tsx +16 -15
- package/src/MarketComponents/components/MatchMarket/index.tsx +50 -59
- package/src/MarketComponents/components/TeamEventMarket/index.tsx +160 -139
- package/src/MarketComponents/components/TeamTournamentMarket/index.tsx +24 -30
- package/src/MarketComponents/components/TournamentMarket/index.tsx +117 -107
- package/src/ProfileManager/Components/BasicInfoManager.tsx +26 -29
- package/src/ProfileManager/Components/BasicStatus.tsx +29 -36
- package/src/ProfileManager/Components/CodeRedeem.tsx +50 -60
- package/src/ProfileManager/Components/DOBManager.tsx +25 -30
- package/src/ProfileManager/Components/EmailManager.tsx +37 -45
- package/src/ProfileManager/Components/PasswordManager.tsx +36 -40
- package/src/ProfileManager/Components/PhoneManager.tsx +36 -43
- package/src/ProfileManager/Components/ProfilePicManager.tsx +10 -16
- package/src/ProfileManager/Components/ProfileWelcome.tsx +19 -25
- package/src/ProfileManager/Components/ProfileWizard.tsx +42 -46
- package/src/ProfileManager/Components/SettingsManager.tsx +41 -45
- package/src/ProfileManager/Components/VouchCard.tsx +50 -59
- package/src/ProfileManager/index.tsx +16 -13
- package/src/Share/api/index.ts +9 -3
- package/src/Share/index.tsx +13 -12
- package/src/Squares/components/BidForm.tsx +85 -62
- package/src/Squares/components/BidToggle.tsx +8 -9
- package/src/Squares/components/BoardStats.tsx +28 -28
- package/src/Squares/components/EventCard.tsx +33 -31
- package/src/Squares/components/MySquaresCard.tsx +24 -23
- package/src/Squares/components/MyStatsCard.tsx +66 -68
- package/src/Squares/components/OfferForm.tsx +15 -15
- package/src/Squares/components/PrizeCard.tsx +21 -18
- package/src/Squares/components/ResultsCard.tsx +21 -18
- package/src/Squares/components/SquareOffersCard.tsx +12 -10
- package/src/Squares/components/SquareOwners.tsx +24 -23
- package/src/Squares/components/SquaresBoard.tsx +39 -42
- package/src/Squares/components/SquaresDetails.tsx +25 -24
- package/src/Squares/index.tsx +196 -144
- package/src/constants/colors.ts +55 -47
- package/src/constants/styles.ts +37 -1
- package/src/constants/useColors.tsx +131 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React, { useCallback, useMemo } from 'react';
|
|
2
|
-
import { View, TouchableOpacity, StyleSheet } from 'react-native';
|
|
3
2
|
import type { BestAvailableOrderProps, EventOrderStatProps, MarketProps, MarketSideOptionProps, OrderProps, TeamProps, TournamentProps, TradeProps } from "../../../types"
|
|
4
3
|
import { view_styles } from '../../../constants/styles';
|
|
5
4
|
import MarketButton from '../../components/MarketButton';
|
|
6
|
-
import { Icons, LinearDiagnal
|
|
7
|
-
import Colors from '../../../constants/colors';
|
|
5
|
+
import { Icons, LinearDiagnal } from '../../../Components';
|
|
8
6
|
import { MarketButtonHelpers } from '../MarketButton/api';
|
|
9
7
|
import { MarketComponentHelpers } from '../../api';
|
|
10
8
|
import { TeamImage } from '../../../Components/Jerseys';
|
|
9
|
+
import { Button, Text, View } from '../../../Components/Themed';
|
|
10
|
+
import { useColors } from '../../../constants/useColors';
|
|
11
11
|
|
|
12
12
|
type TeamTournamentMarketProps = {
|
|
13
13
|
tournament:TournamentProps,
|
|
@@ -15,6 +15,7 @@ type TeamTournamentMarketProps = {
|
|
|
15
15
|
team:TeamProps,
|
|
16
16
|
hide_stat_banner?:boolean,
|
|
17
17
|
width?:number,
|
|
18
|
+
float?:boolean,
|
|
18
19
|
market:MarketProps,
|
|
19
20
|
direction?:'horizontal'|'vertical',
|
|
20
21
|
show_event?:boolean,
|
|
@@ -30,12 +31,8 @@ type TeamTournamentMarketProps = {
|
|
|
30
31
|
onTradeLongPress:(trade:TradeProps) => void
|
|
31
32
|
}
|
|
32
33
|
|
|
33
|
-
const TeamTournamentMarket = ({ tournament, direction, show_event, hide_liquidity, hide_stat_banner, style,
|
|
34
|
-
|
|
35
|
-
if(style){
|
|
36
|
-
set_style = style
|
|
37
|
-
}
|
|
38
|
-
|
|
34
|
+
const TeamTournamentMarket = ({ tournament, float, direction, show_event, hide_liquidity, hide_stat_banner, style, team, market, event_order_stats, default_price_view, latest_trades, show_grades, best_available_orders, onOrder, onView, onTradeLongPress }:TeamTournamentMarketProps) => {
|
|
35
|
+
const C = useColors();
|
|
39
36
|
const { liquidity, open_order_count } = MarketComponentHelpers.getLiqudity(event_order_stats);
|
|
40
37
|
const is_locked = useMemo(() => MarketComponentHelpers.isTournamentMarketLocked(tournament, market.market_id),[JSON.stringify(tournament.supported_markets)])
|
|
41
38
|
|
|
@@ -69,33 +66,33 @@ const TeamTournamentMarket = ({ tournament, direction, show_event, hide_liquidit
|
|
|
69
66
|
},[JSON.stringify(best_available_orders)])
|
|
70
67
|
|
|
71
68
|
return (
|
|
72
|
-
<View style={
|
|
69
|
+
<View float={float} style={[{ borderRadius:8 }, style]}>
|
|
73
70
|
{!hide_stat_banner ?
|
|
74
71
|
<LinearDiagnal
|
|
75
72
|
label={market.stat_label ?? market.type}
|
|
76
73
|
label_size={14}
|
|
77
74
|
style={{ borderTopLeftRadius:8, padding:5 }}
|
|
78
|
-
left_color={
|
|
75
|
+
left_color={C.text.gold}
|
|
79
76
|
right_color={'#ebd197'}
|
|
80
77
|
/>
|
|
81
78
|
:<></>}
|
|
82
79
|
{show_event ?
|
|
83
|
-
<View style={{ padding:5
|
|
84
|
-
<Text
|
|
80
|
+
<View transparent style={{ padding:5 }}>
|
|
81
|
+
<Text theme='description'>{tournament.tournament_name}</Text>
|
|
85
82
|
</View>
|
|
86
83
|
:<></>}
|
|
87
|
-
<View style={{ flexDirection:direction == 'horizontal' ? 'row' : 'column' }}>
|
|
88
|
-
<View style={{ ...view_styles.section_body, flexDirection:direction == 'horizontal' ? 'row' : 'column', flexGrow:2, padding:0, justifyContent:'center', alignItems:'center' }}>
|
|
84
|
+
<View transparent style={{ flexDirection:direction == 'horizontal' ? 'row' : 'column' }}>
|
|
85
|
+
<View transparent style={{ ...view_styles.section_body, flexDirection:direction == 'horizontal' ? 'row' : 'column', flexGrow:2, padding:0, justifyContent:'center', alignItems:'center' }}>
|
|
89
86
|
<TeamImage
|
|
90
87
|
team={team}
|
|
91
88
|
size={24}
|
|
92
89
|
/>
|
|
93
|
-
<View style={{ padding:10, paddingBottom:0 }}>
|
|
94
|
-
<Text
|
|
95
|
-
<Text style={{ marginTop:3 }}
|
|
90
|
+
<View transparent style={{ padding:10, paddingBottom:0 }}>
|
|
91
|
+
<Text theme='h2' textAlign='center'>{team.market_name} {team.name}</Text>
|
|
92
|
+
<Text style={{ marginTop:3 }} theme='light' textAlign='center' size={12}>{team.division}</Text>
|
|
96
93
|
</View>
|
|
97
94
|
</View>
|
|
98
|
-
<View nativeID='market_sides' style={{ flexDirection:'row',flexGrow:1.5, justifyContent:'center', alignItems:'center', padding:10 }}>
|
|
95
|
+
<View transparent nativeID='market_sides' style={{ flexDirection:'row',flexGrow:1.5, justifyContent:'center', alignItems:'center', padding:10 }}>
|
|
99
96
|
{market.side_options.sort((a,b) => {
|
|
100
97
|
let a_t = a.side == market.trade_side ? 1 : 0
|
|
101
98
|
let b_t = b.side == market.trade_side ? 1 : 0
|
|
@@ -106,8 +103,8 @@ const TeamTournamentMarket = ({ tournament, direction, show_event, hide_liquidit
|
|
|
106
103
|
</View>
|
|
107
104
|
</View>
|
|
108
105
|
{!hide_liquidity ?
|
|
109
|
-
<View style={{
|
|
110
|
-
<
|
|
106
|
+
<View type='footer' style={{ flexDirection:'row', alignItems:'center', borderBottomLeftRadius:8, borderBottomRightRadius:8 }}>
|
|
107
|
+
<Button transparent style={{ flexGrow:1, flexDirection:'row', padding:10 }} onPress={() => {
|
|
111
108
|
onView({
|
|
112
109
|
event_id: tournament.tournament_id,
|
|
113
110
|
event_type: 'tournament',
|
|
@@ -116,22 +113,19 @@ const TeamTournamentMarket = ({ tournament, direction, show_event, hide_liquidit
|
|
|
116
113
|
side_id: team.team_id
|
|
117
114
|
});
|
|
118
115
|
}}>
|
|
119
|
-
<View style={{
|
|
120
|
-
<Icons.LiquidityIcon color={
|
|
116
|
+
<View float style={{ height:30, width:30, borderRadius:100, justifyContent:'center', alignItems:'center' }}>
|
|
117
|
+
<Icons.LiquidityIcon color={C.text.h1} size={30}/>
|
|
121
118
|
</View>
|
|
122
|
-
<View style={{ marginLeft:10 }}>
|
|
123
|
-
<Text theme='
|
|
124
|
-
<Text size={12} color={
|
|
119
|
+
<View transparent style={{ marginLeft:10 }}>
|
|
120
|
+
<Text theme='description'>Liquidity</Text>
|
|
121
|
+
<Text size={12} style={{ marginTop:3 }} color={C.text.highlight} weight='semibold'>${liquidity.toFixed()} {open_order_count} Orders</Text>
|
|
125
122
|
</View>
|
|
126
|
-
</
|
|
123
|
+
</Button>
|
|
127
124
|
</View>
|
|
128
125
|
:<></>}
|
|
129
126
|
</View>
|
|
130
127
|
)
|
|
131
128
|
}
|
|
132
129
|
|
|
133
|
-
const styles = StyleSheet.create({
|
|
134
|
-
container_style: { ...view_styles.section, flexGrow:1, borderWidth:1, borderColor:Colors.shades.shade600 }
|
|
135
|
-
})
|
|
136
130
|
|
|
137
131
|
export default TeamTournamentMarket
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React, { useEffect, useRef, useState } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { view_styles } from '../../../constants/styles';
|
|
2
|
+
import { FlatList, ActivityIndicator, Image } from 'react-native';
|
|
4
3
|
import Colors from '../../../constants/colors';
|
|
5
4
|
import type { AthleteProps, BestAvailableOrderProps, EventOrderStatProps, LeagueProps, MarketProps, MatchProps, OrderProps, TeamProps, TournamentProps, TradeProps } from '../../../types';
|
|
6
|
-
import {
|
|
5
|
+
import { Icons, LinearDiagnal } from '../../../Components';
|
|
7
6
|
import { MarketComponentApi, MarketComponentHelpers } from '../../api';
|
|
8
7
|
import AthleteTournamentMarket from '../AthleteTournamentMarket';
|
|
9
8
|
import TeamTournamentMarket from '../TeamTournamentMarket';
|
|
@@ -11,6 +10,8 @@ import MatchMarket from '../MatchMarket';
|
|
|
11
10
|
import moment from 'moment-mini';
|
|
12
11
|
import { TournamentMarketHelpers } from './api';
|
|
13
12
|
import { useIsInViewport } from '../../../Components/ViewportObserver';
|
|
13
|
+
import { Button, Text, TextInput, View } from '../../../Components/Themed';
|
|
14
|
+
import { useColors } from '../../../constants/useColors';
|
|
14
15
|
|
|
15
16
|
|
|
16
17
|
type TournamentMarketProps = {
|
|
@@ -19,8 +20,10 @@ type TournamentMarketProps = {
|
|
|
19
20
|
markets:MarketProps[],
|
|
20
21
|
hide_liquidity?:boolean,
|
|
21
22
|
width?:number,
|
|
23
|
+
style?:any,
|
|
22
24
|
hide_match_liquidity?:boolean,
|
|
23
25
|
show_grades?:boolean,
|
|
26
|
+
float?:boolean,
|
|
24
27
|
hide_participant_liquidity?:boolean,
|
|
25
28
|
activate_loading?:boolean,
|
|
26
29
|
wrap_markets?:boolean,
|
|
@@ -39,7 +42,8 @@ type TournamentMarketProps = {
|
|
|
39
42
|
onOrder:(order:OrderProps) => void
|
|
40
43
|
}
|
|
41
44
|
|
|
42
|
-
const TournamentMarket = ({ tournament, wrap_markets, width, market_selector_location, hide_match_liquidity, show_grades, hide_participant_liquidity, league, markets, latest_trades, hide_liquidity, best_available_orders, event_order_stats, match_available_orders, match_latest_trades, match_order_stats, activate_loading, onView, onTradeLongPress, onViewAdditionalMarkets, onOrder, onActivate, onShare }:TournamentMarketProps) => {
|
|
45
|
+
const TournamentMarket = ({ tournament, float, wrap_markets, width, style, market_selector_location, hide_match_liquidity, show_grades, hide_participant_liquidity, league, markets, latest_trades, hide_liquidity, best_available_orders, event_order_stats, match_available_orders, match_latest_trades, match_order_stats, activate_loading, onView, onTradeLongPress, onViewAdditionalMarkets, onOrder, onActivate, onShare }:TournamentMarketProps) => {
|
|
46
|
+
const C = useColors();
|
|
43
47
|
const [ search_value, setSearchValue ] = useState<string | undefined>(undefined);
|
|
44
48
|
const [ tournament_data, setTournamentData ] = useState<{
|
|
45
49
|
loaded:boolean,
|
|
@@ -61,6 +65,7 @@ const TournamentMarket = ({ tournament, wrap_markets, width, market_selector_loc
|
|
|
61
65
|
});
|
|
62
66
|
const { loaded, athletes, active_type, loading, matches, teams, active_market, match_trades } = tournament_data;
|
|
63
67
|
const [ show_markets, setShowMarkets ] = useState(false);
|
|
68
|
+
console.log(loaded, loading)
|
|
64
69
|
const ref = useRef(null);
|
|
65
70
|
const is_in_viewport = useIsInViewport(ref)
|
|
66
71
|
|
|
@@ -80,7 +85,7 @@ const TournamentMarket = ({ tournament, wrap_markets, width, market_selector_loc
|
|
|
80
85
|
if(!wrap_markets){ sorted_matches = sorted_matches.filter(m => !['closed','cancelled','postponed','suspended'].includes(m.status)) }
|
|
81
86
|
const market_width = TournamentMarketHelpers.getMarketWrapWidth(50, width, wrap_markets)
|
|
82
87
|
useEffect(() => {
|
|
83
|
-
if(
|
|
88
|
+
if(loaded || loading){ return }
|
|
84
89
|
MarketComponentApi.setEnvironment();
|
|
85
90
|
getTournamentData(tournament)
|
|
86
91
|
},[is_in_viewport, tournament.tournament_id]);
|
|
@@ -120,12 +125,12 @@ const TournamentMarket = ({ tournament, wrap_markets, width, market_selector_loc
|
|
|
120
125
|
|
|
121
126
|
const renderMarkets = (data: { item:MarketProps, index:number }) => {
|
|
122
127
|
return (
|
|
123
|
-
<
|
|
128
|
+
<Button style={{ flexDirection:'row', alignItems:'center', padding:10, borderBottomWidth:1, borderColor:C.borders.light }} onPress={() => {
|
|
124
129
|
setTournamentData({ ...tournament_data, active_market: data.item });
|
|
125
130
|
setShowMarkets(false);
|
|
126
131
|
}}>
|
|
127
|
-
<Text size={12}
|
|
128
|
-
</
|
|
132
|
+
<Text size={12} theme='h2'>{data.item.type == 'Stat' ? data.item.stat_label : data.item.type}</Text>
|
|
133
|
+
</Button>
|
|
129
134
|
)
|
|
130
135
|
}
|
|
131
136
|
|
|
@@ -144,10 +149,12 @@ const TournamentMarket = ({ tournament, wrap_markets, width, market_selector_loc
|
|
|
144
149
|
let m_order_stats = match_order_stats.filter(os => os.event_id == data.item.match_id && os.event_type == 'match');
|
|
145
150
|
|
|
146
151
|
return (
|
|
147
|
-
<View key={`${tournament.tournament_id}_${data.item.match_id}`}>
|
|
152
|
+
<View key={`${tournament.tournament_id}_${data.item.match_id}`} style={{ margin:4 }}>
|
|
148
153
|
<MatchMarket
|
|
149
154
|
match={data.item}
|
|
150
155
|
league={league}
|
|
156
|
+
float
|
|
157
|
+
style={{ flexGrow:1 }}
|
|
151
158
|
away_athlete={away_athlete}
|
|
152
159
|
home_athlete={home_athlete}
|
|
153
160
|
away_team={away_team}
|
|
@@ -175,7 +182,7 @@ const TournamentMarket = ({ tournament, wrap_markets, width, market_selector_loc
|
|
|
175
182
|
let team_trades = latest_trades.filter(t => t.side_type == 'team' && t.side_id == data.item.team_id);
|
|
176
183
|
let team_order_stats = event_order_stats.filter(os => os.side_type == 'team' && os.side_id == data.item.team_id);
|
|
177
184
|
return (
|
|
178
|
-
<View key={`${tournament.tournament_id}_${data.item.team_id.toString()}`}>
|
|
185
|
+
<View key={`${tournament.tournament_id}_${data.item.team_id.toString()}`} style={{ margin:4 }}>
|
|
179
186
|
<TeamTournamentMarket
|
|
180
187
|
team={data.item}
|
|
181
188
|
event_type='tournament'
|
|
@@ -183,6 +190,7 @@ const TournamentMarket = ({ tournament, wrap_markets, width, market_selector_loc
|
|
|
183
190
|
onView={onView}
|
|
184
191
|
width={wrap_markets ? market_width : undefined}
|
|
185
192
|
show_grades={show_grades}
|
|
193
|
+
float
|
|
186
194
|
hide_liquidity={hide_participant_liquidity ? true : false}
|
|
187
195
|
tournament={tournament}
|
|
188
196
|
event_order_stats={team_order_stats}
|
|
@@ -202,12 +210,14 @@ const TournamentMarket = ({ tournament, wrap_markets, width, market_selector_loc
|
|
|
202
210
|
let team_trades = latest_trades.filter(t => t.side_type == 'athlete' && t.side_id == data.item.athlete_id);
|
|
203
211
|
let team_order_stats = event_order_stats.filter(os => os.side_type == 'athlete' && os.side_id == data.item.athlete_id);
|
|
204
212
|
return (
|
|
205
|
-
<View key={`${tournament.tournament_id}_${data.item.athlete_id.toString()}`}>
|
|
213
|
+
<View key={`${tournament.tournament_id}_${data.item.athlete_id.toString()}`} style={{ margin:4 }}>
|
|
206
214
|
<AthleteTournamentMarket
|
|
207
215
|
athlete={data.item}
|
|
208
216
|
event_type='tournament'
|
|
209
217
|
onTradeLongPress={onTradeLongPress}
|
|
210
218
|
onView={onView}
|
|
219
|
+
float
|
|
220
|
+
style={{ flexGrow:1 }}
|
|
211
221
|
show_grades={show_grades}
|
|
212
222
|
hide_liquidity={hide_participant_liquidity ? true : false}
|
|
213
223
|
tournament={tournament}
|
|
@@ -224,8 +234,8 @@ const TournamentMarket = ({ tournament, wrap_markets, width, market_selector_loc
|
|
|
224
234
|
}
|
|
225
235
|
|
|
226
236
|
return (
|
|
227
|
-
<View
|
|
228
|
-
<View style={{
|
|
237
|
+
<View float={float} style={[{ borderRadius:8 }, style]}>
|
|
238
|
+
<View type='header' transparent nativeID='event_header_data' style={{ flexDirection:'row', alignItems:'center', flexWrap:'wrap', padding:10, borderBottomWidth:1, borderBottomColor:C.borders.light }}>
|
|
229
239
|
{league ?
|
|
230
240
|
<Image
|
|
231
241
|
source={{ uri: league.league_image }}
|
|
@@ -233,9 +243,9 @@ const TournamentMarket = ({ tournament, wrap_markets, width, market_selector_loc
|
|
|
233
243
|
resizeMode='cover'
|
|
234
244
|
/>
|
|
235
245
|
:<></>}
|
|
236
|
-
<View style={{ flex:1 }}>
|
|
237
|
-
<Text theme='
|
|
238
|
-
<Text style={{ marginTop:3 }} theme='
|
|
246
|
+
<View transparent style={{ flex:1 }}>
|
|
247
|
+
<Text theme='h2'>{tournament.tournament_name}</Text>
|
|
248
|
+
<Text style={{ marginTop:3 }} theme='description'>{moment(tournament.scheduled_datetime).format('MMM DD YYYY')}</Text>
|
|
239
249
|
</View>
|
|
240
250
|
{onActivate && tournament.status != 'closed' ?
|
|
241
251
|
<Button
|
|
@@ -249,67 +259,68 @@ const TournamentMarket = ({ tournament, wrap_markets, width, market_selector_loc
|
|
|
249
259
|
/>
|
|
250
260
|
:<></>}
|
|
251
261
|
{onShare ?
|
|
252
|
-
<
|
|
253
|
-
<Icons.ShareIcon size={14} color={
|
|
254
|
-
</
|
|
262
|
+
<Button style={{ marginLeft:10 }} onPress={() => onShare(tournament)}>
|
|
263
|
+
<Icons.ShareIcon size={14} color={C.text.action} />
|
|
264
|
+
</Button>
|
|
255
265
|
:<></>}
|
|
256
266
|
</View>
|
|
257
267
|
{loading || !loaded ?
|
|
258
|
-
<View style={{ padding:20 }}>
|
|
259
|
-
<ActivityIndicator size={'large'} color={
|
|
268
|
+
<View transparent style={{ padding:20 }}>
|
|
269
|
+
<ActivityIndicator size={'large'} color={C.text.h1} />
|
|
260
270
|
</View>
|
|
261
271
|
:
|
|
262
|
-
<View>
|
|
272
|
+
<View type='body' transparent style={{ flexGrow:1 }}>
|
|
263
273
|
{market_selector_location == 'top_right' ?
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
style={{ flex:1, marginLeft:10, borderRadius:0, borderTopRightRadius:22, borderBottomRightRadius:22 }}
|
|
269
|
-
placeholder='Search athletes, teams, matches ...'
|
|
270
|
-
placeholderTextColor={Colors.accents.accent200}
|
|
271
|
-
onChangeText={(text) => setSearchValue(text)}
|
|
272
|
-
/>
|
|
273
|
-
</View>
|
|
274
|
-
<TouchableOpacity style={{ flexDirection:'row', alignItems:'center', backgroundColor:Colors.shades.white, borderWidth:1, borderColor:Colors.shades.shade600, borderRadius:4, padding:10, ...view_styles.float }} onPress={() => setShowMarkets(!show_markets)}>
|
|
275
|
-
<Text style={{ marginRight:10 }} size={14} color={Colors.brand.midnight}>{active_market?.type == 'Stat' ? active_market.stat_label : active_market?.type}</Text>
|
|
276
|
-
<Icons.ChevronIcon color={Colors.brand.midnight} size={14} />
|
|
277
|
-
</TouchableOpacity>
|
|
278
|
-
{show_markets ?
|
|
279
|
-
<View style={{ ...view_styles.section, position:'absolute', top:5, right:5, minWidth:175 }}>
|
|
280
|
-
<View style={{ ...view_styles.section_header, backgroundColor:Colors.shades.shade100 }}>
|
|
281
|
-
<View style={{ flex:1 }}>
|
|
282
|
-
<Text theme='header_2'>Select Market</Text>
|
|
274
|
+
<View transparent style={{ flexDirection:'row', alignItems:'center', padding:10, zIndex:1 }}>
|
|
275
|
+
<View type='input' style={{ flex:1, flexDirection:'row', alignItems:'center' }}>
|
|
276
|
+
<View transparent style={{ padding:5, paddingLeft:10, paddingRight:10 }}>
|
|
277
|
+
<Icons.SearchIcon color={C.text.action} size={18} />
|
|
283
278
|
</View>
|
|
284
|
-
<
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
padding={5}
|
|
290
|
-
onPress={() => setShowMarkets(false)}
|
|
279
|
+
<TextInput
|
|
280
|
+
style={{ flex:1}}
|
|
281
|
+
transparent
|
|
282
|
+
placeholder='Search athletes, teams, matches ...'
|
|
283
|
+
onChangeText={(text) => setSearchValue(text)}
|
|
291
284
|
/>
|
|
292
285
|
</View>
|
|
293
|
-
<
|
|
294
|
-
<
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
286
|
+
<Button float style={{ flexDirection:'row', alignItems:'center', marginLeft:5 }} onPress={() => setShowMarkets(!show_markets)}>
|
|
287
|
+
<Text style={{ marginRight:10 }} size={14} color={C.text.h1}>{active_market?.type == 'Stat' ? active_market.stat_label : active_market?.type}</Text>
|
|
288
|
+
<Icons.ChevronIcon color={C.text.h1} size={14} />
|
|
289
|
+
</Button>
|
|
290
|
+
{show_markets ?
|
|
291
|
+
<View transparent float style={{ position:'absolute', top:5, right:5, minWidth:175 }}>
|
|
292
|
+
<View type='header' style={{ flexDirection:'row', alignItems:'center', padding:5, borderTopRightRadius:8, borderTopLeftRadius:8 }}>
|
|
293
|
+
<View transparent style={{ flex:1 }}>
|
|
294
|
+
<Text theme='h2'>Select Market</Text>
|
|
295
|
+
</View>
|
|
296
|
+
<Button
|
|
297
|
+
title='X'
|
|
298
|
+
title_color={C.text.action}
|
|
299
|
+
style={{ borderRadius:100, padding:5, paddingLeft:10, paddingRight:10 }}
|
|
300
|
+
type='close'
|
|
301
|
+
onPress={() => setShowMarkets(false)}
|
|
302
|
+
/>
|
|
303
|
+
|
|
304
|
+
</View>
|
|
305
|
+
<View transparent style={{ padding:10 }}>
|
|
306
|
+
<FlatList
|
|
307
|
+
data={supported_markets}
|
|
308
|
+
renderItem={renderMarkets}
|
|
309
|
+
keyExtractor={(item) => item.market_id.toString()}
|
|
310
|
+
/>
|
|
311
|
+
</View>
|
|
299
312
|
</View>
|
|
313
|
+
:<></>}
|
|
300
314
|
</View>
|
|
301
|
-
:<></>}
|
|
302
|
-
</View>
|
|
303
315
|
:<></>}
|
|
304
316
|
<View style={{ flexDirection:'row', alignItems:'center' }}>
|
|
305
317
|
<View style={{flex:1}}>
|
|
306
|
-
<LinearDiagnal label_size={14} label={active_type == 'futures' ? 'FUTURES' : 'MATCHES'} left_color={
|
|
318
|
+
<LinearDiagnal label_size={14} label={active_type == 'futures' ? 'FUTURES' : 'MATCHES'} left_color={C.text.warning} right_color={C.text.error}/>
|
|
307
319
|
</View>
|
|
308
320
|
{((active_type == 'matches' && show_futures) || (active_type == 'futures' && show_matches)) ?
|
|
309
321
|
<Button
|
|
310
322
|
title={`SEE ${active_type == 'futures' ? 'MATCHES' : 'FUTURES'}`}
|
|
311
|
-
|
|
312
|
-
title_color={Colors.brand.electric}
|
|
323
|
+
type='close'
|
|
313
324
|
onPress={() => {
|
|
314
325
|
let new_active_market = active_market
|
|
315
326
|
if(active_type == 'futures'){
|
|
@@ -324,15 +335,13 @@ const TournamentMarket = ({ tournament, wrap_markets, width, market_selector_loc
|
|
|
324
335
|
:<></>}
|
|
325
336
|
</View>
|
|
326
337
|
{active_type == 'futures' && show_teams && teams.length > 0 ?
|
|
327
|
-
<View>
|
|
338
|
+
<View transparent style={{ padding:10 }}>
|
|
328
339
|
{wrap_markets ?
|
|
329
|
-
<
|
|
330
|
-
|
|
331
|
-
{
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
</View>
|
|
335
|
-
</ScrollView>
|
|
340
|
+
<View transparent style={{ flexDirection:'row', flexWrap:'wrap', justifyContent:'center' }}>
|
|
341
|
+
{sorted_teams.map((t,i) => {
|
|
342
|
+
return renderTeams({ item:t, index:i })
|
|
343
|
+
})}
|
|
344
|
+
</View>
|
|
336
345
|
:
|
|
337
346
|
<FlatList
|
|
338
347
|
data={sorted_teams}
|
|
@@ -344,9 +353,9 @@ const TournamentMarket = ({ tournament, wrap_markets, width, market_selector_loc
|
|
|
344
353
|
</View>
|
|
345
354
|
:<></>}
|
|
346
355
|
{active_type == 'futures' && show_athletes && athletes.length > 0 ?
|
|
347
|
-
<View>
|
|
356
|
+
<View transparent style={{ padding:10 }}>
|
|
348
357
|
{wrap_markets ?
|
|
349
|
-
<View style={{ flexDirection:'row', flexWrap:'wrap', justifyContent:'center' }}>
|
|
358
|
+
<View transparent style={{ flexDirection:'row', flexWrap:'wrap', justifyContent:'center' }}>
|
|
350
359
|
{sorted_athletes.map((a,i) => {
|
|
351
360
|
return renderAthletes({ item:a, index:i })
|
|
352
361
|
})}
|
|
@@ -361,9 +370,9 @@ const TournamentMarket = ({ tournament, wrap_markets, width, market_selector_loc
|
|
|
361
370
|
}
|
|
362
371
|
</View>
|
|
363
372
|
:active_type == 'matches' && show_matches && matches.length > 0 ?
|
|
364
|
-
<View>
|
|
373
|
+
<View transparent style={{ padding:10 }}>
|
|
365
374
|
{wrap_markets ?
|
|
366
|
-
<View style={{ flexDirection:'row', flexWrap:'wrap', justifyContent:'center' }}>
|
|
375
|
+
<View transparent style={{ flexDirection:'row', flexWrap:'wrap', justifyContent:'center' }}>
|
|
367
376
|
{sorted_matches.map((m,i) => {
|
|
368
377
|
return renderMatches({ item:m, index:i })
|
|
369
378
|
})}
|
|
@@ -381,51 +390,52 @@ const TournamentMarket = ({ tournament, wrap_markets, width, market_selector_loc
|
|
|
381
390
|
</View>
|
|
382
391
|
}
|
|
383
392
|
|
|
384
|
-
<View style={{
|
|
393
|
+
<View type='footer' style={{ flexDirection:'row', alignItems:'center', padding:10, borderBottomLeftRadius:8, borderBottomRightRadius:8 }}>
|
|
394
|
+
|
|
385
395
|
{!hide_liquidity ?
|
|
386
|
-
<
|
|
396
|
+
<Button transparent style={{ flexGrow:1, flexDirection:'row', padding:10 }} onPress={() => {
|
|
387
397
|
if(!active_market){ return }
|
|
388
398
|
onViewAdditionalMarkets(tournament.tournament_id, 'tournament');
|
|
389
399
|
}}>
|
|
390
|
-
<View style={{
|
|
391
|
-
<Icons.LiquidityIcon color={
|
|
400
|
+
<View float style={{ height:30, width:30, borderRadius:100, justifyContent:'center', alignItems:'center' }}>
|
|
401
|
+
<Icons.LiquidityIcon color={C.text.h1} size={30}/>
|
|
392
402
|
</View>
|
|
393
|
-
<View style={{ marginLeft:
|
|
394
|
-
<Text theme='
|
|
395
|
-
<Text size={12} color={
|
|
403
|
+
<View transparent style={{ marginLeft:10 }}>
|
|
404
|
+
<Text theme='description'>Liquidity</Text>
|
|
405
|
+
<Text size={12} style={{ marginTop:3 }} color={C.text.highlight} weight='semibold'>${liquidity.toFixed()} {open_order_count} Orders</Text>
|
|
396
406
|
</View>
|
|
397
|
-
</
|
|
398
|
-
:<View style={{flex:1}} />}
|
|
407
|
+
</Button>
|
|
408
|
+
:<View transparent style={{flex:1}} />}
|
|
399
409
|
{!market_selector_location ?
|
|
400
|
-
<View>
|
|
401
|
-
<
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
+
<View transparent>
|
|
411
|
+
<Button float style={{ flexDirection:'row', alignItems:'center', marginLeft:5 }} onPress={() => setShowMarkets(!show_markets)}>
|
|
412
|
+
<Text style={{ marginRight:10 }} size={14} color={C.text.h1}>{active_market?.type == 'Stat' ? active_market.stat_label : active_market?.type}</Text>
|
|
413
|
+
<Icons.ChevronIcon color={C.text.h1} size={14} />
|
|
414
|
+
</Button>
|
|
415
|
+
{show_markets ?
|
|
416
|
+
<View transparent float style={{ position:'absolute', bottom:5, right:5, minWidth:175 }}>
|
|
417
|
+
<View type='header' style={{ flexDirection:'row', alignItems:'center', padding:5, borderTopRightRadius:8, borderTopLeftRadius:8 }}>
|
|
418
|
+
<View transparent style={{ flex:1 }}>
|
|
419
|
+
<Text theme='h2'>Select Market</Text>
|
|
420
|
+
</View>
|
|
421
|
+
<Button
|
|
422
|
+
title='X'
|
|
423
|
+
title_color={C.text.action}
|
|
424
|
+
style={{ borderRadius:100, padding:5, paddingLeft:10, paddingRight:10 }}
|
|
425
|
+
type='close'
|
|
426
|
+
onPress={() => setShowMarkets(false)}
|
|
427
|
+
/>
|
|
428
|
+
|
|
429
|
+
</View>
|
|
430
|
+
<View transparent style={{ padding:10 }}>
|
|
431
|
+
<FlatList
|
|
432
|
+
data={supported_markets}
|
|
433
|
+
renderItem={renderMarkets}
|
|
434
|
+
keyExtractor={(item) => item.market_id.toString()}
|
|
435
|
+
/>
|
|
410
436
|
</View>
|
|
411
|
-
<Button
|
|
412
|
-
title='X'
|
|
413
|
-
title_weight='regular'
|
|
414
|
-
borderRadius={100}
|
|
415
|
-
backgroundColor={Colors.shades.white}
|
|
416
|
-
padding={5}
|
|
417
|
-
onPress={() => setShowMarkets(false)}
|
|
418
|
-
/>
|
|
419
|
-
</View>
|
|
420
|
-
<View style={{ ...view_styles.section_body, padding:10 }}>
|
|
421
|
-
<FlatList
|
|
422
|
-
data={supported_markets}
|
|
423
|
-
renderItem={renderMarkets}
|
|
424
|
-
keyExtractor={(item) => item.market_id.toString()}
|
|
425
|
-
/>
|
|
426
437
|
</View>
|
|
427
|
-
|
|
428
|
-
:<></>}
|
|
438
|
+
:<></>}
|
|
429
439
|
</View>
|
|
430
440
|
:<></>}
|
|
431
441
|
</View>
|