be-components 3.3.6 → 3.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js +21 -28
- package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/LoginForm.js +93 -109
- package/lib/commonjs/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/StrategyForm.js +246 -342
- package/lib/commonjs/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/commonjs/Authenticator/index.js +22 -32
- package/lib/commonjs/Authenticator/index.js.map +1 -1
- package/lib/commonjs/Competition/components/AthleteMarketCard.js +39 -26
- package/lib/commonjs/Competition/components/AthleteMarketCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionInfoCard.js +115 -175
- package/lib/commonjs/Competition/components/CompetitionInfoCard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionLeaderboard.js +97 -95
- package/lib/commonjs/Competition/components/CompetitionLeaderboard.js.map +1 -1
- package/lib/commonjs/Competition/components/CompetitionPlay.js +99 -113
- package/lib/commonjs/Competition/components/CompetitionPlay.js.map +1 -1
- package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js +56 -75
- package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js.map +1 -1
- package/lib/commonjs/Competition/components/LeaderPicks.js +4 -4
- package/lib/commonjs/Competition/components/LeaderPicks.js.map +1 -1
- package/lib/commonjs/Competition/components/MarketsCard.js +22 -12
- package/lib/commonjs/Competition/components/MarketsCard.js.map +1 -1
- package/lib/commonjs/Competition/components/TeamEventCard.js +46 -37
- package/lib/commonjs/Competition/components/TeamEventCard.js.map +1 -1
- package/lib/commonjs/Competition/components/WagerPickForm.js +73 -85
- package/lib/commonjs/Competition/components/WagerPickForm.js.map +1 -1
- package/lib/commonjs/Competition/index.js +236 -216
- package/lib/commonjs/Competition/index.js.map +1 -1
- package/lib/commonjs/Components/Button.js +49 -6
- package/lib/commonjs/Components/Button.js.map +1 -1
- package/lib/commonjs/Components/ConfirmationModal.js +29 -29
- package/lib/commonjs/Components/ConfirmationModal.js.map +1 -1
- package/lib/commonjs/Components/Themed.js +281 -0
- package/lib/commonjs/Components/Themed.js.map +1 -0
- package/lib/commonjs/MarketComponents/components/AthleteMarket/index.js +43 -52
- package/lib/commonjs/MarketComponents/components/AthleteMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.js +50 -61
- package/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/EventMarket/index.js +48 -54
- package/lib/commonjs/MarketComponents/components/EventMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/MarketButton/api/index.js +2 -3
- package/lib/commonjs/MarketComponents/components/MarketButton/api/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/MarketButton/index.js +22 -22
- package/lib/commonjs/MarketComponents/components/MarketButton/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/MatchMarket/index.js +53 -63
- package/lib/commonjs/MarketComponents/components/MatchMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/index.js +239 -220
- package/lib/commonjs/MarketComponents/components/TeamEventMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.js +48 -57
- package/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.js.map +1 -1
- package/lib/commonjs/MarketComponents/components/TournamentMarket/index.js +203 -131
- package/lib/commonjs/MarketComponents/components/TournamentMarket/index.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js +49 -55
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicStatus.js +55 -88
- package/lib/commonjs/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js +94 -121
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/DOBManager.js +42 -46
- package/lib/commonjs/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/EmailManager.js +66 -86
- package/lib/commonjs/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js +60 -78
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js +62 -81
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js +19 -27
- package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js +31 -48
- package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js +69 -92
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js +63 -65
- package/lib/commonjs/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/VouchCard.js +106 -132
- package/lib/commonjs/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/commonjs/ProfileManager/index.js +29 -31
- package/lib/commonjs/ProfileManager/index.js.map +1 -1
- package/lib/commonjs/Share/api/index.js +13 -6
- package/lib/commonjs/Share/api/index.js.map +1 -1
- package/lib/commonjs/Share/index.js +11 -11
- package/lib/commonjs/Share/index.js.map +1 -1
- package/lib/commonjs/Squares/components/BidForm.js +142 -120
- package/lib/commonjs/Squares/components/BidForm.js.map +1 -1
- package/lib/commonjs/Squares/components/BidToggle.js +10 -11
- package/lib/commonjs/Squares/components/BidToggle.js.map +1 -1
- package/lib/commonjs/Squares/components/BoardStats.js +63 -47
- package/lib/commonjs/Squares/components/BoardStats.js.map +1 -1
- package/lib/commonjs/Squares/components/EventCard.js +48 -29
- package/lib/commonjs/Squares/components/EventCard.js.map +1 -1
- package/lib/commonjs/Squares/components/MySquaresCard.js +48 -31
- package/lib/commonjs/Squares/components/MySquaresCard.js.map +1 -1
- package/lib/commonjs/Squares/components/MyStatsCard.js +155 -121
- package/lib/commonjs/Squares/components/MyStatsCard.js.map +1 -1
- package/lib/commonjs/Squares/components/OfferForm.js +32 -32
- package/lib/commonjs/Squares/components/OfferForm.js.map +1 -1
- package/lib/commonjs/Squares/components/PrizeCard.js +44 -35
- package/lib/commonjs/Squares/components/PrizeCard.js.map +1 -1
- package/lib/commonjs/Squares/components/ResultsCard.js +37 -24
- package/lib/commonjs/Squares/components/ResultsCard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquareOffersCard.js +20 -13
- package/lib/commonjs/Squares/components/SquareOffersCard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquareOwners.js +44 -38
- package/lib/commonjs/Squares/components/SquareOwners.js.map +1 -1
- package/lib/commonjs/Squares/components/SquaresBoard.js +77 -59
- package/lib/commonjs/Squares/components/SquaresBoard.js.map +1 -1
- package/lib/commonjs/Squares/components/SquaresDetails.js +46 -36
- package/lib/commonjs/Squares/components/SquaresDetails.js.map +1 -1
- package/lib/commonjs/Squares/index.js +207 -150
- package/lib/commonjs/Squares/index.js.map +1 -1
- package/lib/commonjs/constants/colors.js +18 -3
- package/lib/commonjs/constants/colors.js.map +1 -1
- package/lib/commonjs/constants/styles.js +72 -2
- package/lib/commonjs/constants/styles.js.map +1 -1
- package/lib/commonjs/constants/useColors.js +153 -0
- package/lib/commonjs/constants/useColors.js.map +1 -0
- package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js +19 -26
- package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -1
- package/lib/module/Authenticator/Components/LoginForm.js +54 -70
- package/lib/module/Authenticator/Components/LoginForm.js.map +1 -1
- package/lib/module/Authenticator/Components/StrategyForm.js +227 -322
- package/lib/module/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/module/Authenticator/index.js +16 -26
- package/lib/module/Authenticator/index.js.map +1 -1
- package/lib/module/Competition/components/AthleteMarketCard.js +28 -15
- package/lib/module/Competition/components/AthleteMarketCard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionInfoCard.js +82 -141
- package/lib/module/Competition/components/CompetitionInfoCard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionLeaderboard.js +68 -66
- package/lib/module/Competition/components/CompetitionLeaderboard.js.map +1 -1
- package/lib/module/Competition/components/CompetitionPlay.js +65 -79
- package/lib/module/Competition/components/CompetitionPlay.js.map +1 -1
- package/lib/module/Competition/components/EnterCompetitionPrompt.js +35 -54
- package/lib/module/Competition/components/EnterCompetitionPrompt.js.map +1 -1
- package/lib/module/Competition/components/LeaderPicks.js +4 -4
- package/lib/module/Competition/components/LeaderPicks.js.map +1 -1
- package/lib/module/Competition/components/MarketsCard.js +15 -5
- package/lib/module/Competition/components/MarketsCard.js.map +1 -1
- package/lib/module/Competition/components/TeamEventCard.js +24 -15
- package/lib/module/Competition/components/TeamEventCard.js.map +1 -1
- package/lib/module/Competition/components/WagerPickForm.js +44 -56
- package/lib/module/Competition/components/WagerPickForm.js.map +1 -1
- package/lib/module/Competition/index.js +215 -195
- package/lib/module/Competition/index.js.map +1 -1
- package/lib/module/Components/Button.js +49 -6
- package/lib/module/Components/Button.js.map +1 -1
- package/lib/module/Components/ConfirmationModal.js +21 -21
- package/lib/module/Components/ConfirmationModal.js.map +1 -1
- package/lib/module/Components/Themed.js +269 -0
- package/lib/module/Components/Themed.js.map +1 -0
- package/lib/module/MarketComponents/components/AthleteMarket/index.js +29 -38
- package/lib/module/MarketComponents/components/AthleteMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/AthleteTournamentMarket/index.js +36 -47
- package/lib/module/MarketComponents/components/AthleteTournamentMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/EventMarket/index.js +35 -41
- package/lib/module/MarketComponents/components/EventMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/MarketButton/api/index.js +2 -3
- package/lib/module/MarketComponents/components/MarketButton/api/index.js.map +1 -1
- package/lib/module/MarketComponents/components/MarketButton/index.js +17 -17
- package/lib/module/MarketComponents/components/MarketButton/index.js.map +1 -1
- package/lib/module/MarketComponents/components/MatchMarket/index.js +35 -45
- package/lib/module/MarketComponents/components/MatchMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/TeamEventMarket/index.js +176 -157
- package/lib/module/MarketComponents/components/TeamEventMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/TeamTournamentMarket/index.js +34 -43
- package/lib/module/MarketComponents/components/TeamTournamentMarket/index.js.map +1 -1
- package/lib/module/MarketComponents/components/TournamentMarket/index.js +172 -100
- package/lib/module/MarketComponents/components/TournamentMarket/index.js.map +1 -1
- package/lib/module/ProfileManager/Components/BasicInfoManager.js +28 -34
- package/lib/module/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/BasicStatus.js +28 -61
- package/lib/module/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/module/ProfileManager/Components/CodeRedeem.js +55 -81
- package/lib/module/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/module/ProfileManager/Components/DOBManager.js +27 -31
- package/lib/module/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/EmailManager.js +42 -61
- package/lib/module/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PasswordManager.js +36 -54
- package/lib/module/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PhoneManager.js +37 -56
- package/lib/module/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfilePicManager.js +10 -18
- package/lib/module/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWelcome.js +21 -38
- package/lib/module/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWizard.js +42 -65
- package/lib/module/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/module/ProfileManager/Components/SettingsManager.js +45 -47
- package/lib/module/ProfileManager/Components/SettingsManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/VouchCard.js +69 -95
- package/lib/module/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/module/ProfileManager/index.js +18 -20
- package/lib/module/ProfileManager/index.js.map +1 -1
- package/lib/module/Share/api/index.js +11 -6
- package/lib/module/Share/api/index.js.map +1 -1
- package/lib/module/Share/index.js +13 -13
- package/lib/module/Share/index.js.map +1 -1
- package/lib/module/Squares/components/BidForm.js +138 -116
- package/lib/module/Squares/components/BidForm.js.map +1 -1
- package/lib/module/Squares/components/BidToggle.js +6 -7
- package/lib/module/Squares/components/BidToggle.js.map +1 -1
- package/lib/module/Squares/components/BoardStats.js +44 -27
- package/lib/module/Squares/components/BoardStats.js.map +1 -1
- package/lib/module/Squares/components/EventCard.js +34 -15
- package/lib/module/Squares/components/EventCard.js.map +1 -1
- package/lib/module/Squares/components/MySquaresCard.js +36 -19
- package/lib/module/Squares/components/MySquaresCard.js.map +1 -1
- package/lib/module/Squares/components/MyStatsCard.js +98 -64
- package/lib/module/Squares/components/MyStatsCard.js.map +1 -1
- package/lib/module/Squares/components/OfferForm.js +12 -12
- package/lib/module/Squares/components/OfferForm.js.map +1 -1
- package/lib/module/Squares/components/PrizeCard.js +25 -16
- package/lib/module/Squares/components/PrizeCard.js.map +1 -1
- package/lib/module/Squares/components/ResultsCard.js +27 -14
- package/lib/module/Squares/components/ResultsCard.js.map +1 -1
- package/lib/module/Squares/components/SquareOffersCard.js +16 -9
- package/lib/module/Squares/components/SquareOffersCard.js.map +1 -1
- package/lib/module/Squares/components/SquareOwners.js +35 -28
- package/lib/module/Squares/components/SquareOwners.js.map +1 -1
- package/lib/module/Squares/components/SquaresBoard.js +52 -34
- package/lib/module/Squares/components/SquaresBoard.js.map +1 -1
- package/lib/module/Squares/components/SquaresDetails.js +30 -19
- package/lib/module/Squares/components/SquaresDetails.js.map +1 -1
- package/lib/module/Squares/index.js +206 -149
- package/lib/module/Squares/index.js.map +1 -1
- package/lib/module/constants/colors.js +18 -3
- package/lib/module/constants/colors.js.map +1 -1
- package/lib/module/constants/styles.js +71 -1
- package/lib/module/constants/styles.js.map +1 -1
- package/lib/module/constants/useColors.js +145 -0
- package/lib/module/constants/useColors.js.map +1 -0
- package/lib/typescript/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/LoginForm.d.ts +2 -2
- package/lib/typescript/lib/commonjs/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/Components/StrategyForm.d.ts +2 -4
- package/lib/typescript/lib/commonjs/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Authenticator/index.d.ts +2 -2
- package/lib/typescript/lib/commonjs/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/AthleteMarketCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionLeaderboard.d.ts +1 -3
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/CompetitionPlay.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/MarketsCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/TeamEventCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/components/WagerPickForm.d.ts +1 -2
- package/lib/typescript/lib/commonjs/Competition/components/WagerPickForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Competition/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Button.d.ts +2 -1
- package/lib/typescript/lib/commonjs/Components/Button.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/ConfirmationModal.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Components/Themed.d.ts +6 -0
- package/lib/typescript/lib/commonjs/Components/Themed.d.ts.map +1 -0
- package/lib/typescript/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.d.ts +2 -2
- package/lib/typescript/lib/commonjs/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/EventMarket/index.d.ts +2 -2
- package/lib/typescript/lib/commonjs/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MarketButton/api/index.d.ts +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MarketButton/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MatchMarket/index.d.ts +2 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.d.ts +2 -2
- package/lib/typescript/lib/commonjs/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/TournamentMarket/index.d.ts +3 -1
- package/lib/typescript/lib/commonjs/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWelcome.d.ts +1 -2
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/ProfileManager/index.d.ts +1 -2
- package/lib/typescript/lib/commonjs/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Share/api/index.d.ts +1 -1
- package/lib/typescript/lib/commonjs/Share/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/BidForm.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/BidToggle.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/BoardStats.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/EventCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/MySquaresCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/MyStatsCard.d.ts +1 -2
- package/lib/typescript/lib/commonjs/Squares/components/MyStatsCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/PrizeCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/ResultsCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquareOffersCard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquareOwners.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquaresBoard.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/components/SquaresDetails.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/Squares/index.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/constants/colors.d.ts +9 -0
- package/lib/typescript/lib/commonjs/constants/styles.d.ts +95 -8
- package/lib/typescript/lib/commonjs/constants/useColors.d.ts +58 -0
- package/lib/typescript/lib/commonjs/constants/useColors.d.ts.map +1 -0
- package/lib/typescript/lib/module/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts +3 -4
- package/lib/typescript/lib/module/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts +3 -6
- package/lib/typescript/lib/module/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Authenticator/index.d.ts +4 -4
- package/lib/typescript/lib/module/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/AthleteMarketCard.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/AthleteMarketCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionInfoCard.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts +2 -5
- package/lib/typescript/lib/module/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/CompetitionPlay.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/CompetitionPlay.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/EnterCompetitionPrompt.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/MarketsCard.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/MarketsCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/TeamEventCard.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/components/TeamEventCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/components/WagerPickForm.d.ts +2 -4
- package/lib/typescript/lib/module/Competition/components/WagerPickForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Competition/index.d.ts +1 -2
- package/lib/typescript/lib/module/Competition/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Button.d.ts +2 -1
- package/lib/typescript/lib/module/Components/Button.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/ConfirmationModal.d.ts.map +1 -1
- package/lib/typescript/lib/module/Components/Spring.d.ts +1 -1
- package/lib/typescript/lib/module/Components/Themed.d.ts +9 -0
- package/lib/typescript/lib/module/Components/Themed.d.ts.map +1 -0
- package/lib/typescript/lib/module/MarketComponents/components/AthleteMarket/index.d.ts +3 -4
- package/lib/typescript/lib/module/MarketComponents/components/AthleteMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/AthleteTournamentMarket/index.d.ts +3 -4
- package/lib/typescript/lib/module/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/EventMarket/index.d.ts +3 -4
- package/lib/typescript/lib/module/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/MarketButton/api/index.d.ts +2 -2
- package/lib/typescript/lib/module/MarketComponents/components/MarketButton/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/MarketButton/index.d.ts +1 -2
- package/lib/typescript/lib/module/MarketComponents/components/MarketButton/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/MatchMarket/index.d.ts +3 -3
- package/lib/typescript/lib/module/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/TeamEventMarket/index.d.ts +3 -3
- package/lib/typescript/lib/module/MarketComponents/components/TeamEventMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/TeamTournamentMarket/index.d.ts +3 -4
- package/lib/typescript/lib/module/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/MarketComponents/components/TournamentMarket/index.d.ts +4 -3
- package/lib/typescript/lib/module/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/BasicInfoManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/BasicStatus.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/CodeRedeem.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/DOBManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/EmailManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/PasswordManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/PhoneManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/ProfilePicManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWelcome.d.ts +2 -4
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWizard.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/SettingsManager.d.ts +1 -2
- package/lib/typescript/lib/module/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts +1 -4
- package/lib/typescript/lib/module/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/ProfileManager/index.d.ts +2 -4
- package/lib/typescript/lib/module/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Share/api/index.d.ts +1 -1
- package/lib/typescript/lib/module/Share/api/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Share/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/BidForm.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/BidForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/BidToggle.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/BidToggle.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/BoardStats.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/BoardStats.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/EventCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/EventCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/MySquaresCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/MySquaresCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/MyStatsCard.d.ts +2 -4
- package/lib/typescript/lib/module/Squares/components/MyStatsCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/OfferForm.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/OfferForm.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/PrizeCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/PrizeCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/ResultsCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/ResultsCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquareOffersCard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquareOffersCard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquareOwners.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquareOwners.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquaresBoard.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquaresBoard.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/components/SquaresDetails.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/components/SquaresDetails.d.ts.map +1 -1
- package/lib/typescript/lib/module/Squares/index.d.ts +1 -2
- package/lib/typescript/lib/module/Squares/index.d.ts.map +1 -1
- package/lib/typescript/lib/module/constants/colors.d.ts +9 -0
- package/lib/typescript/lib/module/constants/styles.d.ts +95 -8
- package/lib/typescript/lib/module/constants/useColors.d.ts +57 -0
- package/lib/typescript/lib/module/constants/useColors.d.ts.map +1 -0
- package/lib/typescript/src/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts +2 -2
- package/lib/typescript/src/Authenticator/Components/LoginForm.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts +2 -3
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/index.d.ts +2 -2
- package/lib/typescript/src/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/AthleteMarketCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionInfoCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts +1 -1
- package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/CompetitionPlay.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/LeaderPicks.d.ts +1 -1
- package/lib/typescript/src/Competition/components/LeaderPicks.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/MarketsCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/TeamEventCard.d.ts.map +1 -1
- package/lib/typescript/src/Competition/components/WagerPickForm.d.ts +1 -1
- package/lib/typescript/src/Competition/components/WagerPickForm.d.ts.map +1 -1
- package/lib/typescript/src/Competition/index.d.ts.map +1 -1
- package/lib/typescript/src/Components/Button.d.ts +2 -1
- package/lib/typescript/src/Components/Button.d.ts.map +1 -1
- package/lib/typescript/src/Components/ConfirmationModal.d.ts.map +1 -1
- package/lib/typescript/src/Components/Themed.d.ts +38 -0
- package/lib/typescript/src/Components/Themed.d.ts.map +1 -0
- package/lib/typescript/src/MarketComponents/components/AthleteMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/AthleteMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/AthleteTournamentMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/AthleteTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/EventMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/EventMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/MarketButton/api/index.d.ts +2 -2
- package/lib/typescript/src/MarketComponents/components/MarketButton/api/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/MarketButton/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/MatchMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/MatchMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TeamEventMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/TeamEventMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TeamTournamentMarket/index.d.ts +2 -1
- package/lib/typescript/src/MarketComponents/components/TeamTournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/components/TournamentMarket/index.d.ts +3 -1
- package/lib/typescript/src/MarketComponents/components/TournamentMarket/index.d.ts.map +1 -1
- package/lib/typescript/src/MarketComponents/index.d.ts +15 -7
- package/lib/typescript/src/MarketComponents/index.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfilePicManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfileWelcome.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/ProfileWelcome.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/index.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/src/Share/api/index.d.ts +1 -1
- package/lib/typescript/src/Share/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Share/index.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/BidForm.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/BidToggle.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/BoardStats.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/EventCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/MySquaresCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/MyStatsCard.d.ts +1 -1
- package/lib/typescript/src/Squares/components/MyStatsCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/OfferForm.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/PrizeCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/ResultsCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquareOffersCard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquareOwners.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquaresBoard.d.ts.map +1 -1
- package/lib/typescript/src/Squares/components/SquaresDetails.d.ts.map +1 -1
- package/lib/typescript/src/Squares/index.d.ts.map +1 -1
- package/lib/typescript/src/constants/colors.d.ts +9 -0
- package/lib/typescript/src/constants/colors.d.ts.map +1 -1
- package/lib/typescript/src/constants/styles.d.ts +55 -1
- package/lib/typescript/src/constants/styles.d.ts.map +1 -1
- package/lib/typescript/src/constants/useColors.d.ts +57 -0
- package/lib/typescript/src/constants/useColors.d.ts.map +1 -0
- package/package.json +2 -1
- package/src/Authenticator/Components/AuthStrategyIdentifier.tsx +40 -40
- package/src/Authenticator/Components/LoginForm.tsx +50 -54
- package/src/Authenticator/Components/StrategyForm.tsx +135 -147
- package/src/Authenticator/index.tsx +16 -18
- package/src/Competition/components/AthleteMarketCard.tsx +19 -17
- package/src/Competition/components/CompetitionInfoCard.tsx +48 -138
- package/src/Competition/components/CompetitionLeaderboard.tsx +65 -57
- package/src/Competition/components/CompetitionPlay.tsx +55 -48
- package/src/Competition/components/EnterCompetitionPrompt.tsx +30 -39
- package/src/Competition/components/LeaderPicks.tsx +5 -5
- package/src/Competition/components/MarketsCard.tsx +14 -10
- package/src/Competition/components/TeamEventCard.tsx +24 -23
- package/src/Competition/components/WagerPickForm.tsx +35 -41
- package/src/Competition/index.tsx +162 -125
- package/src/Components/Button.tsx +50 -6
- package/src/Components/ConfirmationModal.tsx +13 -21
- package/src/Components/Themed.tsx +233 -0
- package/src/MarketComponents/components/AthleteMarket/index.tsx +21 -26
- package/src/MarketComponents/components/AthleteTournamentMarket/index.tsx +24 -32
- package/src/MarketComponents/components/EventMarket/index.tsx +25 -33
- package/src/MarketComponents/components/MarketButton/api/index.ts +2 -3
- package/src/MarketComponents/components/MarketButton/index.tsx +16 -15
- package/src/MarketComponents/components/MatchMarket/index.tsx +50 -59
- package/src/MarketComponents/components/TeamEventMarket/index.tsx +160 -139
- package/src/MarketComponents/components/TeamTournamentMarket/index.tsx +24 -30
- package/src/MarketComponents/components/TournamentMarket/index.tsx +117 -107
- package/src/ProfileManager/Components/BasicInfoManager.tsx +26 -29
- package/src/ProfileManager/Components/BasicStatus.tsx +29 -36
- package/src/ProfileManager/Components/CodeRedeem.tsx +50 -60
- package/src/ProfileManager/Components/DOBManager.tsx +25 -30
- package/src/ProfileManager/Components/EmailManager.tsx +37 -45
- package/src/ProfileManager/Components/PasswordManager.tsx +36 -40
- package/src/ProfileManager/Components/PhoneManager.tsx +36 -43
- package/src/ProfileManager/Components/ProfilePicManager.tsx +10 -16
- package/src/ProfileManager/Components/ProfileWelcome.tsx +19 -25
- package/src/ProfileManager/Components/ProfileWizard.tsx +42 -46
- package/src/ProfileManager/Components/SettingsManager.tsx +41 -45
- package/src/ProfileManager/Components/VouchCard.tsx +50 -59
- package/src/ProfileManager/index.tsx +16 -13
- package/src/Share/api/index.ts +9 -3
- package/src/Share/index.tsx +13 -12
- package/src/Squares/components/BidForm.tsx +85 -62
- package/src/Squares/components/BidToggle.tsx +8 -9
- package/src/Squares/components/BoardStats.tsx +28 -28
- package/src/Squares/components/EventCard.tsx +33 -31
- package/src/Squares/components/MySquaresCard.tsx +24 -23
- package/src/Squares/components/MyStatsCard.tsx +66 -68
- package/src/Squares/components/OfferForm.tsx +15 -15
- package/src/Squares/components/PrizeCard.tsx +21 -18
- package/src/Squares/components/ResultsCard.tsx +21 -18
- package/src/Squares/components/SquareOffersCard.tsx +12 -10
- package/src/Squares/components/SquareOwners.tsx +24 -23
- package/src/Squares/components/SquaresBoard.tsx +39 -42
- package/src/Squares/components/SquaresDetails.tsx +25 -24
- package/src/Squares/index.tsx +196 -144
- package/src/constants/colors.ts +55 -47
- package/src/constants/styles.ts +37 -1
- package/src/constants/useColors.tsx +131 -0
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import { ScrollView,
|
|
3
|
-
import {
|
|
2
|
+
import { ScrollView, FlatList, TouchableOpacity } from 'react-native';
|
|
3
|
+
import { Icons } from '../../Components';
|
|
4
4
|
import Colors from '../../constants/colors';
|
|
5
5
|
import type { SettingProps } from '../api/types';
|
|
6
6
|
import type { MyPlayerProps, PlayerSettingProps } from '../../types';
|
|
7
7
|
import { ProfileApi } from '../api';
|
|
8
|
+
import { useColors } from '../../constants/useColors';
|
|
9
|
+
import { Button, Text, TextInput, View } from '../../Components/Themed';
|
|
8
10
|
|
|
9
11
|
type SettingsManagerProps = {
|
|
10
12
|
title: string,
|
|
@@ -17,6 +19,7 @@ type SettingsManagerProps = {
|
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
const SettingsManager = ({ player, title, description, icon, settings, player_settings, onUpdatePlayerSetting }:SettingsManagerProps) => {
|
|
22
|
+
const C = useColors();
|
|
20
23
|
const [ draft_setting, setDraftSetting ] = useState<PlayerSettingProps>()
|
|
21
24
|
|
|
22
25
|
const handleUpdateSetting = async(setting:SettingProps, option:string, status:'active'|'inactive', player_setting?:PlayerSettingProps) => {
|
|
@@ -44,46 +47,46 @@ const SettingsManager = ({ player, title, description, icon, settings, player_se
|
|
|
44
47
|
let disabled = false
|
|
45
48
|
if(data.item.setting == 'collar_pct' && player.type != 'premium'){ disabled = true }
|
|
46
49
|
return (
|
|
47
|
-
<View style={
|
|
48
|
-
<View style={{ padding:
|
|
49
|
-
<View style={{ flexDirection:'row', alignItems:'center' }}>
|
|
50
|
-
<Text style={{flex:1}}
|
|
50
|
+
<View float style={{ margin:5 }}>
|
|
51
|
+
<View transparent style={{ padding:10, borderBottomWidth:1, borderColor:Colors.shades.shade600 }}>
|
|
52
|
+
<View transparent style={{ flexDirection:'row', alignItems:'center' }}>
|
|
53
|
+
<Text style={{flex:1}} theme='h2'>{data.item.setting_label}</Text>
|
|
51
54
|
{disabled ?
|
|
52
|
-
<Text style={{ marginLeft:5 }}
|
|
55
|
+
<Text style={{ marginLeft:5 }} theme='description' color={C.text.gold}>PREMIUM ONLY</Text>
|
|
53
56
|
:<></>}
|
|
54
57
|
</View>
|
|
55
|
-
<Text style={{ marginTop:5 }}
|
|
58
|
+
<Text style={{ marginTop:5 }} theme='description'>{data.item.setting_description}</Text>
|
|
56
59
|
</View>
|
|
57
|
-
<View>
|
|
60
|
+
<View transparent>
|
|
58
61
|
{data.item.option_type == 'number_input' ?
|
|
59
|
-
<View>
|
|
60
|
-
<View style={{flexDirection:'row', alignItems:'center', padding:10}}>
|
|
61
|
-
<Text style={{ flex:1 }}
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
62
|
+
<View transparent>
|
|
63
|
+
<View transparent style={{flexDirection:'row', alignItems:'center', padding:10}}>
|
|
64
|
+
<Text style={{ flex:1 }} theme='h1'>My Setting</Text>
|
|
65
|
+
<View type='input'>
|
|
66
|
+
<TextInput
|
|
67
|
+
style={{minWidth:75, textAlign:'center' }}
|
|
68
|
+
editable={editing}
|
|
69
|
+
transparent
|
|
70
|
+
value={shown_setting?.selected_option}
|
|
71
|
+
onChangeText={(text) => {
|
|
72
|
+
if(!draft_setting){ return }
|
|
73
|
+
setDraftSetting({ ...draft_setting, selected_option: text })
|
|
74
|
+
}}
|
|
75
|
+
/>
|
|
76
|
+
</View>
|
|
71
77
|
{!editing ?
|
|
72
78
|
<Button
|
|
73
79
|
title='EDIT'
|
|
74
80
|
style={{ marginLeft:5, opacity:disabled?0.5:1 }}
|
|
75
81
|
disabled={disabled}
|
|
76
|
-
|
|
77
|
-
backgroundColor={Colors.brand.electric}
|
|
82
|
+
type='close'
|
|
78
83
|
onPress={() => setDraftSetting(my_settings[0])}
|
|
79
84
|
/>
|
|
80
85
|
:
|
|
81
86
|
<Button
|
|
82
87
|
title='X'
|
|
83
88
|
style={{ marginLeft:5 }}
|
|
84
|
-
|
|
85
|
-
borderColor={Colors.utility.error}
|
|
86
|
-
borderWidth={1}
|
|
89
|
+
type='error'
|
|
87
90
|
onPress={() => setDraftSetting(undefined)}
|
|
88
91
|
/>
|
|
89
92
|
}
|
|
@@ -91,8 +94,8 @@ const SettingsManager = ({ player, title, description, icon, settings, player_se
|
|
|
91
94
|
{is_changed ?
|
|
92
95
|
<Button
|
|
93
96
|
title='SAVE'
|
|
94
|
-
backgroundColor={Colors.utility.success}
|
|
95
97
|
title_color={Colors.shades.white}
|
|
98
|
+
type='success'
|
|
96
99
|
onPress={() => {
|
|
97
100
|
if(!shown_setting){ return }
|
|
98
101
|
handleUpdateSetting(data.item, shown_setting.selected_option, 'active', shown_setting)}
|
|
@@ -101,18 +104,18 @@ const SettingsManager = ({ player, title, description, icon, settings, player_se
|
|
|
101
104
|
:<></>}
|
|
102
105
|
</View>
|
|
103
106
|
:data.item.option_type == 'select' ?
|
|
104
|
-
<View nativeID='setting_options' style={{ padding:15, flexDirection:'row', justifyContent:'space-between' }}>
|
|
107
|
+
<View transparent nativeID='setting_options' style={{ padding:15, flexDirection:'row', justifyContent:'space-between' }}>
|
|
105
108
|
{data.item.setting_options.map(so => {
|
|
106
109
|
const my_setting = my_settings.find(ms => ms.selected_option == so)
|
|
107
110
|
return (
|
|
108
111
|
<TouchableOpacity style={{ flexDirection:'row', alignItems:'center' }}
|
|
109
112
|
onPress={() => handleUpdateSetting(data.item, so, my_setting?.status == 'active' ? 'inactive' : 'active', my_setting)}>
|
|
110
|
-
<View style={{ height:20, width:20, justifyContent:'center', alignItems:'center', borderWidth:1, borderRadius:100, borderColor:
|
|
113
|
+
<View style={{ height:20, width:20, justifyContent:'center', alignItems:'center', borderWidth:1, borderRadius:100, borderColor:C.text.action, backgroundColor:my_setting?.status == 'active' ? C.text.action : 'transparent' }}>
|
|
111
114
|
{my_setting?.status == 'active' ?
|
|
112
|
-
<Icons.CheckIcon color={
|
|
115
|
+
<Icons.CheckIcon color={C.text.h1} size={10} />
|
|
113
116
|
:<></>}
|
|
114
117
|
</View>
|
|
115
|
-
<Text style={{ marginLeft:10 }}
|
|
118
|
+
<Text style={{ marginLeft:10 }} theme='h2'>{so.toUpperCase()}</Text>
|
|
116
119
|
</TouchableOpacity>
|
|
117
120
|
)
|
|
118
121
|
})}
|
|
@@ -124,16 +127,16 @@ const SettingsManager = ({ player, title, description, icon, settings, player_se
|
|
|
124
127
|
}
|
|
125
128
|
|
|
126
129
|
return (
|
|
127
|
-
<View style={{
|
|
128
|
-
<ScrollView style={{
|
|
129
|
-
<View nativeID='preference_settings' style={{ padding:
|
|
130
|
+
<View style={{ flexGrow:1 }}>
|
|
131
|
+
<ScrollView style={{ flexGrow:1 }}>
|
|
132
|
+
<View nativeID='preference_settings' style={{ padding:10 }}>
|
|
130
133
|
<View nativeID='header' style={{ flexDirection:'row', alignItems:'center' }}>
|
|
131
|
-
<View style={{ padding:10,
|
|
134
|
+
<View float style={{ padding:10, borderRadius:8 }}>
|
|
132
135
|
{icon}
|
|
133
136
|
</View>
|
|
134
|
-
<View style={{ flex:1, marginLeft:
|
|
135
|
-
<Text size={16}
|
|
136
|
-
<Text style={{ marginTop:3 }} size={12}
|
|
137
|
+
<View style={{ flex:1, marginLeft:10 }}>
|
|
138
|
+
<Text size={16} theme='h1'>{title}</Text>
|
|
139
|
+
<Text style={{ marginTop:3 }} size={12} theme='description'>{description}</Text>
|
|
137
140
|
</View>
|
|
138
141
|
</View>
|
|
139
142
|
<View nativeID='notification_options' style={{ marginTop:20 }}>
|
|
@@ -149,12 +152,5 @@ const SettingsManager = ({ player, title, description, icon, settings, player_se
|
|
|
149
152
|
)
|
|
150
153
|
}
|
|
151
154
|
|
|
152
|
-
const local_styles = StyleSheet.create({
|
|
153
|
-
settings_container: {
|
|
154
|
-
margin:3,
|
|
155
|
-
backgroundColor:Colors.shades.shade100,
|
|
156
|
-
padding:10
|
|
157
|
-
}
|
|
158
|
-
})
|
|
159
155
|
|
|
160
156
|
export default SettingsManager
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Platform, TouchableOpacity, Image, ScrollView } from 'react-native';
|
|
3
|
+
import { Icons } from '../../Components';
|
|
4
4
|
import Colors from '../../constants/colors';
|
|
5
5
|
import { ProfileApi, ProfileHelpers } from '../api';
|
|
6
6
|
import moment from 'moment-mini';
|
|
7
7
|
import type { CodeRequestProps, MyPlayerProps, PlayerReferralProps, PromoProps, PublicPlayerProps } from '../../types';
|
|
8
|
-
import {
|
|
8
|
+
import { Button, Text, View } from '../../Components/Themed';
|
|
9
|
+
import { useColors } from '../../constants/useColors';
|
|
9
10
|
|
|
10
11
|
type VouchCardProps = {
|
|
11
12
|
player:MyPlayerProps,
|
|
@@ -23,6 +24,7 @@ type VouchCardProps = {
|
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
const VouchCard = ({ player, walkthrough, code_details, onVouching, onPlayerUpdate, onClaimGift, onClose }:VouchCardProps) => {
|
|
27
|
+
const C = useColors();
|
|
26
28
|
const [ vouching, setVouching ] = useState(false);
|
|
27
29
|
const [ view_height, setViewHeight ] = useState(0);
|
|
28
30
|
const [ job_complete, setJobComplete ] = useState(false);
|
|
@@ -32,7 +34,6 @@ const VouchCard = ({ player, walkthrough, code_details, onVouching, onPlayerUpda
|
|
|
32
34
|
const [ info_visible, setInfoVisible ] = useState(false);
|
|
33
35
|
|
|
34
36
|
const { code_request, promo } = code_details;
|
|
35
|
-
|
|
36
37
|
useEffect(() => {
|
|
37
38
|
getPlayerFromServer()
|
|
38
39
|
},[])
|
|
@@ -146,11 +147,11 @@ const VouchCard = ({ player, walkthrough, code_details, onVouching, onPlayerUpda
|
|
|
146
147
|
}));
|
|
147
148
|
}
|
|
148
149
|
|
|
149
|
-
if(Platform.OS != 'web'){ return <></> }
|
|
150
|
+
//if(Platform.OS != 'web'){ return <></> }
|
|
150
151
|
|
|
151
152
|
if(vouched){
|
|
152
153
|
return (
|
|
153
|
-
<View style={{
|
|
154
|
+
<View style={{ flexGrow:1, borderRadius:8, backgroundColor:Colors.shades.shade100, paddingBottom:10 }}>
|
|
154
155
|
<View nativeID='vouch_header' style={{ padding:10 }}>
|
|
155
156
|
<Text size={16} color={Colors.brand.midnight} weight='semibold'>Verify your account</Text>
|
|
156
157
|
<Text style={{ marginTop:3 }} color={Colors.brand.midnight} size={14} weight='light'>Follow the prompts below to verify your identity instantly.</Text>
|
|
@@ -175,22 +176,22 @@ const VouchCard = ({ player, walkthrough, code_details, onVouching, onPlayerUpda
|
|
|
175
176
|
let new_date = `${split_dob[1]}/${split_dob[2]}/${split_dob[0]}`
|
|
176
177
|
|
|
177
178
|
return (
|
|
178
|
-
<View style={{
|
|
179
|
+
<View style={{ flexGrow:1 }} onLayout={(ev) => {
|
|
179
180
|
const { height } = ev.nativeEvent.layout;
|
|
180
181
|
setViewHeight(height)
|
|
181
182
|
}}>
|
|
182
|
-
<ScrollView style={{
|
|
183
|
+
<ScrollView style={{ flexGrow:1 }}>
|
|
183
184
|
<View style={{ padding:20 }}>
|
|
184
|
-
<Text size={30}
|
|
185
|
-
<Text style={{ marginTop:15 }} size={16}
|
|
185
|
+
<Text size={30} theme='h1'>Help us identify you</Text>
|
|
186
|
+
<Text style={{ marginTop:15 }} size={16} theme='h2'>We need to take extra steps to verify your account. Scan your Driver's License or state issued ID and take a selfie for instant verification</Text>
|
|
186
187
|
</View>
|
|
187
|
-
<TouchableOpacity style={{padding:10, borderRadius:8, backgroundColor:
|
|
188
|
-
<View style={{ flexDirection:'row', alignItems:'center' }}>
|
|
189
|
-
<Text style={{ flex:1 }}
|
|
190
|
-
<Icons.ChevronIcon direction={info_visible?'up':'down'} size={10} color={
|
|
188
|
+
<TouchableOpacity style={{padding:10, borderRadius:8, backgroundColor:C.views.gold, margin:20}} onPress={() => setInfoVisible(!info_visible)}>
|
|
189
|
+
<View transparent style={{ flexDirection:'row', alignItems:'center' }}>
|
|
190
|
+
<Text style={{ flex:1 }} theme='h1'>Why is this step required?</Text>
|
|
191
|
+
<Icons.ChevronIcon direction={info_visible?'up':'down'} size={10} color={C.text.h1} />
|
|
191
192
|
</View>
|
|
192
193
|
{info_visible ?
|
|
193
|
-
<Text
|
|
194
|
+
<Text theme='description' style={{ marginTop:4 }}>When betting with real money, legally, BettorEdge has to verify your identity to make sure you are old enough to bet and that you are who you say you are.</Text>
|
|
194
195
|
:<></>}
|
|
195
196
|
</TouchableOpacity>
|
|
196
197
|
<View style={{ alignSelf:'center' }}>
|
|
@@ -203,59 +204,54 @@ const VouchCard = ({ player, walkthrough, code_details, onVouching, onPlayerUpda
|
|
|
203
204
|
{player.vouched_status == 'unverified' ?
|
|
204
205
|
<View style={{ padding:10 }}>
|
|
205
206
|
<TouchableOpacity
|
|
206
|
-
style={{ flexDirection:'row', alignItems:'center', padding:10, marginLeft:15, marginRight:15, borderRadius:8, backgroundColor:Colors.shades.shade100, marginTop:5 }}
|
|
207
207
|
onPress={() => setDisclaimerConfirmed(!disclaimer_confirmed)}>
|
|
208
|
-
<View>
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
208
|
+
<View float style={{ padding:10, flexDirection:'row', alignItems:'center' }}>
|
|
209
|
+
<View transparent style={{ justifyContent:'center', alignItems:'center', borderWidth:1, borderColor:C.text.h1, borderRadius:4, height:20, width:20 }}>
|
|
210
|
+
{disclaimer_confirmed ?
|
|
211
|
+
<Icons.CheckIcon size={14} color={C.text.h1} />
|
|
212
|
+
:<></>}
|
|
213
|
+
</View>
|
|
214
|
+
<Text style={{ marginLeft:10, flex:1 }} theme='h2'>I confirm that my name is <Text size={14} theme='warning'>{player.first_name} {player.last_name}</Text> and that my date of birth is <Text size={14} theme='warning'>{new_date}</Text>. Mismatch will cause failure.</Text>
|
|
213
215
|
</View>
|
|
214
|
-
</View>
|
|
215
|
-
<Text style={{ marginLeft:10 }} size={14} color={Colors.brand.midnight} weight='regular'>I confirm that my name is <Text size={12} weight='bold'>{player.first_name} {player.last_name}</Text> and that my date of birth is <Text size={12} weight='bold'>{new_date}</Text>. Mismatch will cause failure.</Text>
|
|
216
216
|
</TouchableOpacity>
|
|
217
217
|
<TouchableOpacity
|
|
218
|
-
style={{ flexDirection:'row', marginTop:5, alignItems:'center', padding:10, marginLeft:15, marginRight:15, borderRadius:8, backgroundColor:Colors.shades.shade100 }}
|
|
219
218
|
onPress={() => setIDDisclaimerConfirmed(!id_disclaimer_confirmed)}
|
|
220
219
|
>
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
220
|
+
<View float style={{ marginTop:10, padding:10, flexDirection:'row', alignItems:'center' }}>
|
|
221
|
+
<View transparent style={{ justifyContent:'center', alignItems:'center', borderWidth:1, borderColor:C.text.h1, borderRadius:4, height:20, width:20 }}>
|
|
222
|
+
{id_disclaimer_confirmed ?
|
|
223
|
+
<Icons.CheckIcon size={14} color={C.text.h1} />
|
|
224
|
+
:<></>}
|
|
225
|
+
</View>
|
|
226
|
+
<Text style={{ marginLeft:10, flex:1 }} theme='h2'>I confirm that I am using a valid <Text size={14} theme='warning'>(Not Expired)</Text> US government issued ID. Expired ID will cause failure.</Text>
|
|
226
227
|
</View>
|
|
227
|
-
</View>
|
|
228
|
-
<Text style={{ marginLeft:10 }} size={14} color={Colors.brand.midnight} weight='regular'>I confirm that I am using a valid <Text size={12} weight='bold'>(Not Expired)</Text> US government issued ID. Expired ID will cause failure.</Text>
|
|
229
228
|
</TouchableOpacity>
|
|
230
229
|
</View>
|
|
231
230
|
:<></>}
|
|
232
|
-
{code_request && !['
|
|
233
|
-
<
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
:<></>}
|
|
244
|
-
</View>
|
|
245
|
-
<View style={{flex:1, backgroundColor:Colors.incentive.gold_faded, padding:10 }}>
|
|
246
|
-
<Text style={{ paddingBottom:10, borderBottomWidth:1, borderBottomColor:Colors.shades.shade600 }} size={16} color={Colors.brand.midnight} weight='bold'>{player.vouched_status == 'verified'?`Congrats! Press Here to claim your gift!`: 'Almost there! Last step to get your gift!'}</Text>
|
|
247
|
-
<Text style={{ paddingTop:5 }} size={12} color={Colors.brand.midnight} weight='semibold'>{ProfileHelpers.getReferralDescription(promo)}</Text>
|
|
248
|
-
</View>
|
|
231
|
+
{code_request && !['closed','fulfilled'].includes(code_request.status) && promo ?
|
|
232
|
+
<View float style={{ margin:15, flexDirection:'row' }}>
|
|
233
|
+
<View transparent style={{ padding:10, justifyContent:'center', alignItems:'center' }}>
|
|
234
|
+
<Icons.GiftIcon size={40} color={C.text.gold} />
|
|
235
|
+
{player.vouched_status == 'verified' ?
|
|
236
|
+
<Text style={{ marginTop:5 }} textAlign='center' size={12} color={C.text.gold}>CLAIM NOW</Text>
|
|
237
|
+
:<></>}
|
|
238
|
+
</View>
|
|
239
|
+
<View transparent style={{flex:1, padding:10 }}>
|
|
240
|
+
<Text theme='h1'>{player.vouched_status == 'verified'?`Congrats! Press Here to claim your gift!`: 'Almost there! Last step to get your gift!'}</Text>
|
|
241
|
+
<Text style={{ paddingTop:5 }} theme='h2'>{ProfileHelpers.getReferralDescription(promo)}</Text>
|
|
249
242
|
</View>
|
|
250
243
|
{player.vouched_status == 'verified' ?
|
|
251
|
-
<
|
|
252
|
-
|
|
244
|
+
<TouchableOpacity
|
|
245
|
+
disabled={player.vouched_status!='verified' ? true : false}
|
|
246
|
+
onPress={() => onClaimGift()}
|
|
247
|
+
style={{ position:'absolute', top: -60, right:0, left:0, justifyContent:'center', alignItems:'center' }}>
|
|
248
|
+
<View float style={{ borderRadius:22, padding:10, marginBottom:7 }}>
|
|
253
249
|
<Text size={14} color={Colors.incentive.gold} weight='bold'>CLAIM ME NOW!</Text>
|
|
254
250
|
</View>
|
|
255
251
|
<Icons.ChevronIcon direction='down' size={8} color={Colors.incentive.gold} />
|
|
256
|
-
</
|
|
252
|
+
</TouchableOpacity>
|
|
257
253
|
:<></>}
|
|
258
|
-
</
|
|
254
|
+
</View>
|
|
259
255
|
:<></>}
|
|
260
256
|
</ScrollView>
|
|
261
257
|
|
|
@@ -276,22 +272,17 @@ const VouchCard = ({ player, walkthrough, code_details, onVouching, onPlayerUpda
|
|
|
276
272
|
<Button
|
|
277
273
|
style={{ flex:1, marginRight:5 }}
|
|
278
274
|
title='BACK'
|
|
279
|
-
|
|
280
|
-
title_color={Colors.brand.electric}
|
|
281
|
-
borderWidth={1}
|
|
282
|
-
borderColor={Colors.brand.electric}
|
|
275
|
+
type='close'
|
|
283
276
|
onPress={() => onClose()}
|
|
284
277
|
/>
|
|
285
278
|
}
|
|
286
279
|
{player.vouched_status == 'unverified' ?
|
|
287
280
|
<Button
|
|
288
281
|
title={!job_complete ? 'SCAN MY ID' : 'REVIEWING ACCOUNT'}
|
|
289
|
-
title_color={Colors.shades.white}
|
|
290
282
|
loading={vouching}
|
|
291
283
|
disabled={!scan_ready || job_complete}
|
|
292
284
|
style={{ flex:3, opacity:scan_ready && scan_ready&&!vouching?1:0.5 }}
|
|
293
|
-
|
|
294
|
-
backgroundColor={Colors.utility.success}
|
|
285
|
+
type='success'
|
|
295
286
|
onPress={() => startVouchingPlayer()}
|
|
296
287
|
/>
|
|
297
288
|
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Image, ActivityIndicator } from 'react-native';
|
|
3
3
|
import Colors from '../constants/colors';
|
|
4
|
-
import { Text } from '../Components';
|
|
5
4
|
import ProfileWizard from './Components/ProfileWizard';
|
|
6
5
|
import { ProfileApi } from './api';
|
|
7
6
|
import type { SettingProps } from './api/types';
|
|
8
7
|
import type { CodeRequestProps, MyPlayerProps, PlayerBalanceProps, PlayerReferralProps, PlayerSettingProps, PromoProps, PublicPlayerProps, RewardOptionProps } from '../types';
|
|
8
|
+
import { Text, View } from '../Components/Themed';
|
|
9
9
|
|
|
10
10
|
type ProfileOverviewProps = {
|
|
11
|
-
width:number,
|
|
12
11
|
show_welcome?:boolean,
|
|
13
12
|
//access_token:string,
|
|
14
13
|
hide_powered_by?:boolean,
|
|
@@ -35,7 +34,8 @@ type ProfileOverviewProps = {
|
|
|
35
34
|
}
|
|
36
35
|
}
|
|
37
36
|
|
|
38
|
-
const ProfileManager = ({ profile_attribute, hide_profile_header, player, hide_powered_by, onRedeemCode, onPlayerUpdate, onNextStep, onVouchStart, show_welcome, hidden_groups, hidden_steps, hidden_levels, walkthrough,
|
|
37
|
+
const ProfileManager = ({ profile_attribute, hide_profile_header, player, hide_powered_by, onRedeemCode, onPlayerUpdate, onNextStep, onVouchStart, show_welcome, hidden_groups, hidden_steps, hidden_levels, walkthrough, onClose, onLogout }: ProfileOverviewProps ) => {
|
|
38
|
+
const [ width, setModuleWidth ] = useState(400);
|
|
39
39
|
const [ loading, setLoading ] = useState(false);
|
|
40
40
|
const [ vouching, setVouching ] = useState(false);
|
|
41
41
|
const [ draft_player, setDraftPlayer ] = useState<MyPlayerProps>();
|
|
@@ -82,15 +82,18 @@ const ProfileManager = ({ profile_attribute, hide_profile_header, player, hide_p
|
|
|
82
82
|
|
|
83
83
|
if(!draft_player || loading){
|
|
84
84
|
return (
|
|
85
|
-
<View style={{
|
|
85
|
+
<View style={{ flexGrow:1 }}>
|
|
86
86
|
<ActivityIndicator size={'large'} color={Colors.brand.midnight} />
|
|
87
87
|
</View>
|
|
88
88
|
)
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
return (
|
|
92
|
-
<View style={{
|
|
93
|
-
|
|
92
|
+
<View style={{ flexGrow:1 }} onLayout={(ev) => {
|
|
93
|
+
const { width } = ev.nativeEvent.layout
|
|
94
|
+
setModuleWidth(width)
|
|
95
|
+
}}>
|
|
96
|
+
<View style={{ flexGrow:1 }}>
|
|
94
97
|
{!hide_profile_header && !walkthrough && !vouching ?
|
|
95
98
|
<View style={{ flexDirection:'row', alignItems:'center' }}>
|
|
96
99
|
<View nativeID='profile_picture' style={{ padding:10 }}>
|
|
@@ -101,18 +104,18 @@ const ProfileManager = ({ profile_attribute, hide_profile_header, player, hide_p
|
|
|
101
104
|
/>
|
|
102
105
|
</View>
|
|
103
106
|
<View style={{ flex:1 }}>
|
|
104
|
-
<Text size={20}
|
|
105
|
-
<Text style={{ marginTop:5 }} size={16}
|
|
107
|
+
<Text size={20} theme='h1'>{draft_player.first_name} {draft_player.last_name}</Text>
|
|
108
|
+
<Text style={{ marginTop:5 }} size={16} theme='h2'>@{draft_player.username}</Text>
|
|
106
109
|
</View>
|
|
107
110
|
{player_balance ?
|
|
108
111
|
<View style={{ paddingRight:10 }}>
|
|
109
|
-
<Text size={16}
|
|
110
|
-
<Text style={{ marginTop:3 }}
|
|
112
|
+
<Text size={16} theme='h1' textAlign='right'>${player_balance.balance.toFixed(2)}</Text>
|
|
113
|
+
<Text style={{ marginTop:3 }} theme='description' textAlign='right'>Promo {player_balance.promo_balance.toFixed(2)}</Text>
|
|
111
114
|
</View>
|
|
112
115
|
:<></>}
|
|
113
116
|
</View>
|
|
114
117
|
:<></>}
|
|
115
|
-
<View style={{ marginTop:10,
|
|
118
|
+
<View style={{ marginTop:10, flexGrow:1 }}>
|
|
116
119
|
<ProfileWizard
|
|
117
120
|
player={draft_player}
|
|
118
121
|
player_settings={player_settings}
|
|
@@ -120,11 +123,11 @@ const ProfileManager = ({ profile_attribute, hide_profile_header, player, hide_p
|
|
|
120
123
|
if(active && onVouchStart){ onVouchStart() }
|
|
121
124
|
setVouching(active)
|
|
122
125
|
}}
|
|
126
|
+
width={width}
|
|
123
127
|
onRedeemCode={onRedeemCode}
|
|
124
128
|
settings={settings}
|
|
125
129
|
show_welcome={show_welcome}
|
|
126
130
|
hide_powered_by={hide_powered_by}
|
|
127
|
-
width={width}
|
|
128
131
|
hidden_groups={hidden_groups}
|
|
129
132
|
hidden_steps={hidden_steps}
|
|
130
133
|
hidden_levels={hidden_levels}
|
package/src/Share/api/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import axios from "axios";
|
|
2
2
|
import { APIOverrides } from "../../ApiOverrides";
|
|
3
3
|
import type { BEEventProps, GeneratedLinkProps, PlayerReferralProps } from '../../types';
|
|
4
|
+
import * as Sharing from 'expo-sharing';
|
|
4
5
|
import { Platform, Share } from 'react-native';
|
|
5
6
|
let ANALYTICS_SVC_API = '';
|
|
6
7
|
let AUTH_SVC_API = '';
|
|
@@ -101,9 +102,14 @@ const ShareApi = {
|
|
|
101
102
|
|
|
102
103
|
|
|
103
104
|
const ShareHelpers = {
|
|
104
|
-
nativeShareAvailable : () => {
|
|
105
|
-
if(
|
|
106
|
-
|
|
105
|
+
nativeShareAvailable : async() => {
|
|
106
|
+
if(Platform.OS == 'web'){
|
|
107
|
+
if(!navigator){ return false }
|
|
108
|
+
if(!navigator.share){ return false }
|
|
109
|
+
} else {
|
|
110
|
+
return await Sharing.isAvailableAsync()
|
|
111
|
+
}
|
|
112
|
+
|
|
107
113
|
return true
|
|
108
114
|
},
|
|
109
115
|
extractQueryParams: (url?:string):{ key:string, value:string }[] => {
|
package/src/Share/index.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import Text from '../Components/Text';
|
|
3
|
-
import { View, TouchableOpacity, FlatList, ActivityIndicator, Clipboard, ScrollView } from 'react-native';
|
|
3
|
+
import { View, TouchableOpacity, FlatList, ActivityIndicator, Clipboard, ScrollView, Platform } from 'react-native';
|
|
4
4
|
import { view_styles } from '../constants/styles';
|
|
5
5
|
import { Button, Icons, TextInput } from '../Components';
|
|
6
6
|
import Colors from '../constants/colors';
|
|
@@ -45,6 +45,7 @@ const ShareWidget = ({ generated_link_id, title, body, redirect_url, maxWidth, m
|
|
|
45
45
|
const [ link_status, setLinkStatus ] = useState<{
|
|
46
46
|
loading: boolean,
|
|
47
47
|
update_loading:boolean,
|
|
48
|
+
native_share_allowed?:boolean,
|
|
48
49
|
editing:boolean,
|
|
49
50
|
generated_link?:GeneratedLinkProps,
|
|
50
51
|
draft_generated_link?:GeneratedLinkProps,
|
|
@@ -54,16 +55,12 @@ const ShareWidget = ({ generated_link_id, title, body, redirect_url, maxWidth, m
|
|
|
54
55
|
}>({
|
|
55
56
|
loading: false,
|
|
56
57
|
update_loading: false,
|
|
58
|
+
native_share_allowed:false,
|
|
57
59
|
editing:false,
|
|
58
60
|
visible_id_valid: true,
|
|
59
61
|
query_params: []
|
|
60
62
|
});
|
|
61
|
-
const { loading, editing, generated_link, draft_generated_link, url, visible_id_valid, update_loading } = link_status;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
const native_share_allowed = useCallback(() => {
|
|
65
|
-
return ShareHelpers.nativeShareAvailable()
|
|
66
|
-
},[])
|
|
63
|
+
const { loading, editing, generated_link, draft_generated_link, url, visible_id_valid, update_loading, native_share_allowed } = link_status;
|
|
67
64
|
|
|
68
65
|
useEffect(() => {
|
|
69
66
|
if(!redirect_url && !generated_link_id){ return }//Unable to get redirect link
|
|
@@ -76,9 +73,11 @@ const ShareWidget = ({ generated_link_id, title, body, redirect_url, maxWidth, m
|
|
|
76
73
|
const getGeneratedLink = async(generated_link_id:string) => {
|
|
77
74
|
setLinkStatus({ ...link_status, loading:true });
|
|
78
75
|
const retrieved_link = await ShareApi.getGeneratedLinkById(generated_link_id);
|
|
76
|
+
const nsa = await ShareHelpers.nativeShareAvailable()
|
|
79
77
|
setLinkStatus({
|
|
80
78
|
...link_status,
|
|
81
79
|
loading:false,
|
|
80
|
+
native_share_allowed: nsa,
|
|
82
81
|
generated_link:retrieved_link?.generated_link,
|
|
83
82
|
draft_generated_link: retrieved_link?.generated_link,
|
|
84
83
|
query_params: ShareHelpers.extractQueryParams(retrieved_link?.generated_link.redirect_url),
|
|
@@ -91,6 +90,7 @@ const ShareWidget = ({ generated_link_id, title, body, redirect_url, maxWidth, m
|
|
|
91
90
|
setLinkStatus({ ...link_status, loading: true });
|
|
92
91
|
//If there is a player id - lets append the referral code if one is not supplied!
|
|
93
92
|
if(player_id){ redirect_url = await ShareHelpers.appendPlayerReferral(redirect_url) }
|
|
93
|
+
const nsa = await ShareHelpers.nativeShareAvailable()
|
|
94
94
|
const { generated_link, url } = await ShareApi.generateShortLink({
|
|
95
95
|
generator: generator,
|
|
96
96
|
generated_link_id:'',
|
|
@@ -105,6 +105,7 @@ const ShareWidget = ({ generated_link_id, title, body, redirect_url, maxWidth, m
|
|
|
105
105
|
...link_status,
|
|
106
106
|
loading: false,
|
|
107
107
|
generated_link,
|
|
108
|
+
native_share_allowed: nsa,
|
|
108
109
|
draft_generated_link: generated_link,
|
|
109
110
|
url
|
|
110
111
|
});
|
|
@@ -122,7 +123,6 @@ const ShareWidget = ({ generated_link_id, title, body, redirect_url, maxWidth, m
|
|
|
122
123
|
|
|
123
124
|
const link_is_changed = JSON.stringify(draft_generated_link) != JSON.stringify(generated_link)
|
|
124
125
|
const needs_verification = link_is_changed && !visible_id_valid
|
|
125
|
-
|
|
126
126
|
return (
|
|
127
127
|
<View style={{ ...view_styles.section, minWidth:250, maxWidth, maxHeight }}>
|
|
128
128
|
<View style={{ ...view_styles.section_header, borderBottomWidth:1, borderColor:Colors.shades.shade600 }}>
|
|
@@ -139,7 +139,7 @@ const ShareWidget = ({ generated_link_id, title, body, redirect_url, maxWidth, m
|
|
|
139
139
|
onPress={() => onCancel()}
|
|
140
140
|
/>
|
|
141
141
|
</View>
|
|
142
|
-
<ScrollView
|
|
142
|
+
<ScrollView>
|
|
143
143
|
{loading || !generated_link ?
|
|
144
144
|
<View>
|
|
145
145
|
<ActivityIndicator style={{ padding:20, alignSelf:'center' }} color={Colors.brand.midnight} size={'large'} />
|
|
@@ -263,7 +263,7 @@ const ShareWidget = ({ generated_link_id, title, body, redirect_url, maxWidth, m
|
|
|
263
263
|
<View style={{ ...view_styles.body_row }}>
|
|
264
264
|
<Text size={16} color={Colors.brand.midnight} weight='regular'>Share this link via</Text>
|
|
265
265
|
</View>
|
|
266
|
-
{native_share_allowed
|
|
266
|
+
{native_share_allowed ?
|
|
267
267
|
<TouchableOpacity style={{ ...view_styles.body_row }} onPress={async() => {
|
|
268
268
|
const share_event = await ShareApi.share(title, body, link_status.url, generated_link.generated_link_id);
|
|
269
269
|
if(onShare && share_event){ onShare(share_event) }
|
|
@@ -321,12 +321,13 @@ const ShareWidget = ({ generated_link_id, title, body, redirect_url, maxWidth, m
|
|
|
321
321
|
<Text style={{ marginLeft:4 }} size={12} color={Colors.shades.white} textAlign='left'>Copy</Text>
|
|
322
322
|
</TouchableOpacity>
|
|
323
323
|
<View style={{ flex:1 }} />
|
|
324
|
-
{embed.widget_element && embed.script_source && embed.div_id ?
|
|
324
|
+
{embed.widget_element && embed.script_source && embed.div_id && Platform.OS == 'web' ?
|
|
325
325
|
<Button
|
|
326
326
|
title={preview_embed ? 'Hide Preview' : 'Show Preview'}
|
|
327
327
|
title_color={Colors.shades.white}
|
|
328
328
|
borderRadius={4}
|
|
329
329
|
padding={10}
|
|
330
|
+
disabled={Platform.OS != 'web' ? true : false}
|
|
330
331
|
backgroundColor={preview_embed ? Colors.utility.error : Colors.brand.cyan}
|
|
331
332
|
onPress={() => setPreviewEmbed(!preview_embed)}
|
|
332
333
|
/>
|