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,14 +1,16 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Keyboard, TouchableOpacity } from "react-native"
|
|
3
|
+
import { Icons } from '../../Components';
|
|
4
4
|
import Colors from '../../constants/colors';
|
|
5
5
|
import { AuthenticateApi, AuthenticateHelpers } from '../api';
|
|
6
6
|
import type { AuthenticatedProps } from '../api/types';
|
|
7
|
+
import { Text, View, Button, TextInput } from '../../Components/Themed';
|
|
8
|
+
import { useColors } from '../../constants/useColors';
|
|
7
9
|
|
|
8
10
|
|
|
9
11
|
type LoginFormProps = {
|
|
10
12
|
visible:boolean,
|
|
11
|
-
|
|
13
|
+
maxWidth?:number,
|
|
12
14
|
onTryAuthenticate:(attribute:string, result:'success'|'fail') => void,
|
|
13
15
|
onRegister: () => void,
|
|
14
16
|
onAuthenticated: (auth_response:AuthenticatedProps) => void
|
|
@@ -16,7 +18,8 @@ type LoginFormProps = {
|
|
|
16
18
|
|
|
17
19
|
|
|
18
20
|
const attribute_options = ['username', 'email', 'phone']
|
|
19
|
-
const LoginForm = ({
|
|
21
|
+
const LoginForm = ({ maxWidth, visible, onRegister, onAuthenticated, onTryAuthenticate }:LoginFormProps) => {
|
|
22
|
+
const C = useColors();
|
|
20
23
|
const [ authenticated, setAuthenticated ] = useState(false);
|
|
21
24
|
console.log(authenticated)
|
|
22
25
|
const [ auth_check, setAuthCheck ] = useState<{
|
|
@@ -49,6 +52,7 @@ const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthentic
|
|
|
49
52
|
|
|
50
53
|
const handleAuthCheck = async() => {
|
|
51
54
|
if(loading){ return } //No mashy mashy
|
|
55
|
+
Keyboard.dismiss();
|
|
52
56
|
setAuthCheck({ ...auth_check, loading:true })
|
|
53
57
|
const { result, message, verification_session_id, next } = await AuthenticateApi.authCheck(attribute, value);
|
|
54
58
|
if(result == 'fail'){
|
|
@@ -68,6 +72,7 @@ const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthentic
|
|
|
68
72
|
}
|
|
69
73
|
|
|
70
74
|
const handleForgot = async() => {
|
|
75
|
+
Keyboard.dismiss();
|
|
71
76
|
const resp = await AuthenticateApi.authForgot(attribute, value)
|
|
72
77
|
if(resp.result == 'fail'){
|
|
73
78
|
setAuthCheckError(resp.message)
|
|
@@ -83,11 +88,10 @@ const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthentic
|
|
|
83
88
|
}
|
|
84
89
|
|
|
85
90
|
const handleLogin = async() => {
|
|
91
|
+
Keyboard.dismiss();
|
|
86
92
|
setLoginTry({ ...login_try, loading:true })
|
|
87
|
-
console.log('trying login')
|
|
88
93
|
const { result, player_id, new_player, message, access_token, refresh_token, expire_datetime } = await AuthenticateApi.authLogin(attribute, value, pass_token, verification_session_id)
|
|
89
|
-
|
|
90
|
-
console.log(result)
|
|
94
|
+
|
|
91
95
|
if(result == 'fail' || !access_token || !refresh_token || !player_id){
|
|
92
96
|
setLoginTry({ ...login_try, error:message, loading:false })
|
|
93
97
|
setHalted(true)
|
|
@@ -108,10 +112,10 @@ const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthentic
|
|
|
108
112
|
|
|
109
113
|
const getAttributeIcon = () => {
|
|
110
114
|
switch(attribute){
|
|
111
|
-
case 'email': return <Icons.EmailIcon size={20} color={
|
|
112
|
-
case 'phone': return <Icons.PhoneIcon size={20} color={
|
|
113
|
-
case 'username': return <Icons.UserIcon size={20} color={
|
|
114
|
-
default: return <Icons.UserIcon size={20} color={
|
|
115
|
+
case 'email': return <Icons.EmailIcon size={20} color={C.text.h1}/>
|
|
116
|
+
case 'phone': return <Icons.PhoneIcon size={20} color={C.text.h1} />
|
|
117
|
+
case 'username': return <Icons.UserIcon size={20} color={C.text.h1} />
|
|
118
|
+
default: return <Icons.UserIcon size={20} color={C.text.h1} />
|
|
115
119
|
}
|
|
116
120
|
}
|
|
117
121
|
|
|
@@ -121,29 +125,28 @@ const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthentic
|
|
|
121
125
|
if(!visible){ return <></> }
|
|
122
126
|
|
|
123
127
|
return (
|
|
124
|
-
<View style={{
|
|
128
|
+
<View style={{ flexGrow:1, maxWidth }}>
|
|
125
129
|
{!login_try.visible ?
|
|
126
|
-
<View style={{
|
|
130
|
+
<View style={{ flexGrow:1 }}>
|
|
127
131
|
<View style={{ padding:20 }}>
|
|
128
132
|
<View>
|
|
129
|
-
<Text
|
|
133
|
+
<Text theme='h1'>Login Using My:</Text>
|
|
130
134
|
</View>
|
|
131
135
|
<View nativeID='attribute_toggle' style={{ marginTop:10, flexDirection:'row', borderRadius:22, borderWidth:1, backgroundColor:Colors.shades.shade400, borderColor:Colors.shades.shade600 }}>
|
|
132
136
|
{attribute_options.map((a,i) => {
|
|
133
137
|
const selected = a == attribute ? true : false
|
|
134
138
|
return (
|
|
135
139
|
<Button
|
|
136
|
-
style={{ flex:1 }}
|
|
137
140
|
title={a.toUpperCase()}
|
|
138
|
-
|
|
141
|
+
style={{
|
|
142
|
+
flex:1,
|
|
143
|
+
padding:15,
|
|
139
144
|
borderTopLeftRadius: i == 0 ? 22 : 0,
|
|
140
145
|
borderBottomLeftRadius: i == 0 ? 22 : 0,
|
|
141
146
|
borderTopRightRadius: i == attribute_options.length -1 ? 22 : 0,
|
|
142
147
|
borderBottomRightRadius: i == attribute_options.length -1 ? 22 : 0,
|
|
143
148
|
}}
|
|
144
149
|
title_color={selected ? Colors.shades.white : Colors.brand.electric}
|
|
145
|
-
padding={15}
|
|
146
|
-
title_weight={selected ? 'bold' : 'regular'}
|
|
147
150
|
backgroundColor={selected ? Colors.brand.electric : 'transparent'}
|
|
148
151
|
onPress={() => setAuthCheck({ attribute:a as 'username'|'email'|'phone', value: '', loading:false })}
|
|
149
152
|
/>
|
|
@@ -151,19 +154,20 @@ const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthentic
|
|
|
151
154
|
})}
|
|
152
155
|
</View>
|
|
153
156
|
</View>
|
|
154
|
-
<View style={{
|
|
155
|
-
<View style={{
|
|
157
|
+
<View style={{ flexGrow:1 }}>
|
|
158
|
+
<View style={{padding:30 }}>
|
|
156
159
|
<View style={{ marginBottom:10 }}>
|
|
157
|
-
<Text
|
|
158
|
-
<Text style={{ marginTop:5 }}
|
|
160
|
+
<Text theme='h1'>ENTER {attribute.toUpperCase()}</Text>
|
|
161
|
+
<Text style={{ marginTop:5 }} theme='h2'>Please enter your {attribute} to continue.</Text>
|
|
159
162
|
</View>
|
|
160
|
-
<View style={{ marginTop:5, flexDirection:'row', alignItems:'center'
|
|
161
|
-
<View style={{ paddingLeft:10, paddingRight:
|
|
163
|
+
<View type='input' style={{ marginTop:5, flexDirection:'row', alignItems:'center' }}>
|
|
164
|
+
<View transparent style={{ paddingLeft:10, paddingRight:10 }}>
|
|
162
165
|
{getAttributeIcon()}
|
|
163
166
|
</View>
|
|
164
167
|
<TextInput
|
|
165
168
|
style={{ flex:1 }}
|
|
166
169
|
value={value}
|
|
170
|
+
transparent
|
|
167
171
|
placeholder={attribute.toUpperCase()}
|
|
168
172
|
autoFocus={true}
|
|
169
173
|
placeholderTextColor={Colors.brand.slate}
|
|
@@ -171,11 +175,11 @@ const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthentic
|
|
|
171
175
|
setAuthCheck({ ...auth_check, value: text })
|
|
172
176
|
}}
|
|
173
177
|
/>
|
|
174
|
-
<View style={{ padding:10 }}>
|
|
178
|
+
<View transparent style={{ padding:10 }}>
|
|
175
179
|
{ valid ?
|
|
176
|
-
<Icons.CheckCirlceIcon color={
|
|
180
|
+
<Icons.CheckCirlceIcon color={C.text.success} size={14} />
|
|
177
181
|
:
|
|
178
|
-
<Icons.AlertIcon color={
|
|
182
|
+
<Icons.AlertIcon color={C.text.warning} size={20} />
|
|
179
183
|
}
|
|
180
184
|
</View>
|
|
181
185
|
</View>
|
|
@@ -187,23 +191,20 @@ const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthentic
|
|
|
187
191
|
:<></>}
|
|
188
192
|
</View>
|
|
189
193
|
</View>
|
|
190
|
-
<View style={{ padding:20 }}>
|
|
194
|
+
<View type='footer' style={{ padding:10, paddingLeft:20, paddingRight:20 }}>
|
|
191
195
|
<Button
|
|
192
196
|
title='LOGIN'
|
|
193
197
|
style={{ opacity:!valid||loading?0.5:1 }}
|
|
194
|
-
title_color={Colors.shades.white}
|
|
195
198
|
loading={loading}
|
|
196
|
-
backgroundColor={Colors.brand.electric}
|
|
197
199
|
disabled={!valid||loading}
|
|
198
|
-
|
|
200
|
+
type='success'
|
|
199
201
|
onPress={() => handleAuthCheck()}
|
|
200
202
|
/>
|
|
201
203
|
</View>
|
|
202
|
-
<View style={{ padding:
|
|
204
|
+
<View style={{ padding:10 }}>
|
|
203
205
|
<Button
|
|
204
206
|
title='Are You New? Sign Up Here'
|
|
205
|
-
|
|
206
|
-
backgroundColor='transparent'
|
|
207
|
+
type='text'
|
|
207
208
|
onPress={() => onRegister()}
|
|
208
209
|
/>
|
|
209
210
|
</View>
|
|
@@ -213,38 +214,39 @@ const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthentic
|
|
|
213
214
|
<View style={{ flex:1 }}>
|
|
214
215
|
<View style={{ borderRadius:8, padding:30 }}>
|
|
215
216
|
<View style={{ marginBottom:10 }}>
|
|
216
|
-
<Text
|
|
217
|
+
<Text theme='h1'>MY {attribute.toUpperCase()}</Text>
|
|
217
218
|
</View>
|
|
218
|
-
<View style={{ flexDirection:'row', alignItems:'center'
|
|
219
|
-
<View style={{ paddingLeft:10, paddingRight:15 }}>
|
|
219
|
+
<View type='input' style={{ flexDirection:'row', alignItems:'center' }}>
|
|
220
|
+
<View transparent style={{ paddingLeft:10, paddingRight:15 }}>
|
|
220
221
|
{getAttributeIcon()}
|
|
221
222
|
</View>
|
|
222
223
|
<TextInput
|
|
223
224
|
value={value}
|
|
225
|
+
transparent
|
|
224
226
|
editable={false}
|
|
225
|
-
style={{ flex:1
|
|
227
|
+
style={{ flex:1 }}
|
|
226
228
|
placeholderTextColor={Colors.brand.slate}
|
|
227
229
|
onChangeText={() => console.log('')}
|
|
228
230
|
/>
|
|
229
|
-
<View style={{ padding:10 }}>
|
|
230
|
-
<Icons.CheckCirlceIcon color={
|
|
231
|
+
<View transparent style={{ padding:10 }}>
|
|
232
|
+
<Icons.CheckCirlceIcon color={C.text.success} size={14} />
|
|
231
233
|
</View>
|
|
232
234
|
</View>
|
|
233
235
|
</View>
|
|
234
|
-
<View style={{ borderRadius:8, padding:30
|
|
236
|
+
<View style={{ borderRadius:8, padding:30 }}>
|
|
235
237
|
<View style={{ marginBottom:10 }}>
|
|
236
|
-
<Text
|
|
238
|
+
<Text theme='h1'>ENTER {type.toUpperCase()}</Text>
|
|
237
239
|
{type == 'token' ?
|
|
238
|
-
<Text style={{ marginTop:5 }}
|
|
240
|
+
<Text style={{ marginTop:5 }} theme='h2'>We sent a one-time token to {value}. Please enter it below.</Text>
|
|
239
241
|
:
|
|
240
|
-
<Text style={{ marginTop:5 }}
|
|
242
|
+
<Text style={{ marginTop:5 }} theme='h2'>Please enter the password associated with the {attribute} {value}.</Text>
|
|
241
243
|
}
|
|
242
244
|
</View>
|
|
243
|
-
<View style={{ flexDirection:'row', alignItems:'center'
|
|
244
|
-
<View style={{ paddingLeft:10, paddingRight:15 }}>
|
|
245
|
+
<View type='input' style={{ flexDirection:'row', alignItems:'center' }}>
|
|
246
|
+
<View transparent style={{ paddingLeft:10, paddingRight:15 }}>
|
|
245
247
|
<Icons.LockClosedIcon
|
|
246
248
|
size={20}
|
|
247
|
-
color={
|
|
249
|
+
color={C.text.h1}
|
|
248
250
|
/>
|
|
249
251
|
</View>
|
|
250
252
|
<TextInput
|
|
@@ -263,11 +265,11 @@ const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthentic
|
|
|
263
265
|
})
|
|
264
266
|
}}
|
|
265
267
|
/>
|
|
266
|
-
<View style={{ padding:10 }}>
|
|
268
|
+
<View transparent style={{ padding:10 }}>
|
|
267
269
|
{ login_valid ?
|
|
268
|
-
<Icons.CheckCirlceIcon color={
|
|
270
|
+
<Icons.CheckCirlceIcon color={C.text.h1} size={14} />
|
|
269
271
|
:
|
|
270
|
-
<Icons.AlertIcon color={
|
|
272
|
+
<Icons.AlertIcon color={C.text.warning} size={18} />
|
|
271
273
|
}
|
|
272
274
|
</View>
|
|
273
275
|
</View>
|
|
@@ -284,10 +286,7 @@ const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthentic
|
|
|
284
286
|
title='BACK'
|
|
285
287
|
style={{ marginRight:5, flex:1 }}
|
|
286
288
|
title_color={Colors.brand.electric}
|
|
287
|
-
|
|
288
|
-
borderWidth={1}
|
|
289
|
-
borderColor={Colors.brand.electric}
|
|
290
|
-
padding={15}
|
|
289
|
+
type='close'
|
|
291
290
|
onPress={() => {
|
|
292
291
|
setLoginTry({ ...login_try, pass_token: '', visible:false });
|
|
293
292
|
}}
|
|
@@ -297,9 +296,8 @@ const LoginForm = ({ width, visible, onRegister, onAuthenticated, onTryAuthentic
|
|
|
297
296
|
style={{ flex:3, opacity:!login_valid||loading?0.5:1 }}
|
|
298
297
|
title_color={Colors.shades.white}
|
|
299
298
|
loading={login_try.loading}
|
|
300
|
-
|
|
299
|
+
type='success'
|
|
301
300
|
disabled={!login_valid||loading}
|
|
302
|
-
padding={15}
|
|
303
301
|
onPress={() => handleLogin()}
|
|
304
302
|
/>
|
|
305
303
|
</View>
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { Checkbox, Icons } from "../../Components";
|
|
3
|
+
|
|
4
4
|
import type { AuthExecutionRequestProps, AuthStrategyIdentifierProps, AuthStrategyProps, AuthenticatedProps } from '../api/types';
|
|
5
5
|
import { AuthenticateApi, AuthenticateHelpers } from '../api';
|
|
6
|
-
import { Linking, TouchableOpacity
|
|
6
|
+
import { Linking, TouchableOpacity , FlatList } from 'react-native';
|
|
7
7
|
import type { CompanyProps, PlayerReferralProps, PromoProps, PublicPlayerProps } from '../../types';
|
|
8
|
-
import { view_styles } from '../../constants/styles';
|
|
9
8
|
import { ProfileHelpers } from '../../ProfileManager/api';
|
|
10
9
|
import AuthStrategyIdentifier from './AuthStrategyIdentifier';
|
|
10
|
+
import { useColors } from '../../constants/useColors';
|
|
11
|
+
import { Text, View, Button, TextInput } from '../../Components/Themed';
|
|
11
12
|
|
|
12
13
|
type StrategyFormProps = {
|
|
13
14
|
visible:boolean,
|
|
14
15
|
auth_strategy_id:string,
|
|
15
16
|
strategy: { auth_strategy?:AuthStrategyProps, auth_strategy_identifiers:AuthStrategyIdentifierProps[] }
|
|
16
|
-
|
|
17
|
+
maxWidth?:number,
|
|
17
18
|
company_id?:string,
|
|
18
19
|
distinct_id:string,
|
|
19
20
|
source:string,
|
|
20
|
-
theme?:'full'|'mini',
|
|
21
21
|
company?:CompanyProps,
|
|
22
22
|
opt_in_url?:string,
|
|
23
23
|
show_referral?:boolean,
|
|
@@ -26,10 +26,10 @@ type StrategyFormProps = {
|
|
|
26
26
|
onAuthenticated: (auth_response:AuthenticatedProps) => void
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
const mini_steps = ['intro', 'execution', 'verify']
|
|
30
|
-
|
|
31
|
-
const StrategyForm = ({ visible, company, theme, strategy, auth_strategy_id, company_id, distinct_id, source, show_referral, referral_code, width, opt_in_url, onAuthenticated, onLogin }:StrategyFormProps) => {
|
|
29
|
+
//const mini_steps = ['intro', 'execution', 'verify']
|
|
32
30
|
|
|
31
|
+
const StrategyForm = ({ visible, strategy, auth_strategy_id, company_id, distinct_id, source, show_referral, referral_code, maxWidth, opt_in_url, onAuthenticated, onLogin }:StrategyFormProps) => {
|
|
32
|
+
const C = useColors();
|
|
33
33
|
const [ action_loading, setActionLoading ] = useState(false);
|
|
34
34
|
const [ active_view, setActiveView ] = useState('authenticate');
|
|
35
35
|
const [ code_details, setCodeDetails ] = useState<{
|
|
@@ -37,9 +37,9 @@ const StrategyForm = ({ visible, company, theme, strategy, auth_strategy_id, com
|
|
|
37
37
|
promo?:PromoProps,
|
|
38
38
|
referrer?:PublicPlayerProps
|
|
39
39
|
}>({})
|
|
40
|
-
const [ active_mini_index, setActiveMiniIndex ] = useState(0);
|
|
40
|
+
//const [ active_mini_index, setActiveMiniIndex ] = useState(0);
|
|
41
41
|
const [ opted_in, setOptedIn ] = useState(true);
|
|
42
|
-
const [ active_index, setActiveIndex ] = useState<number>(0)
|
|
42
|
+
//const [ active_index, setActiveIndex ] = useState<number>(0)
|
|
43
43
|
const [ token, setToken ] = useState('');
|
|
44
44
|
const [ verify_error, setVerifyError ] = useState<string|undefined>();
|
|
45
45
|
const [ verify_attempt_allowed, setVeryAttemptAllowed ] = useState(true);
|
|
@@ -69,7 +69,7 @@ const StrategyForm = ({ visible, company, theme, strategy, auth_strategy_id, com
|
|
|
69
69
|
},[auth_strategy, referral_code])
|
|
70
70
|
|
|
71
71
|
const setUpWizard = async(auth_strategy_id:string) => {
|
|
72
|
-
|
|
72
|
+
|
|
73
73
|
//Get auth strategy from server
|
|
74
74
|
if(referral_code && show_referral){
|
|
75
75
|
const code_response = await AuthenticateApi.getReferralByCode(referral_code)
|
|
@@ -94,17 +94,14 @@ const StrategyForm = ({ visible, company, theme, strategy, auth_strategy_id, com
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
const verifyAuthStrategyIdentifier = async() => {
|
|
97
|
-
|
|
98
|
-
console.log(authenticated)
|
|
97
|
+
|
|
99
98
|
if(authenticated){ return }
|
|
100
99
|
if(!verify_state){ return }
|
|
101
100
|
if(action_loading){ return } //No mashy mashy
|
|
102
101
|
if(!verify_attempt_allowed){ return }
|
|
103
102
|
setVeryAttemptAllowed(false);
|
|
104
103
|
setActionLoading(true);
|
|
105
|
-
console.log('Submitting password!!!')
|
|
106
104
|
const { result, player_id, access_token, refresh_token, expire_datetime } = await AuthenticateApi.verifyAuthStrategyIdentifier(verify_state.auth_strategy_identifier_id, verify_state.verification_session_id, token, distinct_id);
|
|
107
|
-
console.log(result)
|
|
108
105
|
if(result == 'fail' || !access_token || !refresh_token || !player_id || !auth_strategy_id){
|
|
109
106
|
setVerifyError(`Invalid code / password. Please try again after 10 seconds`)
|
|
110
107
|
setTimeout(() => {
|
|
@@ -128,7 +125,6 @@ const StrategyForm = ({ visible, company, theme, strategy, auth_strategy_id, com
|
|
|
128
125
|
}
|
|
129
126
|
|
|
130
127
|
const executeAuthStrategy = async() => {
|
|
131
|
-
console.log('exeuting strategy!!!')
|
|
132
128
|
setActionLoading(true);
|
|
133
129
|
const { result, verification_session_id, session_expire_datetime, auth_strategy_identifier_id, new_player } = await AuthenticateApi.executeAuthStrategy(auth_execution_request);
|
|
134
130
|
if(result == 'fail'){
|
|
@@ -172,6 +168,127 @@ const StrategyForm = ({ visible, company, theme, strategy, auth_strategy_id, com
|
|
|
172
168
|
const strategy_valid = AuthenticateHelpers.isStrategyValid(auth_execution_request)
|
|
173
169
|
if(!visible || !auth_strategy){ return <></> }
|
|
174
170
|
|
|
171
|
+
|
|
172
|
+
return (
|
|
173
|
+
<View style={{ maxWidth, flexGrow:1 }}>
|
|
174
|
+
{active_view == 'authenticate' ?
|
|
175
|
+
<View nativeID="sign_up" style={{ flexGrow:1 }}>
|
|
176
|
+
{show_referral && code_details.player_referral && code_details.promo ?
|
|
177
|
+
<View float style={{ margin:15, flexDirection:'row', borderRadius:8 }}>
|
|
178
|
+
<View transparent style={{ padding:10, justifyContent:'center' }}>
|
|
179
|
+
<Icons.GiftIcon size={40} color={C.text.gold} />
|
|
180
|
+
</View>
|
|
181
|
+
<View transparent style={{flex:1, backgroundColor:C.views.gold, padding:10, borderTopRightRadius:8, borderBottomRightRadius:8 }}>
|
|
182
|
+
<Text theme='h1'>@{code_details.referrer?.username} has a gift for you</Text>
|
|
183
|
+
<Text style={{ paddingTop:5 }} theme='h2'>{ProfileHelpers.getReferralDescription(code_details.promo)}</Text>
|
|
184
|
+
</View>
|
|
185
|
+
</View>
|
|
186
|
+
:<></>}
|
|
187
|
+
<View style={{ padding:20, flexGrow:1 }}>
|
|
188
|
+
<FlatList
|
|
189
|
+
data={auth_strategy_identifiers.sort((a,b) => a.priority - b.priority)}
|
|
190
|
+
renderItem={renderAuthStrategyIdentifiers}
|
|
191
|
+
keyExtractor={(item) => item.auth_strategy_identifier_id.toString()}
|
|
192
|
+
/>
|
|
193
|
+
</View>
|
|
194
|
+
<View nativeID="action_row" type='footer' style={{ padding:10, paddingLeft:20, paddingRight:20 }}>
|
|
195
|
+
<Button
|
|
196
|
+
title={`Let's Go!`}
|
|
197
|
+
loading={action_loading}
|
|
198
|
+
style={{ opacity:strategy_valid && opted_in?1:0.5 }}
|
|
199
|
+
disabled={action_loading || !strategy_valid || !opted_in}
|
|
200
|
+
type='success'
|
|
201
|
+
onPress={() => {
|
|
202
|
+
executeAuthStrategy()
|
|
203
|
+
}}
|
|
204
|
+
/>
|
|
205
|
+
</View>
|
|
206
|
+
{auth_strategy?.allow_login ?
|
|
207
|
+
<View style={{ padding:10 }}>
|
|
208
|
+
<Button
|
|
209
|
+
title='Already Signed Up? Login Here'
|
|
210
|
+
type='text'
|
|
211
|
+
onPress={() => onLogin()}
|
|
212
|
+
/>
|
|
213
|
+
</View>
|
|
214
|
+
:<></>}
|
|
215
|
+
{active_view == 'authenticate' && opt_in_url ?
|
|
216
|
+
<View style={{ flexDirection:'row', alignItems:'center', padding:20 }}>
|
|
217
|
+
<Checkbox
|
|
218
|
+
size={25}
|
|
219
|
+
checked={opted_in}
|
|
220
|
+
onSelect={(checked) => setOptedIn(checked)}
|
|
221
|
+
/>
|
|
222
|
+
<Text style={{ marginLeft:15 }} theme='h2'>By continuing, you agree to the terms and conditions outlined
|
|
223
|
+
<TouchableOpacity onPress={() => Linking.openURL(opt_in_url) }>
|
|
224
|
+
<Text size={14} color={C.text.action} weight='bold'> here.</Text>
|
|
225
|
+
</TouchableOpacity>
|
|
226
|
+
</Text>
|
|
227
|
+
</View>
|
|
228
|
+
:<></>}
|
|
229
|
+
</View>
|
|
230
|
+
|
|
231
|
+
: active_view == 'verify' && verify_strategy_identifier ?
|
|
232
|
+
|
|
233
|
+
<View nativeID="sign_up" style={{ flex:1 }}>
|
|
234
|
+
<View style={{ flex:1, justifyContent:'center', alignItems:'center', padding:20 }}>
|
|
235
|
+
<Text theme='h1' size={20} textAlign="center">{verify_strategy_identifier.verify_label??'Enter Verification Code'}</Text>
|
|
236
|
+
<View type='input' style={{ marginTop:15 }}>
|
|
237
|
+
<TextInput
|
|
238
|
+
style={{ textAlign:'center', minWidth:200 }}
|
|
239
|
+
value={token}
|
|
240
|
+
transparent
|
|
241
|
+
placeholder='00000'
|
|
242
|
+
keyboardType='default'
|
|
243
|
+
autoFocus
|
|
244
|
+
textContentType={verify_strategy_identifier.secure_text_entry ? undefined : 'oneTimeCode'}
|
|
245
|
+
secureTextEntry={verify_strategy_identifier.secure_text_entry}
|
|
246
|
+
placeholderTextColor={C.text.description}
|
|
247
|
+
onChangeText={(text) => {
|
|
248
|
+
setToken(text);
|
|
249
|
+
}}
|
|
250
|
+
/>
|
|
251
|
+
</View>
|
|
252
|
+
{verify_error ?
|
|
253
|
+
<Text style={{ marginTop:10 }} theme='warning'>{verify_error}</Text>
|
|
254
|
+
:<></>}
|
|
255
|
+
</View>
|
|
256
|
+
<View nativeID="action_row" style={{ flexDirection:'row', padding:10, paddingLeft:20, paddingRight:20 }}>
|
|
257
|
+
<Button
|
|
258
|
+
title={'BACK'}
|
|
259
|
+
loading={action_loading}
|
|
260
|
+
style={{ flex:1, marginRight:5 }}
|
|
261
|
+
type='close'
|
|
262
|
+
onPress={() => {
|
|
263
|
+
setActiveView('authenticate');
|
|
264
|
+
setVerifyState(undefined)
|
|
265
|
+
}}
|
|
266
|
+
/>
|
|
267
|
+
<Button
|
|
268
|
+
title={verify_attempt_allowed && !action_loading? 'Verify': 'Retry in 10 seconds'}
|
|
269
|
+
loading={action_loading}
|
|
270
|
+
style={{ flex:3, opacity:token&&verify_attempt_allowed?1:0.5 }}
|
|
271
|
+
disabled={!token || action_loading || !verify_attempt_allowed}
|
|
272
|
+
type='success'
|
|
273
|
+
onPress={() => {
|
|
274
|
+
verifyAuthStrategyIdentifier()
|
|
275
|
+
}}
|
|
276
|
+
/>
|
|
277
|
+
</View>
|
|
278
|
+
</View>
|
|
279
|
+
|
|
280
|
+
:<></>}
|
|
281
|
+
</View>
|
|
282
|
+
)
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
export default StrategyForm
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
/*
|
|
291
|
+
|
|
175
292
|
if(theme == 'mini'){
|
|
176
293
|
const active_mini_step = mini_steps[active_mini_index];
|
|
177
294
|
const active_strategy_identifier = auth_strategy_identifiers[active_index]
|
|
@@ -179,9 +296,9 @@ const StrategyForm = ({ visible, company, theme, strategy, auth_strategy_id, com
|
|
|
179
296
|
const last_index = auth_strategy_identifiers.length - 1 == active_index ? true : false
|
|
180
297
|
if(!auth_request || !active_mini_step){ return <></> }
|
|
181
298
|
return (
|
|
182
|
-
<View style={{
|
|
299
|
+
<View style={{ maxWidth }}>
|
|
183
300
|
{active_mini_step == 'intro' ?
|
|
184
|
-
<View style={{
|
|
301
|
+
<View style={{ }}>
|
|
185
302
|
<View style={{ flexDirection:'row' }}>
|
|
186
303
|
{company ?
|
|
187
304
|
<View style={{ padding:10 }}>
|
|
@@ -296,7 +413,7 @@ const StrategyForm = ({ visible, company, theme, strategy, auth_strategy_id, com
|
|
|
296
413
|
</View>
|
|
297
414
|
</View>
|
|
298
415
|
: active_view == 'verify' && verify_strategy_identifier ?
|
|
299
|
-
<View nativeID="sign_up" style={{
|
|
416
|
+
<View nativeID="sign_up" style={{ maxWidth:600 }}>
|
|
300
417
|
<View style={{ padding:10 }}>
|
|
301
418
|
<Text size={18} color={Colors.brand.midnight} weight='semibold'>{verify_strategy_identifier.verify_label??'Enter Verification Code'}</Text>
|
|
302
419
|
<View style={{ padding:10 }}>
|
|
@@ -357,130 +474,4 @@ const StrategyForm = ({ visible, company, theme, strategy, auth_strategy_id, com
|
|
|
357
474
|
)
|
|
358
475
|
}
|
|
359
476
|
|
|
360
|
-
|
|
361
|
-
<View style={{ width:width, flex:1 }}>
|
|
362
|
-
{active_view == 'authenticate' ?
|
|
363
|
-
<View nativeID="sign_up" style={{ flex:1 }}>
|
|
364
|
-
{show_referral && code_details.player_referral && code_details.promo ?
|
|
365
|
-
<View style={{ margin:15, flexDirection:'row', backgroundColor:Colors.shades.white, borderRadius:8, ...view_styles.float }}>
|
|
366
|
-
<View style={{ padding:10, justifyContent:'center' }}>
|
|
367
|
-
<Icons.GiftIcon size={40} color={Colors.incentive.gold} />
|
|
368
|
-
</View>
|
|
369
|
-
<View style={{flex:1, backgroundColor:Colors.incentive.gold_faded, padding:10 }}>
|
|
370
|
-
<Text style={{ paddingBottom:10, borderBottomWidth:1, borderBottomColor:Colors.shades.shade600 }} size={16} color={Colors.brand.midnight} weight='bold'>@{code_details.referrer?.username} has a gift for you</Text>
|
|
371
|
-
<Text style={{ paddingTop:5 }} size={12} color={Colors.brand.midnight} weight='semibold'>{ProfileHelpers.getReferralDescription(code_details.promo)}</Text>
|
|
372
|
-
</View>
|
|
373
|
-
</View>
|
|
374
|
-
:<></>}
|
|
375
|
-
<View style={{ flex:1, padding:10 }}>
|
|
376
|
-
<View style={{ padding:10 }}>
|
|
377
|
-
<FlatList
|
|
378
|
-
data={auth_strategy_identifiers.sort((a,b) => a.priority - b.priority)}
|
|
379
|
-
renderItem={renderAuthStrategyIdentifiers}
|
|
380
|
-
keyExtractor={(item) => item.auth_strategy_identifier_id.toString()}
|
|
381
|
-
/>
|
|
382
|
-
</View>
|
|
383
|
-
</View>
|
|
384
|
-
<View nativeID="action_row" style={{ padding:10, paddingLeft:20, paddingRight:20 }}>
|
|
385
|
-
<Button
|
|
386
|
-
title={`Let's Go!`}
|
|
387
|
-
loading={action_loading}
|
|
388
|
-
style={{ opacity:strategy_valid && opted_in?1:0.5 }}
|
|
389
|
-
disabled={action_loading || !strategy_valid || !opted_in}
|
|
390
|
-
title_color={Colors.shades.white}
|
|
391
|
-
backgroundColor={Colors.brand.electric}
|
|
392
|
-
//borderRadius={8}
|
|
393
|
-
padding={15}
|
|
394
|
-
onPress={() => {
|
|
395
|
-
executeAuthStrategy()
|
|
396
|
-
}}
|
|
397
|
-
/>
|
|
398
|
-
</View>
|
|
399
|
-
{auth_strategy?.allow_login ?
|
|
400
|
-
<View style={{ padding:10, backgroundColor:Colors.shades.shade100 }}>
|
|
401
|
-
<Button
|
|
402
|
-
title='Already Signed Up? Login Here'
|
|
403
|
-
title_color={Colors.brand.electric}
|
|
404
|
-
backgroundColor='transparent'
|
|
405
|
-
onPress={() => onLogin()}
|
|
406
|
-
/>
|
|
407
|
-
</View>
|
|
408
|
-
:<></>}
|
|
409
|
-
{active_view == 'authenticate' && opt_in_url ?
|
|
410
|
-
<View style={{ flexDirection:'row', alignItems:'center', padding:20 }}>
|
|
411
|
-
<Checkbox
|
|
412
|
-
size={25}
|
|
413
|
-
checked={opted_in}
|
|
414
|
-
onSelect={(checked) => setOptedIn(checked)}
|
|
415
|
-
/>
|
|
416
|
-
<Text style={{ marginLeft:15 }} size={14} color={Colors.brand.midnight}>By continuing, you agree to the terms and conditions outlined
|
|
417
|
-
<TouchableOpacity onPress={() => Linking.openURL(opt_in_url) }>
|
|
418
|
-
<Text size={14} color={Colors.brand.electric} weight='bold'> here.</Text>
|
|
419
|
-
</TouchableOpacity>
|
|
420
|
-
</Text>
|
|
421
|
-
</View>
|
|
422
|
-
:<></>}
|
|
423
|
-
</View>
|
|
424
|
-
|
|
425
|
-
: active_view == 'verify' && verify_strategy_identifier ?
|
|
426
|
-
|
|
427
|
-
<View nativeID="sign_up" style={{ flex:1 }}>
|
|
428
|
-
<View style={{ flex:1, justifyContent:'center', alignItems:'center', padding:20 }}>
|
|
429
|
-
<Text size={18} color={Colors.brand.midnight} weight='semibold' textAlign="center">{verify_strategy_identifier.verify_label??'Enter Verification Code'}</Text>
|
|
430
|
-
<View style={{ padding:10 }}>
|
|
431
|
-
<TextInput
|
|
432
|
-
style={{ textAlign:'center', fontFamily:'barlow-bold', fontSize:14, borderWidth:1, borderColor:Colors.shades.shade600 }}
|
|
433
|
-
value={token}
|
|
434
|
-
keyboardType='default'
|
|
435
|
-
autoFocus
|
|
436
|
-
textContentType={verify_strategy_identifier.secure_text_entry ? undefined : 'oneTimeCode'}
|
|
437
|
-
secureTextEntry={verify_strategy_identifier.secure_text_entry}
|
|
438
|
-
placeholderTextColor={Colors.brand.slate}
|
|
439
|
-
onChangeText={(text) => {
|
|
440
|
-
setToken(text);
|
|
441
|
-
}}
|
|
442
|
-
/>
|
|
443
|
-
</View>
|
|
444
|
-
{verify_error ?
|
|
445
|
-
<Text style={{ marginTop:10 }} size={14} color={Colors.utility.warning}>{verify_error}</Text>
|
|
446
|
-
:<></>}
|
|
447
|
-
</View>
|
|
448
|
-
<View nativeID="action_row" style={{ flexDirection:'row', padding:10, paddingLeft:20, paddingRight:20 }}>
|
|
449
|
-
<Button
|
|
450
|
-
title={'BACK'}
|
|
451
|
-
loading={action_loading}
|
|
452
|
-
style={{ flex:1, marginRight:5 }}
|
|
453
|
-
//disabled={!token || action_loading || !verify_attempt_allowed}
|
|
454
|
-
title_color={Colors.brand.electric}
|
|
455
|
-
borderColor={Colors.brand.electric}
|
|
456
|
-
borderWidth={1}
|
|
457
|
-
//backgroundColor={Colors.utility.success}
|
|
458
|
-
//borderRadius={8}
|
|
459
|
-
padding={15}
|
|
460
|
-
onPress={() => {
|
|
461
|
-
setActiveView('authenticate');
|
|
462
|
-
setVerifyState(undefined)
|
|
463
|
-
}}
|
|
464
|
-
/>
|
|
465
|
-
<Button
|
|
466
|
-
title={verify_attempt_allowed && !action_loading? 'Verify': 'Retry in 10 seconds'}
|
|
467
|
-
loading={action_loading}
|
|
468
|
-
style={{ flex:3, opacity:token&&verify_attempt_allowed?1:0.5 }}
|
|
469
|
-
disabled={!token || action_loading || !verify_attempt_allowed}
|
|
470
|
-
title_color={Colors.shades.white}
|
|
471
|
-
backgroundColor={Colors.utility.success}
|
|
472
|
-
//borderRadius={8}
|
|
473
|
-
padding={15}
|
|
474
|
-
onPress={() => {
|
|
475
|
-
verifyAuthStrategyIdentifier()
|
|
476
|
-
}}
|
|
477
|
-
/>
|
|
478
|
-
</View>
|
|
479
|
-
</View>
|
|
480
|
-
|
|
481
|
-
:<></>}
|
|
482
|
-
</View>
|
|
483
|
-
)
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
export default StrategyForm
|
|
477
|
+
*/
|