be-components 0.7.3 → 0.7.5
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/ApiOverrides/index.js +18 -0
- package/lib/commonjs/ApiOverrides/index.js.map +1 -1
- package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js +113 -0
- package/lib/commonjs/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -0
- package/lib/commonjs/Authenticator/Components/StrategyForm.js +238 -71
- package/lib/commonjs/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/commonjs/Authenticator/index.js +7 -4
- package/lib/commonjs/Authenticator/index.js.map +1 -1
- package/lib/commonjs/Checkout/api/index.js.map +1 -1
- package/lib/commonjs/Checkout/index.js.map +1 -1
- package/lib/commonjs/Competition/api/index.js +655 -0
- package/lib/commonjs/Competition/api/index.js.map +1 -0
- package/lib/commonjs/Competition/components/AthleteMarketCard.js +168 -0
- package/lib/commonjs/Competition/components/AthleteMarketCard.js.map +1 -0
- package/lib/commonjs/Competition/components/CompetitionCard.js +180 -0
- package/lib/commonjs/Competition/components/CompetitionCard.js.map +1 -0
- package/lib/commonjs/Competition/components/CompetitionInfoCard.js +264 -0
- package/lib/commonjs/Competition/components/CompetitionInfoCard.js.map +1 -0
- package/lib/commonjs/Competition/components/CompetitionLeaderboard.js +281 -0
- package/lib/commonjs/Competition/components/CompetitionLeaderboard.js.map +1 -0
- package/lib/commonjs/Competition/components/CompetitionPlay.js +1269 -0
- package/lib/commonjs/Competition/components/CompetitionPlay.js.map +1 -0
- package/lib/commonjs/Competition/components/CompetitionSeasonCard.js +111 -0
- package/lib/commonjs/Competition/components/CompetitionSeasonCard.js.map +1 -0
- package/lib/commonjs/Competition/components/CompetitionSelector.js +122 -0
- package/lib/commonjs/Competition/components/CompetitionSelector.js.map +1 -0
- package/lib/commonjs/Competition/components/CompetitionTypeCard.js +380 -0
- package/lib/commonjs/Competition/components/CompetitionTypeCard.js.map +1 -0
- package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js +237 -0
- package/lib/commonjs/Competition/components/EnterCompetitionPrompt.js.map +1 -0
- package/lib/commonjs/Competition/components/LeaderPicks.js +322 -0
- package/lib/commonjs/Competition/components/LeaderPicks.js.map +1 -0
- package/lib/commonjs/Competition/components/ManageSeasonForm.js +605 -0
- package/lib/commonjs/Competition/components/ManageSeasonForm.js.map +1 -0
- package/lib/commonjs/Competition/components/MarketsCard.js +148 -0
- package/lib/commonjs/Competition/components/MarketsCard.js.map +1 -0
- package/lib/commonjs/Competition/components/MatchMarketCard.js +199 -0
- package/lib/commonjs/Competition/components/MatchMarketCard.js.map +1 -0
- package/lib/commonjs/Competition/components/NavOutPrompt.js +159 -0
- package/lib/commonjs/Competition/components/NavOutPrompt.js.map +1 -0
- package/lib/commonjs/Competition/components/SeasonInfoModal.js +400 -0
- package/lib/commonjs/Competition/components/SeasonInfoModal.js.map +1 -0
- package/lib/commonjs/Competition/components/TeamEventCard.js +217 -0
- package/lib/commonjs/Competition/components/TeamEventCard.js.map +1 -0
- package/lib/commonjs/Competition/components/WagerPickForm.js +278 -0
- package/lib/commonjs/Competition/components/WagerPickForm.js.map +1 -0
- package/lib/commonjs/Competition/index.js +42 -0
- package/lib/commonjs/Competition/index.js.map +1 -0
- package/lib/commonjs/Components/Icons.js.map +1 -1
- package/lib/commonjs/Components/Jerseys.js +713 -0
- package/lib/commonjs/Components/Jerseys.js.map +1 -0
- package/lib/commonjs/Components/LinearDiagnal.js +1 -1
- package/lib/commonjs/Components/LinearDiagnal.js.map +1 -1
- package/lib/commonjs/Components/Switch.js +81 -0
- package/lib/commonjs/Components/Switch.js.map +1 -0
- package/lib/commonjs/Components/index.js +14 -0
- package/lib/commonjs/Components/index.js.map +1 -1
- package/lib/commonjs/Poll/api/index.js +277 -0
- package/lib/commonjs/Poll/api/index.js.map +1 -0
- package/lib/commonjs/Poll/components/CampaignPlay.js +553 -0
- package/lib/commonjs/Poll/components/CampaignPlay.js.map +1 -0
- package/lib/commonjs/Poll/components/CampaignProgressBar.js +118 -0
- package/lib/commonjs/Poll/components/CampaignProgressBar.js.map +1 -0
- package/lib/commonjs/Poll/components/CampaignResult.js +382 -0
- package/lib/commonjs/Poll/components/CampaignResult.js.map +1 -0
- package/lib/commonjs/Poll/components/CampaignSelector.js +124 -0
- package/lib/commonjs/Poll/components/CampaignSelector.js.map +1 -0
- package/lib/commonjs/Poll/components/PollCampaignCard.js +66 -0
- package/lib/commonjs/Poll/components/PollCampaignCard.js.map +1 -0
- package/lib/commonjs/Poll/components/PollCard.js +480 -0
- package/lib/commonjs/Poll/components/PollCard.js.map +1 -0
- package/lib/commonjs/Poll/components/PollOptionCard.js +158 -0
- package/lib/commonjs/Poll/components/PollOptionCard.js.map +1 -0
- package/lib/commonjs/Poll/components/PollSelectCard.js +189 -0
- package/lib/commonjs/Poll/components/PollSelectCard.js.map +1 -0
- package/lib/commonjs/Poll/components/ResponseTimer.js +48 -0
- package/lib/commonjs/Poll/components/ResponseTimer.js.map +1 -0
- package/lib/commonjs/Poll/components/WidgetHeader.js +83 -0
- package/lib/commonjs/Poll/components/WidgetHeader.js.map +1 -0
- package/lib/commonjs/Poll/flashmarket/index.js +354 -0
- package/lib/commonjs/Poll/flashmarket/index.js.map +1 -0
- package/lib/commonjs/Poll/index.js +46 -0
- package/lib/commonjs/Poll/index.js.map +1 -0
- package/lib/commonjs/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js +3 -1
- package/lib/commonjs/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js +5 -0
- package/lib/commonjs/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/commonjs/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/commonjs/ProfileManager/index.js +2 -0
- package/lib/commonjs/ProfileManager/index.js.map +1 -1
- package/lib/commonjs/Wallet/api/index.js +4 -1
- package/lib/commonjs/Wallet/api/index.js.map +1 -1
- package/lib/commonjs/Wallet/components/ACHAddCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/AddressManager.js.map +1 -1
- package/lib/commonjs/Wallet/components/DepositCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/FundAccountCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManageAccountCard.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManualACHAdd.js.map +1 -1
- package/lib/commonjs/Wallet/components/ManualCardAdd.js.map +1 -1
- package/lib/commonjs/Wallet/components/MyBalance.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletActionSelector.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletSettings.js.map +1 -1
- package/lib/commonjs/Wallet/components/WalletSetup.js.map +1 -1
- package/lib/commonjs/Wallet/components/WithdrawCard.js.map +1 -1
- package/lib/commonjs/Wallet/index.js.map +1 -1
- package/lib/commonjs/index.js +14 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/ApiOverrides/index.js +18 -0
- package/lib/module/ApiOverrides/index.js.map +1 -1
- package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js +106 -0
- package/lib/module/Authenticator/Components/AuthStrategyIdentifier.js.map +1 -0
- package/lib/module/Authenticator/Components/StrategyForm.js +239 -72
- package/lib/module/Authenticator/Components/StrategyForm.js.map +1 -1
- package/lib/module/Authenticator/index.js +7 -4
- package/lib/module/Authenticator/index.js.map +1 -1
- package/lib/module/Checkout/api/index.js.map +1 -1
- package/lib/module/Checkout/index.js.map +1 -1
- package/lib/module/Competition/api/index.js +649 -0
- package/lib/module/Competition/api/index.js.map +1 -0
- package/lib/module/Competition/components/AthleteMarketCard.js +161 -0
- package/lib/module/Competition/components/AthleteMarketCard.js.map +1 -0
- package/lib/module/Competition/components/CompetitionCard.js +173 -0
- package/lib/module/Competition/components/CompetitionCard.js.map +1 -0
- package/lib/module/Competition/components/CompetitionInfoCard.js +257 -0
- package/lib/module/Competition/components/CompetitionInfoCard.js.map +1 -0
- package/lib/module/Competition/components/CompetitionLeaderboard.js +272 -0
- package/lib/module/Competition/components/CompetitionLeaderboard.js.map +1 -0
- package/lib/module/Competition/components/CompetitionPlay.js +1260 -0
- package/lib/module/Competition/components/CompetitionPlay.js.map +1 -0
- package/lib/module/Competition/components/CompetitionSeasonCard.js +104 -0
- package/lib/module/Competition/components/CompetitionSeasonCard.js.map +1 -0
- package/lib/module/Competition/components/CompetitionSelector.js +113 -0
- package/lib/module/Competition/components/CompetitionSelector.js.map +1 -0
- package/lib/module/Competition/components/CompetitionTypeCard.js +371 -0
- package/lib/module/Competition/components/CompetitionTypeCard.js.map +1 -0
- package/lib/module/Competition/components/EnterCompetitionPrompt.js +228 -0
- package/lib/module/Competition/components/EnterCompetitionPrompt.js.map +1 -0
- package/lib/module/Competition/components/LeaderPicks.js +313 -0
- package/lib/module/Competition/components/LeaderPicks.js.map +1 -0
- package/lib/module/Competition/components/ManageSeasonForm.js +596 -0
- package/lib/module/Competition/components/ManageSeasonForm.js.map +1 -0
- package/lib/module/Competition/components/MarketsCard.js +139 -0
- package/lib/module/Competition/components/MarketsCard.js.map +1 -0
- package/lib/module/Competition/components/MatchMarketCard.js +192 -0
- package/lib/module/Competition/components/MatchMarketCard.js.map +1 -0
- package/lib/module/Competition/components/NavOutPrompt.js +152 -0
- package/lib/module/Competition/components/NavOutPrompt.js.map +1 -0
- package/lib/module/Competition/components/SeasonInfoModal.js +391 -0
- package/lib/module/Competition/components/SeasonInfoModal.js.map +1 -0
- package/lib/module/Competition/components/TeamEventCard.js +210 -0
- package/lib/module/Competition/components/TeamEventCard.js.map +1 -0
- package/lib/module/Competition/components/WagerPickForm.js +269 -0
- package/lib/module/Competition/components/WagerPickForm.js.map +1 -0
- package/lib/module/Competition/index.js +33 -0
- package/lib/module/Competition/index.js.map +1 -0
- package/lib/module/Components/Icons.js.map +1 -1
- package/lib/module/Components/Jerseys.js +705 -0
- package/lib/module/Components/Jerseys.js.map +1 -0
- package/lib/module/Components/LinearDiagnal.js +2 -3
- package/lib/module/Components/LinearDiagnal.js.map +1 -1
- package/lib/module/Components/Switch.js +74 -0
- package/lib/module/Components/Switch.js.map +1 -0
- package/lib/module/Components/index.js +3 -1
- package/lib/module/Components/index.js.map +1 -1
- package/lib/module/Poll/api/index.js +271 -0
- package/lib/module/Poll/api/index.js.map +1 -0
- package/lib/module/Poll/components/CampaignPlay.js +545 -0
- package/lib/module/Poll/components/CampaignPlay.js.map +1 -0
- package/lib/module/Poll/components/CampaignProgressBar.js +110 -0
- package/lib/module/Poll/components/CampaignProgressBar.js.map +1 -0
- package/lib/module/Poll/components/CampaignResult.js +374 -0
- package/lib/module/Poll/components/CampaignResult.js.map +1 -0
- package/lib/module/Poll/components/CampaignSelector.js +115 -0
- package/lib/module/Poll/components/CampaignSelector.js.map +1 -0
- package/lib/module/Poll/components/PollCampaignCard.js +59 -0
- package/lib/module/Poll/components/PollCampaignCard.js.map +1 -0
- package/lib/module/Poll/components/PollCard.js +472 -0
- package/lib/module/Poll/components/PollCard.js.map +1 -0
- package/lib/module/Poll/components/PollOptionCard.js +149 -0
- package/lib/module/Poll/components/PollOptionCard.js.map +1 -0
- package/lib/module/Poll/components/PollSelectCard.js +182 -0
- package/lib/module/Poll/components/PollSelectCard.js.map +1 -0
- package/lib/module/Poll/components/ResponseTimer.js +39 -0
- package/lib/module/Poll/components/ResponseTimer.js.map +1 -0
- package/lib/module/Poll/components/WidgetHeader.js +76 -0
- package/lib/module/Poll/components/WidgetHeader.js.map +1 -0
- package/lib/module/Poll/flashmarket/index.js +345 -0
- package/lib/module/Poll/flashmarket/index.js.map +1 -0
- package/lib/module/Poll/index.js +37 -0
- package/lib/module/Poll/index.js.map +1 -0
- package/lib/module/ProfileManager/Components/BasicInfoManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/BasicStatus.js.map +1 -1
- package/lib/module/ProfileManager/Components/CodeRedeem.js +3 -1
- package/lib/module/ProfileManager/Components/CodeRedeem.js.map +1 -1
- package/lib/module/ProfileManager/Components/DOBManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/EmailManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PasswordManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/PhoneManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfilePicManager.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWelcome.js.map +1 -1
- package/lib/module/ProfileManager/Components/ProfileWizard.js +5 -0
- package/lib/module/ProfileManager/Components/ProfileWizard.js.map +1 -1
- package/lib/module/ProfileManager/Components/VouchCard.js.map +1 -1
- package/lib/module/ProfileManager/index.js +2 -0
- package/lib/module/ProfileManager/index.js.map +1 -1
- package/lib/module/Wallet/api/index.js +4 -1
- package/lib/module/Wallet/api/index.js.map +1 -1
- package/lib/module/Wallet/components/ACHAddCard.js.map +1 -1
- package/lib/module/Wallet/components/AddressManager.js.map +1 -1
- package/lib/module/Wallet/components/DepositCard.js.map +1 -1
- package/lib/module/Wallet/components/FundAccountCard.js.map +1 -1
- package/lib/module/Wallet/components/ManageAccountCard.js.map +1 -1
- package/lib/module/Wallet/components/ManualACHAdd.js.map +1 -1
- package/lib/module/Wallet/components/ManualCardAdd.js.map +1 -1
- package/lib/module/Wallet/components/MyBalance.js.map +1 -1
- package/lib/module/Wallet/components/WalletActionSelector.js.map +1 -1
- package/lib/module/Wallet/components/WalletSettings.js.map +1 -1
- package/lib/module/Wallet/components/WalletSetup.js.map +1 -1
- package/lib/module/Wallet/components/WithdrawCard.js.map +1 -1
- package/lib/module/Wallet/index.js.map +1 -1
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/ApiOverrides/index.d.ts +1 -0
- package/lib/typescript/src/ApiOverrides/index.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/Components/AuthStrategyIdentifier.d.ts +11 -0
- package/lib/typescript/src/Authenticator/Components/AuthStrategyIdentifier.d.ts.map +1 -0
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts +4 -1
- package/lib/typescript/src/Authenticator/Components/StrategyForm.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/api/index.d.ts +2 -2
- package/lib/typescript/src/Authenticator/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Authenticator/index.d.ts +2 -1
- package/lib/typescript/src/Authenticator/index.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/api/index.d.ts +1 -2
- package/lib/typescript/src/Checkout/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Checkout/index.d.ts.map +1 -1
- package/lib/typescript/src/Competition/api/index.d.ts +128 -0
- package/lib/typescript/src/Competition/api/index.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/AthleteMarketCard.d.ts +19 -0
- package/lib/typescript/src/Competition/components/AthleteMarketCard.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/CompetitionCard.d.ts +12 -0
- package/lib/typescript/src/Competition/components/CompetitionCard.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/CompetitionInfoCard.d.ts +16 -0
- package/lib/typescript/src/Competition/components/CompetitionInfoCard.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts +14 -0
- package/lib/typescript/src/Competition/components/CompetitionLeaderboard.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/CompetitionPlay.d.ts +20 -0
- package/lib/typescript/src/Competition/components/CompetitionPlay.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/CompetitionSeasonCard.d.ts +10 -0
- package/lib/typescript/src/Competition/components/CompetitionSeasonCard.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/CompetitionSelector.d.ts +11 -0
- package/lib/typescript/src/Competition/components/CompetitionSelector.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/CompetitionTypeCard.d.ts +14 -0
- package/lib/typescript/src/Competition/components/CompetitionTypeCard.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/EnterCompetitionPrompt.d.ts +16 -0
- package/lib/typescript/src/Competition/components/EnterCompetitionPrompt.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/LeaderPicks.d.ts +22 -0
- package/lib/typescript/src/Competition/components/LeaderPicks.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/ManageSeasonForm.d.ts +10 -0
- package/lib/typescript/src/Competition/components/ManageSeasonForm.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/MarketsCard.d.ts +15 -0
- package/lib/typescript/src/Competition/components/MarketsCard.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/MatchMarketCard.d.ts +21 -0
- package/lib/typescript/src/Competition/components/MatchMarketCard.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/NavOutPrompt.d.ts +23 -0
- package/lib/typescript/src/Competition/components/NavOutPrompt.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/SeasonInfoModal.d.ts +14 -0
- package/lib/typescript/src/Competition/components/SeasonInfoModal.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/TeamEventCard.d.ts +17 -0
- package/lib/typescript/src/Competition/components/TeamEventCard.d.ts.map +1 -0
- package/lib/typescript/src/Competition/components/WagerPickForm.d.ts +15 -0
- package/lib/typescript/src/Competition/components/WagerPickForm.d.ts.map +1 -0
- package/lib/typescript/src/Competition/index.d.ts +11 -0
- package/lib/typescript/src/Competition/index.d.ts.map +1 -0
- package/lib/typescript/src/Components/Icons.d.ts.map +1 -1
- package/lib/typescript/src/Components/Jerseys.d.ts +16 -0
- package/lib/typescript/src/Components/Jerseys.d.ts.map +1 -0
- package/lib/typescript/src/Components/LinearDiagnal.d.ts.map +1 -1
- package/lib/typescript/src/Components/Switch.d.ts +9 -0
- package/lib/typescript/src/Components/Switch.d.ts.map +1 -0
- package/lib/typescript/src/Components/index.d.ts +3 -1
- package/lib/typescript/src/Components/index.d.ts.map +1 -1
- package/lib/typescript/src/Poll/api/index.d.ts +65 -0
- package/lib/typescript/src/Poll/api/index.d.ts.map +1 -0
- package/lib/typescript/src/Poll/components/CampaignPlay.d.ts +14 -0
- package/lib/typescript/src/Poll/components/CampaignPlay.d.ts.map +1 -0
- package/lib/typescript/src/Poll/components/CampaignProgressBar.d.ts +12 -0
- package/lib/typescript/src/Poll/components/CampaignProgressBar.d.ts.map +1 -0
- package/lib/typescript/src/Poll/components/CampaignResult.d.ts +13 -0
- package/lib/typescript/src/Poll/components/CampaignResult.d.ts.map +1 -0
- package/lib/typescript/src/Poll/components/CampaignSelector.d.ts +9 -0
- package/lib/typescript/src/Poll/components/CampaignSelector.d.ts.map +1 -0
- package/lib/typescript/src/Poll/components/PollCampaignCard.d.ts +10 -0
- package/lib/typescript/src/Poll/components/PollCampaignCard.d.ts.map +1 -0
- package/lib/typescript/src/Poll/components/PollCard.d.ts +16 -0
- package/lib/typescript/src/Poll/components/PollCard.d.ts.map +1 -0
- package/lib/typescript/src/Poll/components/PollOptionCard.d.ts +14 -0
- package/lib/typescript/src/Poll/components/PollOptionCard.d.ts.map +1 -0
- package/lib/typescript/src/Poll/components/PollSelectCard.d.ts +16 -0
- package/lib/typescript/src/Poll/components/PollSelectCard.d.ts.map +1 -0
- package/lib/typescript/src/Poll/components/ResponseTimer.d.ts +9 -0
- package/lib/typescript/src/Poll/components/ResponseTimer.d.ts.map +1 -0
- package/lib/typescript/src/Poll/components/WidgetHeader.d.ts +13 -0
- package/lib/typescript/src/Poll/components/WidgetHeader.d.ts.map +1 -0
- package/lib/typescript/src/Poll/flashmarket/index.d.ts +10 -0
- package/lib/typescript/src/Poll/flashmarket/index.d.ts.map +1 -0
- package/lib/typescript/src/Poll/index.d.ts +13 -0
- package/lib/typescript/src/Poll/index.d.ts.map +1 -0
- package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts +1 -1
- package/lib/typescript/src/ProfileManager/Components/BasicInfoManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/BasicStatus.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/BasicStatus.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts +9 -2
- package/lib/typescript/src/ProfileManager/Components/CodeRedeem.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts +1 -1
- package/lib/typescript/src/ProfileManager/Components/DOBManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts +1 -1
- package/lib/typescript/src/ProfileManager/Components/EmailManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts +1 -1
- package/lib/typescript/src/ProfileManager/Components/PasswordManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts +1 -1
- package/lib/typescript/src/ProfileManager/Components/PhoneManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/ProfilePicManager.d.ts +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 +10 -3
- package/lib/typescript/src/ProfileManager/Components/ProfileWizard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts +2 -2
- package/lib/typescript/src/ProfileManager/Components/SettingsManager.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts +1 -2
- package/lib/typescript/src/ProfileManager/Components/VouchCard.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/api/index.d.ts +2 -2
- package/lib/typescript/src/ProfileManager/api/index.d.ts.map +1 -1
- package/lib/typescript/src/ProfileManager/index.d.ts +9 -2
- package/lib/typescript/src/ProfileManager/index.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/api/index.d.ts +2 -3
- package/lib/typescript/src/Wallet/api/index.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ACHAddCard.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/ACHAddCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/AddressManager.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/AddressManager.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/DepositCard.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/DepositCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/FundAccountCard.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/FundAccountCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ManageAccountCard.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/ManageAccountCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ManualACHAdd.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/ManualACHAdd.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/ManualCardAdd.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/ManualCardAdd.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/MyBalance.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/MyBalance.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WalletActionSelector.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/WalletActionSelector.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WalletSettings.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/WalletSettings.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WalletSetup.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/WalletSetup.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/components/WithdrawCard.d.ts +1 -2
- package/lib/typescript/src/Wallet/components/WithdrawCard.d.ts.map +1 -1
- package/lib/typescript/src/Wallet/index.d.ts +1 -2
- package/lib/typescript/src/Wallet/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +3 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/ApiOverrides/index.ts +19 -0
- package/src/Authenticator/Components/AuthStrategyIdentifier.tsx +72 -0
- package/src/Authenticator/Components/StrategyForm.tsx +208 -53
- package/src/Authenticator/api/index.ts +2 -2
- package/src/Authenticator/api/types.d.ts +3 -26
- package/src/Authenticator/index.tsx +10 -4
- package/src/Checkout/api/index.tsx +1 -2
- package/src/Checkout/index.tsx +1 -2
- package/src/Competition/api/index.ts +568 -0
- package/src/Competition/components/AthleteMarketCard.tsx +116 -0
- package/src/Competition/components/CompetitionCard.tsx +82 -0
- package/src/Competition/components/CompetitionInfoCard.tsx +149 -0
- package/src/Competition/components/CompetitionLeaderboard.tsx +183 -0
- package/src/Competition/components/CompetitionPlay.tsx +936 -0
- package/src/Competition/components/CompetitionSeasonCard.tsx +48 -0
- package/src/Competition/components/CompetitionSelector.tsx +91 -0
- package/src/Competition/components/CompetitionTypeCard.tsx +211 -0
- package/src/Competition/components/EnterCompetitionPrompt.tsx +127 -0
- package/src/Competition/components/LeaderPicks.tsx +214 -0
- package/src/Competition/components/ManageSeasonForm.tsx +271 -0
- package/src/Competition/components/MarketsCard.tsx +108 -0
- package/src/Competition/components/MatchMarketCard.tsx +126 -0
- package/src/Competition/components/NavOutPrompt.tsx +87 -0
- package/src/Competition/components/SeasonInfoModal.tsx +212 -0
- package/src/Competition/components/TeamEventCard.tsx +136 -0
- package/src/Competition/components/WagerPickForm.tsx +114 -0
- package/src/Competition/index.tsx +36 -0
- package/src/Components/Icons.tsx +0 -2
- package/src/Components/Jerseys.tsx +268 -0
- package/src/Components/LinearDiagnal.tsx +2 -3
- package/src/Components/Switch.tsx +55 -0
- package/src/Components/index.tsx +5 -1
- package/src/Poll/api/index.ts +212 -0
- package/src/Poll/components/CampaignPlay.tsx +407 -0
- package/src/Poll/components/CampaignProgressBar.tsx +70 -0
- package/src/Poll/components/CampaignResult.tsx +180 -0
- package/src/Poll/components/CampaignSelector.tsx +96 -0
- package/src/Poll/components/PollCampaignCard.tsx +35 -0
- package/src/Poll/components/PollCard.tsx +335 -0
- package/src/Poll/components/PollOptionCard.tsx +110 -0
- package/src/Poll/components/PollSelectCard.tsx +106 -0
- package/src/Poll/components/ResponseTimer.tsx +37 -0
- package/src/Poll/components/WidgetHeader.tsx +46 -0
- package/src/Poll/flashmarket/index.tsx +231 -0
- package/src/Poll/index.tsx +45 -0
- package/src/ProfileManager/Components/BasicInfoManager.tsx +1 -1
- package/src/ProfileManager/Components/BasicStatus.tsx +1 -2
- package/src/ProfileManager/Components/CodeRedeem.tsx +10 -3
- package/src/ProfileManager/Components/DOBManager.tsx +1 -1
- package/src/ProfileManager/Components/EmailManager.tsx +1 -1
- package/src/ProfileManager/Components/PasswordManager.tsx +2 -1
- package/src/ProfileManager/Components/PhoneManager.tsx +1 -1
- package/src/ProfileManager/Components/ProfilePicManager.tsx +1 -1
- package/src/ProfileManager/Components/ProfileWelcome.tsx +1 -2
- package/src/ProfileManager/Components/ProfileWizard.tsx +14 -3
- package/src/ProfileManager/Components/SettingsManager.tsx +2 -2
- package/src/ProfileManager/Components/VouchCard.tsx +1 -2
- package/src/ProfileManager/api/index.ts +2 -2
- package/src/ProfileManager/api/types.d.ts +0 -35
- package/src/ProfileManager/index.tsx +11 -3
- package/src/Wallet/api/index.ts +6 -4
- package/src/Wallet/components/ACHAddCard.tsx +1 -2
- package/src/Wallet/components/AddressManager.tsx +1 -2
- package/src/Wallet/components/DepositCard.tsx +1 -2
- package/src/Wallet/components/FundAccountCard.tsx +1 -2
- package/src/Wallet/components/ManageAccountCard.tsx +1 -2
- package/src/Wallet/components/ManualACHAdd.tsx +1 -2
- package/src/Wallet/components/ManualCardAdd.tsx +1 -2
- package/src/Wallet/components/MyBalance.tsx +1 -2
- package/src/Wallet/components/WalletActionSelector.tsx +1 -2
- package/src/Wallet/components/WalletSettings.tsx +1 -2
- package/src/Wallet/components/WalletSetup.tsx +1 -2
- package/src/Wallet/components/WithdrawCard.tsx +1 -2
- package/src/Wallet/index.tsx +1 -2
- package/src/index.tsx +5 -2
- package/src/types.d.ts +486 -1
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import { ActivityIndicator, View, Image, TouchableOpacity } from "react-native";
|
|
3
|
+
import type { PollCampaignProps, PollOptionProps, PollProps, PollResponseProps, PollSummaryProps } from '../../types';
|
|
4
|
+
import Colors from '../../constants/colors';
|
|
5
|
+
import { Spring, Text, TextInput } from '../../Components';
|
|
6
|
+
import { PollApi, PollCampaignApi, PollResponseApi, PollResponseHelpers } from '../api';
|
|
7
|
+
import { view_styles } from '../../constants/styles';
|
|
8
|
+
import AsyncStorage from '@react-native-async-storage/async-storage';
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
type FlashMarketProps = {
|
|
12
|
+
poll_id:string,
|
|
13
|
+
next_allowed?:boolean,
|
|
14
|
+
player_id?:string,
|
|
15
|
+
onRequestAuthenticate:() => void
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
const MAX_IMAGE_SIZE = 125
|
|
19
|
+
const MAX_OPTION_WIDTH = 200
|
|
20
|
+
|
|
21
|
+
const FlashMarket = ({ poll_id, player_id, onRequestAuthenticate }:FlashMarketProps) => {
|
|
22
|
+
const [ flash_size, setFlashSize ] = useState({ height:0, width:0 });
|
|
23
|
+
const [ data, setData ] = useState<
|
|
24
|
+
{
|
|
25
|
+
loading:boolean,
|
|
26
|
+
poll_campaign?:PollCampaignProps,
|
|
27
|
+
poll?:PollProps,
|
|
28
|
+
poll_options:PollOptionProps[],
|
|
29
|
+
poll_summaries: PollSummaryProps[],
|
|
30
|
+
poll_response?:PollResponseProps,
|
|
31
|
+
show_complete:boolean,
|
|
32
|
+
}
|
|
33
|
+
>({
|
|
34
|
+
loading:false,
|
|
35
|
+
poll_options: [],
|
|
36
|
+
poll_summaries: [],
|
|
37
|
+
show_complete: false
|
|
38
|
+
})
|
|
39
|
+
|
|
40
|
+
const { loading, poll, poll_options, poll_summaries, poll_response } = data;
|
|
41
|
+
|
|
42
|
+
let visible_options = poll_options
|
|
43
|
+
if(poll_response && poll_response.status == 'pending'){ visible_options = poll_options.filter(po => po.poll_option_id == poll_response.poll_option_id) }
|
|
44
|
+
|
|
45
|
+
let image_size = flash_size.width * 0.2
|
|
46
|
+
if(image_size > MAX_IMAGE_SIZE){ image_size = MAX_IMAGE_SIZE }
|
|
47
|
+
let option_width = (flash_size.width * 0.8 / 2) - 25
|
|
48
|
+
if(option_width > MAX_OPTION_WIDTH){ option_width = MAX_OPTION_WIDTH }
|
|
49
|
+
|
|
50
|
+
useEffect(( ) => {
|
|
51
|
+
getDataFromServer(poll_id)
|
|
52
|
+
},[poll_id])
|
|
53
|
+
|
|
54
|
+
const getDataFromServer = async(poll_id:string) => {
|
|
55
|
+
setData({ ...data, loading:true })
|
|
56
|
+
const resp = await PollApi.getPollById(poll_id);
|
|
57
|
+
const pc = await PollCampaignApi.getPollCampaignById(resp.poll.poll_campaign_id)
|
|
58
|
+
let my_response:PollResponseProps | undefined = undefined
|
|
59
|
+
//First if there is a player_id - lets grab from the server first
|
|
60
|
+
if(player_id){
|
|
61
|
+
my_response = await PollResponseApi.getResponseByPollId(poll_id)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
if(!my_response){
|
|
65
|
+
//If no-response - check cache
|
|
66
|
+
let cached_response = await AsyncStorage.getItem(`response:${poll_id}`)
|
|
67
|
+
if(cached_response){
|
|
68
|
+
my_response = JSON.parse(cached_response);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
setData({
|
|
72
|
+
loading:false,
|
|
73
|
+
poll_campaign: pc,
|
|
74
|
+
poll: resp.poll,
|
|
75
|
+
poll_options: resp.poll_options,
|
|
76
|
+
poll_summaries: resp.poll_summaries,
|
|
77
|
+
poll_response: my_response,
|
|
78
|
+
show_complete: my_response && my_response?.status != 'pending' ? true : false
|
|
79
|
+
})
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const handleSelectOption = async(po:PollOptionProps) => {
|
|
83
|
+
if(!poll){ return }
|
|
84
|
+
if(poll_response && poll_response.status != 'pending'){ return setData({ ...data, show_complete: true }) }
|
|
85
|
+
let cached_response = await AsyncStorage.getItem(`response:${poll_id}`)
|
|
86
|
+
if(cached_response){
|
|
87
|
+
if(JSON.parse(cached_response).poll_option_id == po.poll_option_id){
|
|
88
|
+
await AsyncStorage.removeItem(`response:${poll_id}`)
|
|
89
|
+
return setData({ ...data, poll_response: undefined })
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
let stake = poll_response?.stake ?? poll.minimum_stake
|
|
93
|
+
let draft_response:PollResponseProps = {
|
|
94
|
+
poll_id:poll.poll_id,
|
|
95
|
+
poll_option_id:po.poll_option_id,
|
|
96
|
+
stake: stake,
|
|
97
|
+
market_type: 'FREE',
|
|
98
|
+
poll_response_id: '',
|
|
99
|
+
player_id: '',
|
|
100
|
+
winnings: 0,
|
|
101
|
+
response_body: {},
|
|
102
|
+
status: 'pending',
|
|
103
|
+
create_datetime: '',
|
|
104
|
+
last_update_datetime: ''
|
|
105
|
+
}
|
|
106
|
+
await AsyncStorage.setItem(`response:${poll_id}`, JSON.stringify(draft_response))
|
|
107
|
+
|
|
108
|
+
setData({
|
|
109
|
+
...data,
|
|
110
|
+
poll_response: draft_response
|
|
111
|
+
})
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const handleSubmit = async() => {
|
|
115
|
+
if(!poll_response){ return }
|
|
116
|
+
if(poll_response.status != 'pending'){ return }
|
|
117
|
+
if(!player_id){ return onRequestAuthenticate() }
|
|
118
|
+
let stake_number = parseFloat(poll_response.stake as string)
|
|
119
|
+
if(isNaN(stake_number)){ return }
|
|
120
|
+
const new_resp = await PollResponseApi.createPollResponse({ ...poll_response, stake: stake_number })
|
|
121
|
+
const updated_ps = PollResponseHelpers.updateSummariesWithResponse(new_resp, poll_summaries)
|
|
122
|
+
setData({
|
|
123
|
+
...data,
|
|
124
|
+
poll_response: new_resp,
|
|
125
|
+
poll_summaries: updated_ps,
|
|
126
|
+
show_complete: true
|
|
127
|
+
})
|
|
128
|
+
await AsyncStorage.removeItem(`response:${poll_id}`)
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
//const selected_option = poll_options.find(po => po.poll_option_id == poll_response?.poll_option_id)
|
|
133
|
+
//const selected_summary = poll_summaries.find(ps => ps.poll_option_id == poll_response?.poll_option_id)
|
|
134
|
+
//const correct_option = poll_options.find(po => po.result_ind == 'win');
|
|
135
|
+
//const correct_summary = poll_summaries.find(ps => ps.poll_option_id == correct_option?.poll_option_id);
|
|
136
|
+
|
|
137
|
+
const renderPollOptions = (data:{item:PollOptionProps, show_summary?:boolean, index:number}) => {
|
|
138
|
+
const selected = data.item.poll_option_id == poll_response?.poll_option_id ? true : false
|
|
139
|
+
const poll_summary = poll_summaries.find(ps => ps.poll_option_id == data.item.poll_option_id);
|
|
140
|
+
const color = PollResponseHelpers.getOptionColor(data.item, poll_response)
|
|
141
|
+
return (
|
|
142
|
+
<View>
|
|
143
|
+
|
|
144
|
+
<TouchableOpacity
|
|
145
|
+
//disabled={poll_response && poll_response.status != 'pending' ? true : false}
|
|
146
|
+
style={{ flexDirection:'row', width:option_width, alignItems:'center', margin:5, borderRadius:22, padding:10, borderWidth:selected?1:0, borderColor:Colors.brand.midnight, backgroundColor:color, ...view_styles.float }}
|
|
147
|
+
onPress={() => handleSelectOption(data.item)}>
|
|
148
|
+
{data.show_summary && poll_summary ?
|
|
149
|
+
<View style={{ position:'absolute', top:0, left:0, bottom:0, borderRadius:22, backgroundColor:color, opacity:0.6, width: option_width * poll_summary.pct }}/>
|
|
150
|
+
:<></>}
|
|
151
|
+
<Text style={{ flex:1 }} size={14} color={Colors.brand.midnight} weight={'bold'} textAlign={data.show_summary?'left':'center'}>{data.item.option_name}</Text>
|
|
152
|
+
{data.show_summary && poll_summary ?
|
|
153
|
+
<Text style={{ marginLeft:10, padding:5, borderRadius:selected?100:0, backgroundColor:selected?Colors.shades.white:undefined, ...view_styles.float }} size={12} color={Colors.brand.midnight} weight='bold' >{(poll_summary.pct*100).toFixed()}%</Text>
|
|
154
|
+
:<></>}
|
|
155
|
+
</TouchableOpacity>
|
|
156
|
+
</View>
|
|
157
|
+
)
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
if(loading || !poll){
|
|
161
|
+
return (
|
|
162
|
+
<View>
|
|
163
|
+
<ActivityIndicator size={'large'} color={Colors.brand.midnight}/>
|
|
164
|
+
</View>
|
|
165
|
+
)
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
return (
|
|
169
|
+
<View style={{ flex:1 }}>
|
|
170
|
+
<View style={{ backgroundColor:Colors.shades.white, flexDirection:'row' }} onLayout={(ev) => {
|
|
171
|
+
const { height, width } = ev.nativeEvent.layout;
|
|
172
|
+
setFlashSize({ height, width })
|
|
173
|
+
}}>
|
|
174
|
+
{!poll_response || poll_response.status != 'pending' ?
|
|
175
|
+
<View style={{ padding:10 }}>
|
|
176
|
+
<Image
|
|
177
|
+
source={{ uri: poll.poll_image?.url ?? 'https://res.cloudinary.com/hoabts6mc/image/upload/v1718979933/question_mark_ro0ac5.webp' }}
|
|
178
|
+
style={{ height:image_size, width:image_size }}
|
|
179
|
+
resizeMode='cover'
|
|
180
|
+
/>
|
|
181
|
+
</View>
|
|
182
|
+
:<></>}
|
|
183
|
+
<View style={{ flex:1 }} nativeID='question'>
|
|
184
|
+
<View style={{ padding:10, borderBottomWidth:1, borderBottomColor:Colors.shades.shade600 }}>
|
|
185
|
+
<Text size={16} color={Colors.brand.midnight} weight='bold'>{poll.poll_question}</Text>
|
|
186
|
+
</View>
|
|
187
|
+
<View nativeID='poll_options' style={{ flex:1, padding:5, flexDirection:'row', flexWrap:'wrap', justifyContent:'center', alignItems:'center'}}>
|
|
188
|
+
{visible_options.sort((a,b) => a.priority - b.priority).map((po, i) => {
|
|
189
|
+
return renderPollOptions({ item:po, index:i, show_summary:poll_response && poll_response.status != 'pending' ? true : false })
|
|
190
|
+
})}
|
|
191
|
+
</View>
|
|
192
|
+
</View>
|
|
193
|
+
{poll_response?.status == 'pending' ?
|
|
194
|
+
<Spring
|
|
195
|
+
slide='horizontal'
|
|
196
|
+
to={0}
|
|
197
|
+
from={100}
|
|
198
|
+
>
|
|
199
|
+
<View style={{justifyContent:'space-between', backgroundColor:Colors.shades.shade600 }}>
|
|
200
|
+
<View style={{ padding:10, borderBottomWidth:1, borderBottomColor:Colors.shades.shade100 }}>
|
|
201
|
+
<Text size={16} color={Colors.brand.midnight} textAlign='center' weight='bold'>{poll.confidence_allowed ? 'HOW MUCH?': 'ARE YOU SURE?'}</Text>
|
|
202
|
+
</View>
|
|
203
|
+
{poll.confidence_allowed ?
|
|
204
|
+
<View style={{ flex:1, padding:5 }}>
|
|
205
|
+
<View style={{flexDirection:'row', backgroundColor:Colors.shades.white, borderRadius:22 }}>
|
|
206
|
+
<Text style={{ padding:10 }}>{poll.market_type == 'FOR_MONEY' ? '$' : 'E'}</Text>
|
|
207
|
+
<TextInput
|
|
208
|
+
style={{ padding:10, borderWidth:0, borderTopLeftRadius:0, borderBottomLeftRadius:0, backgroundColor:'transparent', width: flash_size.width * 0.22,}}
|
|
209
|
+
autoFocus
|
|
210
|
+
value={poll_response.stake as string}
|
|
211
|
+
onChangeText={(text) => setData({
|
|
212
|
+
...data,
|
|
213
|
+
poll_response: { ...poll_response, stake:text }
|
|
214
|
+
})}
|
|
215
|
+
/>
|
|
216
|
+
</View>
|
|
217
|
+
</View>
|
|
218
|
+
:<View style={{flex:1}} />}
|
|
219
|
+
<TouchableOpacity style={{ marginTop:10, backgroundColor:Colors.utility.success, padding:10, paddingLeft:20, paddingRight:20, justifyContent:'center', alignItems:'center' }}
|
|
220
|
+
onPress={() => handleSubmit()}>
|
|
221
|
+
<Text weight='bold' size={14} color={Colors.shades.white}>SUBMIT</Text>
|
|
222
|
+
</TouchableOpacity>
|
|
223
|
+
</View>
|
|
224
|
+
</Spring>
|
|
225
|
+
:<></>}
|
|
226
|
+
</View>
|
|
227
|
+
</View>
|
|
228
|
+
)
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export default FlashMarket
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import CampaignPlay from "./components/CampaignPlay"
|
|
3
|
+
import { PollCampaignApi } from './api';
|
|
4
|
+
import FlashMarket from './flashmarket';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
type PollCampaignModuleProps = {
|
|
8
|
+
poll_campaign_id?:string,
|
|
9
|
+
poll_id?:string,
|
|
10
|
+
player_id?:string,
|
|
11
|
+
height?:number,
|
|
12
|
+
width?:number,
|
|
13
|
+
type: 'campaign' | 'poll',
|
|
14
|
+
onRequestAuthenticate: () => void
|
|
15
|
+
}
|
|
16
|
+
const PollCampaign = ({ poll_campaign_id, poll_id, type, player_id, onRequestAuthenticate }: PollCampaignModuleProps ) => {
|
|
17
|
+
const [ loaded, setLoaded ] = useState(false);
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
PollCampaignApi.setEnvironment();
|
|
20
|
+
setLoaded(true)
|
|
21
|
+
},[])
|
|
22
|
+
if(!loaded){ return <></> }
|
|
23
|
+
if(type == 'campaign' && poll_campaign_id){
|
|
24
|
+
return (
|
|
25
|
+
<CampaignPlay
|
|
26
|
+
onRequestAuthenticate={() => console.log('')}
|
|
27
|
+
poll_campaign_id={poll_campaign_id}
|
|
28
|
+
onFinished={() => console.log('finished!!')}
|
|
29
|
+
/>
|
|
30
|
+
)
|
|
31
|
+
}
|
|
32
|
+
if(type == 'poll' && poll_id){
|
|
33
|
+
return (
|
|
34
|
+
<FlashMarket
|
|
35
|
+
poll_id={poll_id}
|
|
36
|
+
player_id={player_id}
|
|
37
|
+
onRequestAuthenticate={onRequestAuthenticate}
|
|
38
|
+
/>
|
|
39
|
+
)
|
|
40
|
+
}
|
|
41
|
+
return <></>
|
|
42
|
+
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export default PollCampaign
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import { View, ActivityIndicator, TouchableOpacity, ScrollView } from 'react-native';
|
|
3
3
|
import { Button, Icons, Text, TextInput } from '../../Components';
|
|
4
|
-
import type { MyPlayerProps } from '../api/types';
|
|
5
4
|
import Colors from '../../constants/colors';
|
|
6
5
|
import { ProfileApi } from '../api';
|
|
7
6
|
import { button_styles } from '../../constants/styles';
|
|
7
|
+
import type { MyPlayerProps } from '../../types';
|
|
8
8
|
|
|
9
9
|
type BasicInfoManagerProps = {
|
|
10
10
|
player:MyPlayerProps,
|
|
@@ -2,9 +2,8 @@ import React from 'react';
|
|
|
2
2
|
import { View, Image, ScrollView } from 'react-native';
|
|
3
3
|
import { Button, Icons, Text } from '../../Components';
|
|
4
4
|
import Colors from '../../constants/colors';
|
|
5
|
-
import type { CodeRequestProps, PlayerReferralProps, PromoProps, PublicPlayerProps } from '../../types';
|
|
5
|
+
import type { CodeRequestProps, MyPlayerProps, PlayerReferralProps, PromoProps, PublicPlayerProps } from '../../types';
|
|
6
6
|
import { view_styles } from '../../constants/styles';
|
|
7
|
-
import type { MyPlayerProps } from '../api/types';
|
|
8
7
|
|
|
9
8
|
type BasicStatusProps = {
|
|
10
9
|
player:MyPlayerProps,
|
|
@@ -3,17 +3,23 @@ import { ActivityIndicator, View, Image } from 'react-native';
|
|
|
3
3
|
import { Button, Icons, Text, TextInput } from '../../Components';
|
|
4
4
|
import Colors from '../../constants/colors';
|
|
5
5
|
import { ProfileApi, ProfileHelpers } from '../api';
|
|
6
|
-
import type { CodeRequestProps, PlayerReferralProps, PromoProps, PublicPlayerProps, RewardOptionProps } from '../../types';
|
|
7
|
-
import type { MyPlayerProps } from '../api/types';
|
|
6
|
+
import type { CodeRequestProps, MyPlayerProps, PlayerReferralProps, PromoProps, PublicPlayerProps, RewardOptionProps } from '../../types';
|
|
8
7
|
|
|
9
8
|
type CodeRedeemProps = {
|
|
10
9
|
player:MyPlayerProps,
|
|
11
10
|
walkthrough?:boolean,
|
|
12
11
|
onVerify:() => void,
|
|
12
|
+
onRedeemCode:(code_details:{
|
|
13
|
+
code_request?:CodeRequestProps,
|
|
14
|
+
promo?:PromoProps,
|
|
15
|
+
player_referral?:PlayerReferralProps,
|
|
16
|
+
reward_option?:RewardOptionProps,
|
|
17
|
+
referrer?:PublicPlayerProps
|
|
18
|
+
}) => void,
|
|
13
19
|
onClose:() => void
|
|
14
20
|
}
|
|
15
21
|
|
|
16
|
-
const CodeRedeem = ({ walkthrough, onVerify, onClose }:CodeRedeemProps) => {
|
|
22
|
+
const CodeRedeem = ({ walkthrough, onVerify, onClose, onRedeemCode }:CodeRedeemProps) => {
|
|
17
23
|
const [ loading, setLoading ] = useState(false);
|
|
18
24
|
const [ show_reward, setShowReward ] = useState(false);
|
|
19
25
|
const [ action_loading, setActionLoading ] = useState(false);
|
|
@@ -58,6 +64,7 @@ const CodeRedeem = ({ walkthrough, onVerify, onClose }:CodeRedeemProps) => {
|
|
|
58
64
|
setShowReward(true);
|
|
59
65
|
setTimeout(() => {
|
|
60
66
|
setData({ ...request_response })
|
|
67
|
+
onRedeemCode(request_response)
|
|
61
68
|
setActionLoading(false);
|
|
62
69
|
}, 2000);
|
|
63
70
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import type { MyPlayerProps } from '../api/types';
|
|
3
2
|
import moment from 'moment-mini';
|
|
4
3
|
import { View, ActivityIndicator, TouchableOpacity } from 'react-native';
|
|
5
4
|
import { Button, Icons, Text, TextInput } from '../../Components';
|
|
6
5
|
import Colors from '../../constants/colors';
|
|
7
6
|
import { ProfileApi } from '../api';
|
|
8
7
|
import { button_styles } from '../../constants/styles';
|
|
8
|
+
import type { MyPlayerProps } from '../../types';
|
|
9
9
|
|
|
10
10
|
type DOBManagerProps = {
|
|
11
11
|
player:MyPlayerProps,
|
|
@@ -3,9 +3,9 @@ import React, { useEffect, useState } from 'react';
|
|
|
3
3
|
import { View, ActivityIndicator, TouchableOpacity } from 'react-native';
|
|
4
4
|
import { Button, Icons, Text, TextInput } from '../../Components';
|
|
5
5
|
import Colors from '../../constants/colors';
|
|
6
|
-
import type { MyPlayerProps } from '../api/types';
|
|
7
6
|
import { button_styles, view_styles } from '../../constants/styles';
|
|
8
7
|
import { ProfileApi, ProfileHelpers } from '../api';
|
|
8
|
+
import type { MyPlayerProps } from '../../types';
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
type EmailManagerProps = {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import { View, FlatList, TouchableOpacity } from 'react-native';
|
|
3
3
|
import { Button, Icons, Text, TextInput } from '../../Components';
|
|
4
|
-
import type {
|
|
4
|
+
import type { PasswordStateProps } from '../api/types';
|
|
5
5
|
import Colors from '../../constants/colors';
|
|
6
6
|
import { ProfileApi, ProfileHelpers } from '../api';
|
|
7
7
|
import { button_styles } from '../../constants/styles';
|
|
8
|
+
import type { MyPlayerProps } from '../../types';
|
|
8
9
|
|
|
9
10
|
type PasswordManagerProps = {
|
|
10
11
|
player:MyPlayerProps,
|
|
@@ -3,9 +3,9 @@ import React, { useEffect, useState } from 'react';
|
|
|
3
3
|
import { View, ActivityIndicator, TouchableOpacity } from 'react-native';
|
|
4
4
|
import { Button, Icons, Text, TextInput } from '../../Components';
|
|
5
5
|
import Colors from '../../constants/colors';
|
|
6
|
-
import type { MyPlayerProps } from '../api/types';
|
|
7
6
|
import { button_styles, view_styles } from '../../constants/styles';
|
|
8
7
|
import { ProfileApi, ProfileHelpers } from '../api';
|
|
8
|
+
import type { MyPlayerProps } from '../../types';
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
type PhoneManagerProps = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { Image, View, ScrollView, TouchableOpacity } from "react-native"
|
|
3
|
-
import type { MyPlayerProps } from "../api/types"
|
|
4
3
|
import { Button, Icons, Text } from '../../Components';
|
|
5
4
|
import ImageUploader from '../../Components/ImageUploader';
|
|
6
5
|
import Colors from '../../constants/colors';
|
|
7
6
|
import { ProfileApi } from '../api';
|
|
8
7
|
import { button_styles } from '../../constants/styles';
|
|
8
|
+
import type { MyPlayerProps } from '../../types';
|
|
9
9
|
|
|
10
10
|
type ProfilePicManagerProps = {
|
|
11
11
|
player:MyPlayerProps,
|
|
@@ -3,9 +3,8 @@ import { View, Image, ScrollView } from 'react-native';
|
|
|
3
3
|
import Colors from '../../constants/colors';
|
|
4
4
|
import { Button, Icons, Text } from '../../Components';
|
|
5
5
|
import { ProfileHelpers } from '../api';
|
|
6
|
-
import type { CodeRequestProps, PlayerReferralProps, PromoProps, PublicPlayerProps } from '../../types';
|
|
6
|
+
import type { CodeRequestProps, MyPlayerProps, PlayerReferralProps, PromoProps, PublicPlayerProps } from '../../types';
|
|
7
7
|
import { view_styles } from '../../constants/styles';
|
|
8
|
-
import type { MyPlayerProps } from '../api/types';
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
type ProfileWelcomeProps = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import { View, FlatList, TouchableOpacity, Image, Linking } from 'react-native';
|
|
3
|
-
import type {
|
|
3
|
+
import type { ProfileLevelProps, ProfileStepProps, SettingProps } from "../api/types"
|
|
4
4
|
import { Button, Icons, Text } from '../../Components';
|
|
5
5
|
import Colors from '../../constants/colors';
|
|
6
6
|
import BasicInfoManager from './BasicInfoManager';
|
|
@@ -13,7 +13,7 @@ import VouchCard from './VouchCard';
|
|
|
13
13
|
import ProfilePicManager from './ProfilePicManager';
|
|
14
14
|
import ProfileWelcome from './ProfileWelcome';
|
|
15
15
|
import CodeRedeem from './CodeRedeem';
|
|
16
|
-
import type { CodeRequestProps, PlayerReferralProps, PlayerSettingProps, PromoProps, PublicPlayerProps } from '../../types';
|
|
16
|
+
import type { CodeRequestProps, MyPlayerProps, PlayerReferralProps, PlayerSettingProps, PromoProps, PublicPlayerProps, RewardOptionProps } from '../../types';
|
|
17
17
|
import SettingsManager from './SettingsManager';
|
|
18
18
|
import { ProfileApi } from '../api';
|
|
19
19
|
import { view_styles } from '../../constants/styles';
|
|
@@ -32,6 +32,13 @@ type ProfileWizardProps = {
|
|
|
32
32
|
init_walkthrough?:{
|
|
33
33
|
level: 'basic'|'verify'
|
|
34
34
|
},
|
|
35
|
+
onRedeemCode:(code_details:{
|
|
36
|
+
code_request?:CodeRequestProps,
|
|
37
|
+
promo?:PromoProps,
|
|
38
|
+
player_referral?:PlayerReferralProps,
|
|
39
|
+
reward_option?:RewardOptionProps,
|
|
40
|
+
referrer?:PublicPlayerProps
|
|
41
|
+
}) => void,
|
|
35
42
|
profile_attribute?:'basic'|'phone'|'email'|'dob'|'password'|'vouch'|'notification'|'preferences',
|
|
36
43
|
onClose:() => void,
|
|
37
44
|
onNextStep:(step:string) => void,
|
|
@@ -42,7 +49,7 @@ type ProfileWizardProps = {
|
|
|
42
49
|
}
|
|
43
50
|
// { num:5, check: 'code', label: 'Promo', description: `Lets get you started with some promo bucks!`, complete:false },
|
|
44
51
|
|
|
45
|
-
const ProfileWizard = ({ player, hide_powered_by, settings, player_settings, init_walkthrough, show_welcome, onVouching, onNextStep, profile_attribute, width, hidden_groups, hidden_levels, hidden_steps, onUpdatePlayerSetting, onPlayerUpdate, onSelectLevel, onClose, onLogout }:ProfileWizardProps) => {
|
|
52
|
+
const ProfileWizard = ({ player, hide_powered_by, settings, player_settings, onRedeemCode, init_walkthrough, show_welcome, onVouching, onNextStep, profile_attribute, width, hidden_groups, hidden_levels, hidden_steps, onUpdatePlayerSetting, onPlayerUpdate, onSelectLevel, onClose, onLogout }:ProfileWizardProps) => {
|
|
46
53
|
const [ draft_player, setDraftPlayer ] = useState(player);
|
|
47
54
|
const [ show_code_request, setShowCodeRequest ] = useState(false);
|
|
48
55
|
const [ welcome_hidden, setWelcomeHidden ] = useState(false);
|
|
@@ -395,6 +402,10 @@ const ProfileWizard = ({ player, hide_powered_by, settings, player_settings, in
|
|
|
395
402
|
walkthrough={false}
|
|
396
403
|
player={draft_player}
|
|
397
404
|
onClose={() => setShowCodeRequest(false)}
|
|
405
|
+
onRedeemCode={(cd) => {
|
|
406
|
+
setCodeDetails(cd)
|
|
407
|
+
onRedeemCode(cd)
|
|
408
|
+
}}
|
|
398
409
|
onVerify={() => {
|
|
399
410
|
let verify_level = groups[0]?.profile_levels[1]
|
|
400
411
|
if(!verify_level){ return }
|
|
@@ -2,8 +2,8 @@ import React, { useState } from 'react';
|
|
|
2
2
|
import { ScrollView, View, FlatList, StyleSheet, TouchableOpacity } from 'react-native';
|
|
3
3
|
import { Button, Icons, Text, TextInput } from '../../Components';
|
|
4
4
|
import Colors from '../../constants/colors';
|
|
5
|
-
import type {
|
|
6
|
-
import type { PlayerSettingProps } from '../../types';
|
|
5
|
+
import type { SettingProps } from '../api/types';
|
|
6
|
+
import type { MyPlayerProps, PlayerSettingProps } from '../../types';
|
|
7
7
|
import { ProfileApi } from '../api';
|
|
8
8
|
|
|
9
9
|
type SettingsManagerProps = {
|
|
@@ -4,9 +4,8 @@ import { Button, Icons, Text } from '../../Components';
|
|
|
4
4
|
import Colors from '../../constants/colors';
|
|
5
5
|
import { ProfileApi, ProfileHelpers } from '../api';
|
|
6
6
|
import moment from 'moment-mini';
|
|
7
|
-
import type { CodeRequestProps, PlayerReferralProps, PromoProps, PublicPlayerProps } from '../../types';
|
|
7
|
+
import type { CodeRequestProps, MyPlayerProps, PlayerReferralProps, PromoProps, PublicPlayerProps } from '../../types';
|
|
8
8
|
import { view_styles } from '../../constants/styles';
|
|
9
|
-
import type { MyPlayerProps } from '../api/types';
|
|
10
9
|
|
|
11
10
|
type VouchCardProps = {
|
|
12
11
|
player:MyPlayerProps,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PasswordStateProps, SettingProps } from './types';
|
|
3
3
|
import { APIOverrides } from '../../ApiOverrides';
|
|
4
|
-
import type { CodeRequestProps, PlayerReferralProps, PlayerSettingProps, PromoProps, PublicPlayerProps, RewardOptionProps } from '../../types';
|
|
4
|
+
import type { CodeRequestProps, MyPlayerProps, PlayerBalanceProps, PlayerReferralProps, PlayerSettingProps, PromoProps, PublicPlayerProps, RewardOptionProps } from '../../types';
|
|
5
5
|
|
|
6
6
|
let AUTH_SVC_API = '';
|
|
7
7
|
let VOUCH_ID = '';
|
|
@@ -37,38 +37,3 @@ export interface SettingProps {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
export interface PlayerBalanceProps {
|
|
41
|
-
player_balance_id:string,
|
|
42
|
-
player_id:string,
|
|
43
|
-
free_market_balance:number,
|
|
44
|
-
balance:number,
|
|
45
|
-
promo_balance:number,
|
|
46
|
-
create_datetime:any,
|
|
47
|
-
last_udpate_datetime:any
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
export interface MyPlayerProps {
|
|
52
|
-
player_id:string,
|
|
53
|
-
profile_pic:string,
|
|
54
|
-
username:string,
|
|
55
|
-
first_name:string,
|
|
56
|
-
last_name:string,
|
|
57
|
-
email:string,
|
|
58
|
-
type:'premium'|'freemium',
|
|
59
|
-
anonymous:boolean,
|
|
60
|
-
role:'player'|'admin',
|
|
61
|
-
guide_me?:boolean,
|
|
62
|
-
dob?:string,
|
|
63
|
-
auto_generated:boolean,
|
|
64
|
-
no_password:boolean,
|
|
65
|
-
open_to_challenges:boolean,
|
|
66
|
-
verified:boolean, //Email verification
|
|
67
|
-
phone:string,
|
|
68
|
-
phone_verified:boolean,
|
|
69
|
-
vouched_status: 'verified'|'unverified'|'failed',
|
|
70
|
-
bio?:string,
|
|
71
|
-
terms_agreed_on?:any,
|
|
72
|
-
create_datetime:any,
|
|
73
|
-
last_update_datetime:any
|
|
74
|
-
}
|
|
@@ -4,8 +4,8 @@ import Colors from '../constants/colors';
|
|
|
4
4
|
import { Text } from '../Components';
|
|
5
5
|
import ProfileWizard from './Components/ProfileWizard';
|
|
6
6
|
import { ProfileApi } from './api';
|
|
7
|
-
import type {
|
|
8
|
-
import type { PlayerSettingProps } from '../types';
|
|
7
|
+
import type { SettingProps } from './api/types';
|
|
8
|
+
import type { CodeRequestProps, MyPlayerProps, PlayerBalanceProps, PlayerReferralProps, PlayerSettingProps, PromoProps, PublicPlayerProps, RewardOptionProps } from '../types';
|
|
9
9
|
|
|
10
10
|
type ProfileOverviewProps = {
|
|
11
11
|
width:number,
|
|
@@ -20,6 +20,13 @@ type ProfileOverviewProps = {
|
|
|
20
20
|
onClose:() => void,
|
|
21
21
|
onVouchStart?:() => void,
|
|
22
22
|
onLogout:() => void,
|
|
23
|
+
onRedeemCode:(code_details:{
|
|
24
|
+
code_request?:CodeRequestProps,
|
|
25
|
+
promo?:PromoProps,
|
|
26
|
+
player_referral?:PlayerReferralProps,
|
|
27
|
+
reward_option?:RewardOptionProps,
|
|
28
|
+
referrer?:PublicPlayerProps
|
|
29
|
+
}) => void,
|
|
23
30
|
onNextStep?:(step:string) => void,
|
|
24
31
|
onPlayerUpdate?:(p:MyPlayerProps, attribute?:string) => void,
|
|
25
32
|
profile_attribute?:'basic'|'phone'|'email'|'dob'|'password'|'vouch'|'notification'|'preferences',
|
|
@@ -28,7 +35,7 @@ type ProfileOverviewProps = {
|
|
|
28
35
|
}
|
|
29
36
|
}
|
|
30
37
|
|
|
31
|
-
const ProfileManager = ({ profile_attribute, hide_profile_header, player, hide_powered_by, onPlayerUpdate, onNextStep, onVouchStart, show_welcome, hidden_groups, hidden_steps, hidden_levels, walkthrough, width, onClose, onLogout }: ProfileOverviewProps ) => {
|
|
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, width, onClose, onLogout }: ProfileOverviewProps ) => {
|
|
32
39
|
const [ loading, setLoading ] = useState(false);
|
|
33
40
|
const [ vouching, setVouching ] = useState(false);
|
|
34
41
|
const [ draft_player, setDraftPlayer ] = useState<MyPlayerProps>();
|
|
@@ -113,6 +120,7 @@ const ProfileManager = ({ profile_attribute, hide_profile_header, player, hide_p
|
|
|
113
120
|
if(active && onVouchStart){ onVouchStart() }
|
|
114
121
|
setVouching(active)
|
|
115
122
|
}}
|
|
123
|
+
onRedeemCode={onRedeemCode}
|
|
116
124
|
settings={settings}
|
|
117
125
|
show_welcome={show_welcome}
|
|
118
126
|
hide_powered_by={hide_powered_by}
|
package/src/Wallet/api/index.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
2
|
import { APIOverrides } from '../../ApiOverrides';
|
|
3
|
-
import type { ACHDetailProps, AccountActionProps, AccountLimitProps, AccountProps, AccountSnoozeProps, CardDetailProps, CodeRequestProps, ItemOrderProps, ItemProps, PlayerAddressProps, PlayerDepositLimitProps, PlayerReferralProps, PlayerWithdrawLimitProps, PromoProps, PublicPlayerProps, RewardOptionProps, TransactionDetailProps, TransactionProps, WalletSettingsProps } from '../../types';
|
|
4
|
-
import type { MyPlayerProps, PlayerBalanceProps } from '../../ProfileManager/api/types';
|
|
3
|
+
import type { ACHDetailProps, AccountActionProps, AccountLimitProps, AccountProps, AccountSnoozeProps, CardDetailProps, CodeRequestProps, ItemOrderProps, ItemProps, MyPlayerProps, PlayerAddressProps, PlayerBalanceProps, PlayerDepositLimitProps, PlayerReferralProps, PlayerWithdrawLimitProps, PromoProps, PublicPlayerProps, RewardOptionProps, TransactionDetailProps, TransactionProps, WalletSettingsProps } from '../../types';
|
|
5
4
|
import moment from 'moment-mini';
|
|
6
5
|
import Colors from '../../constants/colors';
|
|
7
6
|
|
|
@@ -157,9 +156,12 @@ const ItemOrderApi = {
|
|
|
157
156
|
}
|
|
158
157
|
|
|
159
158
|
const ItemOrderHelpers = {
|
|
160
|
-
genDepositOrder : (item:ItemProps, account
|
|
159
|
+
genDepositOrder : (item:ItemProps, account?:AccountProps):ItemOrderProps => {
|
|
161
160
|
let amount = 25
|
|
162
|
-
let fee =
|
|
161
|
+
let fee = 0
|
|
162
|
+
if(account){
|
|
163
|
+
fee = account.transaction_fee * amount
|
|
164
|
+
}
|
|
163
165
|
let total_amount = amount + fee
|
|
164
166
|
return {
|
|
165
167
|
items: [{
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View, TouchableOpacity, Image, ScrollView } from 'react-native';
|
|
3
|
-
import type { MyPlayerProps } from '../../
|
|
4
|
-
import type { AccountProps } from '../../types';
|
|
3
|
+
import type { AccountProps, MyPlayerProps } from '../../types';
|
|
5
4
|
import { Button, Icons, Text } from '../../Components';
|
|
6
5
|
import Colors from '../../constants/colors';
|
|
7
6
|
import { button_styles } from '../../constants/styles';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { FlatList, TouchableOpacity, View, ScrollView } from 'react-native';
|
|
3
|
-
import type { LocationProps, PlayerAddressProps } from '../../types';
|
|
4
|
-
import type { MyPlayerProps } from '../../ProfileManager/api/types';
|
|
3
|
+
import type { LocationProps, MyPlayerProps, PlayerAddressProps } from '../../types';
|
|
5
4
|
import { WalletApi, WalletHelpers } from '../api';
|
|
6
5
|
import AddressCard from './AddressCard';
|
|
7
6
|
import { Button, Text, TextInput } from '../../Components';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useState } from 'react';
|
|
2
2
|
import { View, ActivityIndicator, Image, ScrollView } from "react-native";
|
|
3
|
-
import type { MyPlayerProps } from '../../
|
|
4
|
-
import type { AccountProps, AccountSnoozeProps, CodeRequestProps, ItemOrderProps, PlayerDepositLimitProps, PlayerReferralProps, PromoProps, PublicPlayerProps, RewardOptionProps, WalletSettingsProps } from '../../types';
|
|
3
|
+
import type { AccountProps, AccountSnoozeProps, CodeRequestProps, ItemOrderProps, MyPlayerProps, PlayerDepositLimitProps, PlayerReferralProps, PromoProps, PublicPlayerProps, RewardOptionProps, WalletSettingsProps } from '../../types';
|
|
5
4
|
import { ItemOrderApi, ItemOrderHelpers, WalletApi } from '../api';
|
|
6
5
|
import Colors from '../../constants/colors';
|
|
7
6
|
import { Button, Icons, Text, TextInput } from '../../Components';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { View, TouchableOpacity, Image, ScrollView } from 'react-native';
|
|
3
|
-
import type { MyPlayerProps } from '../../
|
|
4
|
-
import type { AccountProps, CodeRequestProps, PlayerReferralProps, PromoProps, PublicPlayerProps, RewardOptionProps } from '../../types';
|
|
3
|
+
import type { AccountProps, CodeRequestProps, MyPlayerProps, PlayerReferralProps, PromoProps, PublicPlayerProps, RewardOptionProps } from '../../types';
|
|
5
4
|
import { Button, Icons, Text } from '../../Components';
|
|
6
5
|
import Colors from '../../constants/colors';
|
|
7
6
|
import { button_styles, view_styles } from '../../constants/styles';
|