@opexa/portal-components 0.0.107 → 0.0.109
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/dist/client/hooks/useAuthenticateMutation.js +2 -1
- package/dist/client/hooks/useCheckInDailyCheckInQuestMutation.d.ts +1 -1
- package/dist/client/hooks/useCheckInDailyCheckInQuestMutation.js +20 -2
- package/dist/client/hooks/useClaimCashbackBonusMutation.js +2 -1
- package/dist/client/hooks/useClaimSpotBonusMutation.js +2 -1
- package/dist/client/hooks/useCompleteOnboardingMutation.d.ts +3 -0
- package/dist/client/hooks/useCompleteOnboardingMutation.js +25 -0
- package/dist/client/hooks/useCreateGCashDepositMutation.js +20 -1
- package/dist/client/hooks/useCreateGCashWithdrawalMutation.js +1 -1
- package/dist/client/hooks/useCreateGameSessionMutation.js +1 -1
- package/dist/client/hooks/useCreateInstapayWithdrawalMutation.js +1 -1
- package/dist/client/hooks/useCreateMayaAppDepositMutation.js +20 -1
- package/dist/client/hooks/useCreateMayaAppWithdrawalMutation.js +1 -1
- package/dist/client/hooks/useCreateMayaDepositMutation.js +20 -1
- package/dist/client/hooks/useCreateMayaWithdrawalMutation.js +1 -1
- package/dist/client/hooks/useCreateMemberVerificationMutation.d.ts +4 -0
- package/dist/client/hooks/useCreateMemberVerificationMutation.js +45 -0
- package/dist/client/hooks/useCreateOnlineBankDepositMutation.js +20 -1
- package/dist/client/hooks/useCreateQRPHDepositMutation.js +20 -1
- package/dist/client/hooks/useEndGameSessionMutation.js +1 -1
- package/dist/client/hooks/useFileQuery.d.ts +2 -0
- package/dist/client/hooks/useFileQuery.js +30 -0
- package/dist/client/hooks/useMarkGameAsFavoriteMutation.js +24 -5
- package/dist/client/hooks/useMarkMessageAsReadMutation.js +16 -7
- package/dist/client/hooks/useOnboardingStatusQuery.d.ts +2 -0
- package/dist/client/hooks/useOnboardingStatusQuery.js +28 -0
- package/dist/client/hooks/useRecommendedGamesQuery.d.ts +2 -0
- package/dist/client/hooks/useRecommendedGamesQuery.js +27 -0
- package/dist/client/hooks/useRemainingTime.d.ts +12 -1
- package/dist/client/hooks/useRemainingTime.js +37 -6
- package/dist/client/hooks/useSendVerificationCodeMutation.js +1 -1
- package/dist/client/hooks/useSignInMutation.js +2 -1
- package/dist/client/hooks/useSignOutMutation.js +2 -1
- package/dist/client/hooks/useSignUpMutation.js +1 -1
- package/dist/client/hooks/useSiteQuery.d.ts +2 -0
- package/dist/client/hooks/useSiteQuery.js +16 -0
- package/dist/client/hooks/useSkipOnboardingMutation.d.ts +2 -0
- package/dist/client/hooks/useSkipOnboardingMutation.js +25 -0
- package/dist/client/hooks/useUnmarkGameAsFavoriteMutation.js +5 -5
- package/dist/client/hooks/useUpdateAccountMutation.js +2 -1
- package/dist/client/hooks/useUpdateMemberVerificationMutation.d.ts +6 -0
- package/dist/client/hooks/useUpdateMemberVerificationMutation.js +38 -0
- package/dist/client/hooks/useUploadImageFileMutation.d.ts +4 -0
- package/dist/client/hooks/useUploadImageFileMutation.js +24 -0
- package/dist/client/utils/createContext.js +1 -1
- package/dist/client/utils/createRecipeContext.js +1 -1
- package/dist/components/BetRecords/BetRecords.client.js +1 -1
- package/dist/components/Bonus/Bonus.client.js +1 -1
- package/dist/components/Bonuses/Bonuses.client.js +1 -1
- package/dist/components/Cashback/Cashback.client.js +1 -1
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts +1 -1
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/QRPHDepositContext.d.ts +2 -2
- package/dist/components/DepositWithdrawal/Deposit/QRPHDeposit/useQRPHDeposit.d.ts +1 -1
- package/dist/components/Disclaimer/DisclaimerV1.js +1 -1
- package/dist/components/GameLaunch/GameLaunch.lazy.js +1 -1
- package/dist/components/Games/Game.js +1 -1
- package/dist/components/Games/GamesCarousel.client.js +1 -1
- package/dist/components/Games/GamesList.client.js +1 -1
- package/dist/components/GamesSearch/GamesSearch.js +1 -1
- package/dist/components/Jackpots/JackpotsCarousel/JackpotsCarouselItem.module.css +184 -184
- package/dist/components/Jackpots/JackpotsList/JackpotsListItem.module.css +184 -184
- package/dist/components/KYC/BasicInformation.js +85 -4
- package/dist/components/KYC/CaptureIdDocument.d.ts +1 -0
- package/dist/components/KYC/CaptureIdDocument.js +11 -0
- package/dist/components/KYC/CaptureSelfie.d.ts +1 -0
- package/dist/components/KYC/CaptureSelfie.js +11 -0
- package/dist/components/KYC/IdentityVerification.js +20 -4
- package/dist/components/KYC/Indicator.js +1 -1
- package/dist/components/KYC/KYC.lazy.js +7 -1
- package/dist/components/KYC/PersonalInformation.js +92 -5
- package/dist/components/KYC/useKYC.d.ts +15 -0
- package/dist/components/KYC/useKYC.js +18 -1
- package/dist/components/Messages/Messages.lazy.js +1 -1
- package/dist/components/News/News.d.ts +10 -0
- package/dist/components/News/News.js +10 -0
- package/dist/components/News/index.d.ts +1 -0
- package/dist/components/News/index.js +1 -0
- package/dist/components/NewsFeed/NewsFeed.d.ts +18 -0
- package/dist/components/NewsFeed/NewsFeed.js +11 -0
- package/dist/components/NewsFeed/index.d.ts +1 -0
- package/dist/components/NewsFeed/index.js +1 -0
- package/dist/components/Promo/Promo.client.js +1 -1
- package/dist/components/Promos/PromosCarousel.js +1 -1
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.d.ts +1 -4
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuest.js +28 -25
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestRules.d.ts +6 -0
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestRules.js +15 -0
- package/dist/components/Quests/DailyCheckInQuest.d.ts +1 -0
- package/dist/components/Quests/DailyCheckInQuest.js +96 -0
- package/dist/components/Quests/OnboardingQuest/OnboardingQuest.d.ts +1 -4
- package/dist/components/Quests/OnboardingQuest/OnboardingQuest.js +27 -3
- package/dist/components/Quests/OnboardingQuest/OnboardingQuestRules.d.ts +6 -0
- package/dist/components/Quests/OnboardingQuest/OnboardingQuestRules.js +15 -0
- package/dist/components/Quests/OnboardingQuest.d.ts +1 -0
- package/dist/components/Quests/OnboardingQuest.js +47 -0
- package/dist/components/Quests/Quests.client.d.ts +2 -0
- package/dist/components/Quests/Quests.client.js +25 -10
- package/dist/components/Quests/QuestsContext.d.ts +2 -0
- package/dist/components/Quests/QuestsContext.js +2 -0
- package/dist/components/Quests/RemainingTime.d.ts +1 -0
- package/dist/components/Quests/RemainingTime.js +19 -0
- package/dist/components/Quests/WageringQuest/WageringQuest.d.ts +1 -4
- package/dist/components/Quests/WageringQuest/WageringQuest.js +12 -9
- package/dist/components/Quests/WageringQuest/WageringQuestRules.d.ts +7 -0
- package/dist/components/Quests/WageringQuest/WageringQuestRules.js +17 -0
- package/dist/components/Quests/WageringQuest.d.ts +1 -0
- package/dist/components/Quests/WageringQuest.js +36 -0
- package/dist/components/Search/Search.lazy.js +1 -1
- package/dist/components/SignIn/MobileNumberSignIn.js +7 -4
- package/dist/components/SignIn/NameAndPasswordSignIn.js +10 -5
- package/dist/components/SignUp/SignUpForm.js +13 -7
- package/dist/components/Tournaments/TournamentsCarousel/TournamentsCarouselItem.module.css +184 -184
- package/dist/components/Tournaments/TournamentsList/TournamentItem.module.css +184 -184
- package/dist/components/TransactionRecords/DepositRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/TransactionRecordsTable.js +1 -1
- package/dist/components/TransactionRecords/WithdrawalRecordsTable.js +1 -1
- package/dist/constants/{endpoints.js → Endpoint.js} +1 -1
- package/dist/constants/index.d.ts +7 -7
- package/dist/constants/index.js +7 -7
- package/dist/server/utils/prefetchAccountQuery.js +5 -2
- package/dist/server/utils/prefetchAvailablePromosQuery.js +5 -2
- package/dist/server/utils/prefetchAvailableQuestsCountQuery.js +5 -2
- package/dist/server/utils/prefetchAvailableQuestsQuery.js +5 -2
- package/dist/server/utils/prefetchBetRecordsQuery.js +5 -2
- package/dist/server/utils/prefetchBonusQuery.js +5 -2
- package/dist/server/utils/prefetchBonusesCountQuery.js +5 -2
- package/dist/server/utils/prefetchBonusesQuery.js +5 -2
- package/dist/server/utils/prefetchCashbackBonusQuery.js +5 -2
- package/dist/server/utils/prefetchCashbackBonusesCountQuery.js +5 -2
- package/dist/server/utils/prefetchCashbackBonusesQuery.js +5 -2
- package/dist/server/utils/prefetchCashbackQuery.js +5 -2
- package/dist/server/utils/prefetchCashbacksQuery.js +5 -2
- package/dist/server/utils/prefetchDepositQuery.js +5 -2
- package/dist/server/utils/prefetchDepositRecordsQuery.js +5 -2
- package/dist/server/utils/prefetchDepositsCountQuery.js +5 -2
- package/dist/server/utils/prefetchFavoriteGamesQuery.js +5 -2
- package/dist/server/utils/prefetchFileQuery.d.ts +1 -0
- package/dist/server/utils/prefetchFileQuery.js +23 -0
- package/dist/server/utils/prefetchGamesQuery.js +5 -2
- package/dist/server/utils/prefetchInstapayBankListQuery.js +5 -2
- package/dist/server/utils/prefetchIsMayaSessionValidQuery.js +5 -2
- package/dist/server/utils/prefetchJackpotsCountQuery.js +5 -2
- package/dist/server/utils/prefetchJackpotsQuery.js +5 -2
- package/dist/server/utils/prefetchMemberVerificationQuery.js +5 -2
- package/dist/server/utils/prefetchOnboardingStatusQuery.d.ts +1 -0
- package/dist/server/utils/prefetchOnboardingStatusQuery.js +24 -0
- package/dist/server/utils/prefetchPaymentSettingsQuery.js +5 -2
- package/dist/server/utils/prefetchPlatformQuery.js +5 -2
- package/dist/server/utils/prefetchProfileCompletionQuery.js +5 -2
- package/dist/server/utils/prefetchPromoQuery.js +5 -2
- package/dist/server/utils/prefetchPromosQuery.js +5 -2
- package/dist/server/utils/prefetchRecommendedGamesQuery.d.ts +1 -0
- package/dist/server/utils/prefetchRecommendedGamesQuery.js +23 -0
- package/dist/server/utils/prefetchSessionQuery.js +6 -3
- package/dist/server/utils/prefetchSiteQuery.d.ts +1 -0
- package/dist/server/utils/prefetchSiteQuery.js +17 -0
- package/dist/server/utils/prefetchTopWinsQuery.js +5 -2
- package/dist/server/utils/prefetchTournamentsCountQuery.js +5 -2
- package/dist/server/utils/prefetchTournamentsQuery.js +5 -2
- package/dist/server/utils/prefetchTransactionRecordsQuery.js +5 -2
- package/dist/server/utils/prefetchUnreadMessagesCountQuery.js +5 -2
- package/dist/server/utils/prefetchWalletQuery.js +5 -2
- package/dist/server/utils/prefetchWithdrawalRecordsQuery.js +5 -2
- package/dist/services/account.d.ts +1 -0
- package/dist/services/account.js +11 -1
- package/dist/services/queries.d.ts +2 -1
- package/dist/services/queries.js +2369 -2351
- package/dist/styles/theme.css +699 -698
- package/dist/types/index.d.ts +7 -0
- package/dist/ui/Checkbox/Checkbox.d.ts +23 -23
- package/dist/ui/Checkbox/checkbox.recipe.d.ts +3 -3
- package/dist/ui/Checkbox/checkbox.recipe.js +2 -2
- package/dist/ui/Combobox/Combobox.d.ts +42 -42
- package/dist/ui/Combobox/combobox.recipe.d.ts +3 -3
- package/dist/ui/Dialog/dialog.recipe.js +1 -1
- package/dist/ui/Menu/Menu.d.ts +144 -144
- package/dist/ui/Menu/menu.recipe.d.ts +8 -8
- package/dist/ui/Select/Select.d.ts +45 -45
- package/dist/ui/Select/select.recipe.d.ts +3 -3
- package/dist/ui/Table/Table.d.ts +21 -21
- package/dist/ui/Table/table.anatomy.d.ts +1 -1
- package/dist/ui/Table/table.recipe.d.ts +3 -3
- package/dist/ui/Tabs/Tabs.d.ts +15 -15
- package/dist/ui/Tabs/tabs.recipe.d.ts +3 -3
- package/dist/utils/callIfFn.d.ts +8 -0
- package/dist/utils/callIfFn.js +8 -0
- package/dist/utils/createPoll.d.ts +1 -0
- package/dist/utils/createPoll.js +1 -0
- package/dist/utils/createSplitProps.d.ts +9 -0
- package/dist/utils/createSplitProps.js +9 -0
- package/dist/utils/log.d.ts +3 -0
- package/dist/utils/log.js +18 -0
- package/dist/utils/mutationKeys.d.ts +29 -0
- package/dist/utils/mutationKeys.js +104 -0
- package/dist/utils/queryKeys.d.ts +5 -24
- package/dist/utils/queryKeys.js +80 -97
- package/package.json +162 -162
- package/dist/client/hooks/index.d.ts +0 -65
- package/dist/client/hooks/index.js +0 -65
- package/dist/client/services/index.d.ts +0 -4
- package/dist/client/services/index.js +0 -4
- package/dist/client/utils/index.d.ts +0 -3
- package/dist/client/utils/index.js +0 -3
- package/dist/components/CashbackBonus/CashbackBonus.client.d.ts +0 -2
- package/dist/components/CashbackBonus/CashbackBonus.client.js +0 -9
- package/dist/components/CashbackBonus/CashbackBonus.d.ts +0 -10
- package/dist/components/CashbackBonus/CashbackBonus.js +0 -5
- package/dist/components/CashbackBonus/index.d.ts +0 -1
- package/dist/components/CashbackBonus/index.js +0 -1
- package/dist/components/Games/GameContext.d.ts +0 -2
- package/dist/components/Games/GameContext.js +0 -2
- package/dist/components/JackpotCounter/JackpotCounter.client.d.ts +0 -2
- package/dist/components/JackpotCounter/JackpotCounter.client.js +0 -66
- package/dist/components/JackpotCounter/JackpotCounter.d.ts +0 -17
- package/dist/components/JackpotCounter/JackpotCounter.js +0 -21
- package/dist/components/JackpotCounter/JackpotCounterItem.d.ts +0 -18
- package/dist/components/JackpotCounter/JackpotCounterItem.js +0 -109
- package/dist/components/JackpotCounter/JackpotCounterItem.module.css +0 -184
- package/dist/components/JackpotCounter/index.d.ts +0 -1
- package/dist/components/JackpotCounter/index.js +0 -1
- package/dist/components/Jackpots/JackpotDesktop.d.ts +0 -1
- package/dist/components/Jackpots/JackpotDesktop.js +0 -45
- package/dist/components/Jackpots/JackpotGameProviders.d.ts +0 -5
- package/dist/components/Jackpots/JackpotGameProviders.js +0 -41
- package/dist/components/Jackpots/JackpotItemDesktop.d.ts +0 -9
- package/dist/components/Jackpots/JackpotItemDesktop.js +0 -43
- package/dist/components/Jackpots/JackpotItemMobile.d.ts +0 -9
- package/dist/components/Jackpots/JackpotItemMobile.js +0 -44
- package/dist/components/Jackpots/JackpotMobile.d.ts +0 -1
- package/dist/components/Jackpots/JackpotMobile.js +0 -46
- package/dist/components/Jackpots/JackpotRules.d.ts +0 -5
- package/dist/components/Jackpots/JackpotRules.js +0 -11
- package/dist/components/Jackpots/Jackpots.client.d.ts +0 -2
- package/dist/components/Jackpots/Jackpots.client.js +0 -29
- package/dist/components/Jackpots/JackpotsContext.d.ts +0 -4
- package/dist/components/Jackpots/JackpotsContext.js +0 -3
- package/dist/components/Jackpots/useJackpotData.d.ts +0 -14
- package/dist/components/Jackpots/useJackpotData.js +0 -93
- package/dist/components/Jackpots/useJackpotItemData.d.ts +0 -20
- package/dist/components/Jackpots/useJackpotItemData.js +0 -87
- package/dist/components/KYC/Header.d.ts +0 -1
- package/dist/components/KYC/Header.js +0 -8
- package/dist/components/KYC/Step1.d.ts +0 -1
- package/dist/components/KYC/Step1.js +0 -13
- package/dist/components/KYC/Step2.d.ts +0 -1
- package/dist/components/KYC/Step2.js +0 -13
- package/dist/components/KYC/Step3.d.ts +0 -1
- package/dist/components/KYC/Step3.js +0 -13
- package/dist/components/KYC/Step4.d.ts +0 -1
- package/dist/components/KYC/Step4.js +0 -7
- package/dist/components/Messages/MessageItem.d.ts +0 -4
- package/dist/components/Messages/MessageItem.js +0 -34
- package/dist/components/PortalProvider/WebVitals.d.ts +0 -1
- package/dist/components/PortalProvider/WebVitals.js +0 -8
- package/dist/components/Promo/PromoContent.d.ts +0 -2
- package/dist/components/Promo/PromoContent.js +0 -9
- package/dist/components/Promos/PromoCarousel.d.ts +0 -2
- package/dist/components/Promos/PromoCarousel.js +0 -41
- package/dist/components/Promos/PromoGrid.d.ts +0 -2
- package/dist/components/Promos/PromoGrid.js +0 -12
- package/dist/components/Promos/PromoItem.d.ts +0 -7
- package/dist/components/Promos/PromoItem.js +0 -10
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.d.ts +0 -8
- package/dist/components/Quests/DailyCheckInQuest/DailyCheckInQuestModal.js +0 -9
- package/dist/components/Quests/WageringQuest/WageringQuestModal.d.ts +0 -9
- package/dist/components/Quests/WageringQuest/WageringQuestModal.js +0 -9
- package/dist/components/TournamentCounter/TournamentCounter.client.d.ts +0 -2
- package/dist/components/TournamentCounter/TournamentCounter.client.js +0 -50
- package/dist/components/TournamentCounter/TournamentCounter.d.ts +0 -8
- package/dist/components/TournamentCounter/TournamentCounter.js +0 -21
- package/dist/components/TournamentCounter/TournamentCounterItem.d.ts +0 -8
- package/dist/components/TournamentCounter/TournamentCounterItem.js +0 -106
- package/dist/components/TournamentCounter/index.d.ts +0 -1
- package/dist/components/TournamentCounter/index.js +0 -1
- package/dist/components/Tournaments/TournamentDesktop.d.ts +0 -1
- package/dist/components/Tournaments/TournamentDesktop.js +0 -57
- package/dist/components/Tournaments/TournamentGameProviders.d.ts +0 -5
- package/dist/components/Tournaments/TournamentGameProviders.js +0 -38
- package/dist/components/Tournaments/TournamentItemDesktop.d.ts +0 -7
- package/dist/components/Tournaments/TournamentItemDesktop.js +0 -56
- package/dist/components/Tournaments/TournamentItemMobile.d.ts +0 -7
- package/dist/components/Tournaments/TournamentItemMobile.js +0 -54
- package/dist/components/Tournaments/TournamentMobile.d.ts +0 -1
- package/dist/components/Tournaments/TournamentMobile.js +0 -55
- package/dist/components/Tournaments/TournamentRules.d.ts +0 -5
- package/dist/components/Tournaments/TournamentRules.js +0 -11
- package/dist/components/Tournaments/Tournaments.client.d.ts +0 -2
- package/dist/components/Tournaments/Tournaments.client.js +0 -20
- package/dist/components/Tournaments/TournamentsContext.d.ts +0 -4
- package/dist/components/Tournaments/TournamentsContext.js +0 -3
- package/dist/components/Tournaments/useTournamentData.d.ts +0 -10
- package/dist/components/Tournaments/useTournamentData.js +0 -72
- package/dist/components/Tournaments/useTournamentItemData.d.ts +0 -16
- package/dist/components/Tournaments/useTournamentItemData.js +0 -64
- package/dist/components/index.d.ts +0 -33
- package/dist/components/index.js +0 -33
- package/dist/icons/index.d.ts +0 -65
- package/dist/icons/index.js +0 -65
- package/dist/images/hacksaw-gaming.png +0 -0
- package/dist/server/services/index.d.ts +0 -4
- package/dist/server/services/index.js +0 -4
- package/dist/server/utils/index.d.ts +0 -29
- package/dist/server/utils/index.js +0 -29
- package/dist/ui/Presence.d.ts +0 -2
- package/dist/ui/Presence.js +0 -7
- package/dist/ui/Prose.d.ts +0 -2
- package/dist/ui/Prose.js +0 -5
- package/dist/ui/index.d.ts +0 -26
- package/dist/ui/index.js +0 -26
- package/dist/utils/index.d.ts +0 -17
- package/dist/utils/index.js +0 -17
- package/dist/utils/isMobile.d.ts +0 -5
- package/dist/utils/isMobile.js +0 -9
- /package/dist/components/{Empty.d.ts → shared/Empty.d.ts} +0 -0
- /package/dist/components/{Empty.js → shared/Empty.js} +0 -0
- /package/dist/components/{InfiniteScroll.d.ts → shared/InfiniteScroll.d.ts} +0 -0
- /package/dist/components/{InfiniteScroll.js → shared/InfiniteScroll.js} +0 -0
- /package/dist/constants/{endpoints.d.ts → Endpoint.d.ts} +0 -0
- /package/dist/constants/{envVars.d.ts → EnvVar.d.ts} +0 -0
- /package/dist/constants/{envVars.js → EnvVar.js} +0 -0
- /package/dist/constants/{gameProviders.d.ts → GameProvider.d.ts} +0 -0
- /package/dist/constants/{gameProviders.js → GameProvider.js} +0 -0
- /package/dist/constants/{gameTypes.d.ts → GameType.d.ts} +0 -0
- /package/dist/constants/{gameTypes.js → GameType.js} +0 -0
- /package/dist/constants/{headerKeys.d.ts → HeaderKey.d.ts} +0 -0
- /package/dist/constants/{headerKeys.js → HeaderKey.js} +0 -0
- /package/dist/constants/{secretQuestions.d.ts → SecretQuestion.d.ts} +0 -0
- /package/dist/constants/{secretQuestions.js → SecretQuestion.js} +0 -0
- /package/dist/constants/{storageKeys.d.ts → StorageKey.d.ts} +0 -0
- /package/dist/constants/{storageKeys.js → StorageKey.js} +0 -0
|
@@ -1,8 +1,25 @@
|
|
|
1
|
-
import { differenceInDays, differenceInHours, differenceInMinutes, isAfter, } from 'date-fns';
|
|
2
|
-
import { isNumber, isString } from 'lodash-es';
|
|
3
|
-
import { useState } from 'react';
|
|
1
|
+
import { differenceInDays, differenceInHours, differenceInMinutes, differenceInSeconds, isAfter, } from 'date-fns';
|
|
2
|
+
import { isNumber, isString, noop } from 'lodash-es';
|
|
3
|
+
import { useRef, useState } from 'react';
|
|
4
4
|
import { useInterval } from 'usehooks-ts';
|
|
5
|
-
export function useRemainingTime(value) {
|
|
5
|
+
export function useRemainingTime(value, options = {}) {
|
|
6
|
+
const subscribers = useRef([
|
|
7
|
+
() => {
|
|
8
|
+
options.onExpired?.();
|
|
9
|
+
return noop;
|
|
10
|
+
},
|
|
11
|
+
]);
|
|
12
|
+
const subscribe = (subscriber) => {
|
|
13
|
+
subscribers.current.push(subscriber);
|
|
14
|
+
return () => {
|
|
15
|
+
subscribers.current = subscribers.current.filter((item) => item !== subscriber);
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
const triggerEvent = (details) => {
|
|
19
|
+
subscribers.current.forEach((subscriber) => {
|
|
20
|
+
subscriber(details);
|
|
21
|
+
});
|
|
22
|
+
};
|
|
6
23
|
const [now, setNow] = useState(new Date());
|
|
7
24
|
const expiration = isString(value) || isNumber(value) ? new Date(value) : value;
|
|
8
25
|
const expired = isAfter(now, expiration);
|
|
@@ -11,14 +28,28 @@ export function useRemainingTime(value) {
|
|
|
11
28
|
const minutes = expired
|
|
12
29
|
? 0
|
|
13
30
|
: differenceInMinutes(expiration, now) - days * 24 * 60 - hours * 60;
|
|
14
|
-
|
|
31
|
+
const seconds = expired
|
|
32
|
+
? 0
|
|
33
|
+
: differenceInSeconds(expiration, now) -
|
|
34
|
+
days * 24 * 60 * 60 -
|
|
35
|
+
hours * 60 * 60 -
|
|
36
|
+
minutes * 60;
|
|
37
|
+
useInterval(() => {
|
|
38
|
+
const d = new Date();
|
|
39
|
+
setNow(d);
|
|
40
|
+
if (isAfter(d, expiration)) {
|
|
41
|
+
triggerEvent({ type: 'EXPIRED' });
|
|
42
|
+
}
|
|
43
|
+
}, expired ? null : 1000);
|
|
15
44
|
return {
|
|
16
45
|
days,
|
|
17
46
|
hours,
|
|
18
47
|
minutes,
|
|
19
48
|
expired,
|
|
49
|
+
seconds,
|
|
20
50
|
toString() {
|
|
21
|
-
return `${days}d:${hours}h:${minutes}m`;
|
|
51
|
+
return `${days}d:${hours}h:${minutes}m:${seconds}s`;
|
|
22
52
|
},
|
|
53
|
+
subscribe,
|
|
23
54
|
};
|
|
24
55
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMutation } from '@tanstack/react-query';
|
|
2
2
|
import { sendVerificationCode, } from '../../services/auth.js';
|
|
3
|
-
import { getSendVerificationCodeMutationKey } from '../../utils/
|
|
3
|
+
import { getSendVerificationCodeMutationKey } from '../../utils/mutationKeys.js';
|
|
4
4
|
export const useSendVerificationCodeMutation = (config) => {
|
|
5
5
|
return useMutation({
|
|
6
6
|
...config,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useMutation } from '@tanstack/react-query';
|
|
2
2
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
-
import {
|
|
3
|
+
import { getSignInMutationKey } from '../../utils/mutationKeys.js';
|
|
4
|
+
import { getSessionQueryKey } from '../../utils/queryKeys.js';
|
|
4
5
|
import { signIn } from '../services/signIn.js';
|
|
5
6
|
export const useSignInMutation = (config) => {
|
|
6
7
|
const queryClient = getQueryClient();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useMutation } from '@tanstack/react-query';
|
|
2
2
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
3
|
-
import {
|
|
3
|
+
import { getSignOutMutationKey } from '../../utils/mutationKeys.js';
|
|
4
|
+
import { getSessionQueryKey } from '../../utils/queryKeys.js';
|
|
4
5
|
import { signOut } from '../services/signOut.js';
|
|
5
6
|
export const useSignOutMutation = (config) => {
|
|
6
7
|
const queryClient = getQueryClient();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMutation } from '@tanstack/react-query';
|
|
2
2
|
import { registerMemberAccountViaMobile, } from '../../services/account.js';
|
|
3
|
-
import { getSignUpMutationKey } from '../../utils/
|
|
3
|
+
import { getSignUpMutationKey } from '../../utils/mutationKeys.js';
|
|
4
4
|
export const useSignUpMutation = (config) => {
|
|
5
5
|
return useMutation({
|
|
6
6
|
...config,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useQuery } from '@tanstack/react-query';
|
|
2
|
+
import invariant from 'tiny-invariant';
|
|
3
|
+
import { SITE_ID } from '../../constants/index.js';
|
|
4
|
+
import { getSite } from '../../services/cmsPortal.js';
|
|
5
|
+
import { getSiteQueryKey } from '../../utils/queryKeys.js';
|
|
6
|
+
export const useSiteQuery = (config) => {
|
|
7
|
+
return useQuery({
|
|
8
|
+
...config,
|
|
9
|
+
queryKey: getSiteQueryKey(),
|
|
10
|
+
queryFn: async ({ signal }) => {
|
|
11
|
+
const site = await getSite(SITE_ID, { signal });
|
|
12
|
+
invariant(site);
|
|
13
|
+
return site;
|
|
14
|
+
},
|
|
15
|
+
});
|
|
16
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { useMutation } from '@tanstack/react-query';
|
|
2
|
+
import invariant from 'tiny-invariant';
|
|
3
|
+
import { skipOnboarding } from '../../services/portal.js';
|
|
4
|
+
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
5
|
+
import { getSkipOnboardingMutationKey } from '../../utils/mutationKeys.js';
|
|
6
|
+
import { getOnboardingStatusQueryKey } from '../../utils/queryKeys.js';
|
|
7
|
+
import { getSession } from '../services/getSession.js';
|
|
8
|
+
export const useSkipOnboardingMutation = (config) => {
|
|
9
|
+
const queryClient = getQueryClient();
|
|
10
|
+
const mutation = useMutation({
|
|
11
|
+
...config,
|
|
12
|
+
mutationKey: getSkipOnboardingMutationKey(),
|
|
13
|
+
mutationFn: async () => {
|
|
14
|
+
const session = await getSession();
|
|
15
|
+
invariant(session.status === 'authenticated');
|
|
16
|
+
await skipOnboarding({
|
|
17
|
+
headers: {
|
|
18
|
+
Authorization: `Bearer ${session.token}`,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
queryClient.setQueryData(getOnboardingStatusQueryKey(), () => 'SKIPPED');
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
return mutation;
|
|
25
|
+
};
|
|
@@ -2,7 +2,8 @@ import { useMutation } from '@tanstack/react-query';
|
|
|
2
2
|
import invariant from 'tiny-invariant';
|
|
3
3
|
import { unmarkGameAsFavorite } from '../../services/wallet.js';
|
|
4
4
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
5
|
-
import {
|
|
5
|
+
import { getUnmarkGameAsFavoriteMutationKey } from '../../utils/mutationKeys.js';
|
|
6
|
+
import { getFavoriteGamesQueryKey } from '../../utils/queryKeys.js';
|
|
6
7
|
import { getSession } from '../services/getSession.js';
|
|
7
8
|
export const useUnmarkGameAsFavoriteMutation = (config) => {
|
|
8
9
|
const queryClient = getQueryClient();
|
|
@@ -17,10 +18,9 @@ export const useUnmarkGameAsFavoriteMutation = (config) => {
|
|
|
17
18
|
Authorization: `Bearer ${session.token}`,
|
|
18
19
|
},
|
|
19
20
|
});
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
queryClient.invalidateQueries({ queryKey: getFavoriteGamesQueryKey() });
|
|
21
|
+
queryClient.setQueryData(getFavoriteGamesQueryKey(), (prev) => {
|
|
22
|
+
return prev?.filter((game) => game.id !== id);
|
|
23
|
+
});
|
|
24
24
|
},
|
|
25
25
|
});
|
|
26
26
|
return mutation;
|
|
@@ -2,7 +2,8 @@ import { useMutation } from '@tanstack/react-query';
|
|
|
2
2
|
import invariant from 'tiny-invariant';
|
|
3
3
|
import { updateMemberAccount, } from '../../services/account.js';
|
|
4
4
|
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
5
|
-
import {
|
|
5
|
+
import { getUpdateAccountMutationKey } from '../../utils/mutationKeys.js';
|
|
6
|
+
import { getAccountQueryKey, getProfileCompletionQueryKey, } from '../../utils/queryKeys.js';
|
|
6
7
|
import { getSession } from '../services/getSession.js';
|
|
7
8
|
import { useAccountQuery } from './useAccountQuery.js';
|
|
8
9
|
export const useUpdateAccountMutation = (config) => {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { useMutation } from '@tanstack/react-query';
|
|
2
|
+
import invariant from 'tiny-invariant';
|
|
3
|
+
import { updateMemberVerification__next, } from '../../services/account.js';
|
|
4
|
+
import { getQueryClient } from '../../utils/getQueryClient.js';
|
|
5
|
+
import { getUpdateMemberVerificationQueryKey } from '../../utils/mutationKeys.js';
|
|
6
|
+
import { getMemberVerificationQueryKey } from '../../utils/queryKeys.js';
|
|
7
|
+
import { getSession } from '../services/getSession.js';
|
|
8
|
+
export const useUpdateMemberVerificationMutation = (config) => {
|
|
9
|
+
const queryClient = getQueryClient();
|
|
10
|
+
const mutation = useMutation({
|
|
11
|
+
...config,
|
|
12
|
+
mutationKey: getUpdateMemberVerificationQueryKey(),
|
|
13
|
+
mutationFn: async ({ id, data }) => {
|
|
14
|
+
const session = await getSession();
|
|
15
|
+
invariant(session.status === 'authenticated');
|
|
16
|
+
await updateMemberVerification__next(id, data, {
|
|
17
|
+
headers: {
|
|
18
|
+
Authorization: `Bearer ${session.token}`,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
queryClient.setQueryData(getMemberVerificationQueryKey(), (prev) => {
|
|
22
|
+
if (!prev)
|
|
23
|
+
return prev;
|
|
24
|
+
return {
|
|
25
|
+
...prev,
|
|
26
|
+
...data,
|
|
27
|
+
idFrontImage: data.idFrontImage
|
|
28
|
+
? { id: data.idFrontImage, status: 'UPLOADING' }
|
|
29
|
+
: prev.idFrontImage,
|
|
30
|
+
selfieImage: data.selfieImage
|
|
31
|
+
? { id: data.selfieImage, status: 'UPLOADING' }
|
|
32
|
+
: prev.selfieImage,
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
return mutation;
|
|
38
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { SetOptional } from 'type-fest';
|
|
2
|
+
import { type UploadPrivateImageFileInput } from '../../services/file';
|
|
3
|
+
import type { Mutation } from '../../types';
|
|
4
|
+
export declare const useUploadImageFileMutation: Mutation<string, SetOptional<UploadPrivateImageFileInput, 'id'>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ObjectId } from '@opexa/object-id';
|
|
2
|
+
import { useMutation } from '@tanstack/react-query';
|
|
3
|
+
import invariant from 'tiny-invariant';
|
|
4
|
+
import { uploadPrivateImageFile, } from '../../services/file.js';
|
|
5
|
+
import { ObjectType } from '../../services/ObjectType.js';
|
|
6
|
+
import { getUploadImageFileMutationKey } from '../../utils/mutationKeys.js';
|
|
7
|
+
import { getSession } from '../services/getSession.js';
|
|
8
|
+
export const useUploadImageFileMutation = (config) => {
|
|
9
|
+
return useMutation({
|
|
10
|
+
...config,
|
|
11
|
+
mutationKey: getUploadImageFileMutationKey(),
|
|
12
|
+
mutationFn: async (input) => {
|
|
13
|
+
const session = await getSession();
|
|
14
|
+
invariant(session.status === 'authenticated');
|
|
15
|
+
const id = input.id ?? ObjectId.generate(ObjectType.File).toString();
|
|
16
|
+
await uploadPrivateImageFile({ ...input, id }, {
|
|
17
|
+
headers: {
|
|
18
|
+
Authorization: `Bearer ${session.token}`,
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
return id;
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
};
|
|
@@ -5,7 +5,7 @@ export function createContext(options) {
|
|
|
5
5
|
const defaultValue = options?.defaultValue ?? null;
|
|
6
6
|
const Context = React.createContext(defaultValue ?? null);
|
|
7
7
|
function useContext() {
|
|
8
|
-
const context = React.
|
|
8
|
+
const context = React.use(Context);
|
|
9
9
|
if (!context && strict)
|
|
10
10
|
invariant(context);
|
|
11
11
|
return context;
|
|
@@ -4,7 +4,7 @@ import { createSplitProps } from '../../utils/createSplitProps.js';
|
|
|
4
4
|
export function createRecipeContext(recipe) {
|
|
5
5
|
const RecipeContext = React.createContext(null);
|
|
6
6
|
function useContext() {
|
|
7
|
-
const context = React.
|
|
7
|
+
const context = React.use(RecipeContext);
|
|
8
8
|
return context;
|
|
9
9
|
}
|
|
10
10
|
function withRootProvider(Component) {
|
|
@@ -26,7 +26,7 @@ import { Select } from '../../ui/Select/index.js';
|
|
|
26
26
|
import { Table } from '../../ui/Table/index.js';
|
|
27
27
|
import { capitalize } from '../../utils/capitalize.js';
|
|
28
28
|
import { formatNumber } from '../../utils/formatNumber.js';
|
|
29
|
-
import { Empty } from '../Empty.js';
|
|
29
|
+
import { Empty } from '../shared/Empty.js';
|
|
30
30
|
export function BetRecords__client(props) {
|
|
31
31
|
const [tab, setTab] = useState('all');
|
|
32
32
|
const gameTypes = props.gameTypes.map((type) => GAME_TYPE_DATA[type]);
|
|
@@ -13,7 +13,7 @@ import piggyBank from '../../images/piggy-bank.png';
|
|
|
13
13
|
import { Badge } from '../../ui/Badge/index.js';
|
|
14
14
|
import { Collapsible } from '../../ui/Collapsible/index.js';
|
|
15
15
|
import { Progress } from '../../ui/Progress/index.js';
|
|
16
|
-
import { Prose } from '../../ui/Prose.js';
|
|
16
|
+
import { Prose } from '../../ui/Prose/index.js';
|
|
17
17
|
import { capitalize } from '../../utils/capitalize.js';
|
|
18
18
|
import { formatNumber } from '../../utils/formatNumber.js';
|
|
19
19
|
import { parseDecimal } from '../../utils/parseDecimal.js';
|
|
@@ -22,7 +22,7 @@ import { SegmentGroup } from '../../ui/SegmentGroup/index.js';
|
|
|
22
22
|
import { capitalize } from '../../utils/capitalize.js';
|
|
23
23
|
import { formatNumber } from '../../utils/formatNumber.js';
|
|
24
24
|
import { parseDecimal } from '../../utils/parseDecimal.js';
|
|
25
|
-
import { Empty } from '../Empty.js';
|
|
25
|
+
import { Empty } from '../shared/Empty.js';
|
|
26
26
|
const TABS = ['ALL', 'ACTIVE', 'CASHBACKS'];
|
|
27
27
|
export function Bonuses__client(props) {
|
|
28
28
|
const [tab, setTab] = useState(TABS[0]);
|
|
@@ -11,7 +11,7 @@ import { useGlobalStore } from '../../client/hooks/useGlobalStore.js';
|
|
|
11
11
|
import { useLocaleInfo } from '../../client/hooks/useLocaleInfo.js';
|
|
12
12
|
import { ChevronLeftIcon } from '../../icons/ChevronLeftIcon.js';
|
|
13
13
|
import { Button } from '../../ui/Button/index.js';
|
|
14
|
-
import { Prose } from '../../ui/Prose.js';
|
|
14
|
+
import { Prose } from '../../ui/Prose/index.js';
|
|
15
15
|
export function Cashback__client(props) {
|
|
16
16
|
const availablePromosQuery = useAvailablePromosQuery();
|
|
17
17
|
const cashbackQuery = useCashbackQuery(props.id);
|
package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/OnlineBankDepositContext.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const OnlineBankDepositContext: import("react").Context<{
|
|
2
|
-
view: "
|
|
2
|
+
view: "vca" | "form";
|
|
3
3
|
status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
|
|
4
4
|
verify: () => void;
|
|
5
5
|
reset: () => void;
|
|
@@ -9,7 +9,7 @@ export declare const OnlineBankDepositContext: import("react").Context<{
|
|
|
9
9
|
promo?: string | null;
|
|
10
10
|
}) => void;
|
|
11
11
|
}>, useOnlineBankDepositContext: () => {
|
|
12
|
-
view: "
|
|
12
|
+
view: "vca" | "form";
|
|
13
13
|
status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
|
|
14
14
|
verify: () => void;
|
|
15
15
|
reset: () => void;
|
package/dist/components/DepositWithdrawal/Deposit/OnlineBankDeposit/useOnlineBankDeposit.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Deposit } from '../../../../types';
|
|
2
2
|
export type UseOnlineBankDepositReturn = ReturnType<typeof useOnlineBankDeposit>;
|
|
3
3
|
export declare function useOnlineBankDeposit(): {
|
|
4
|
-
view: "
|
|
4
|
+
view: "vca" | "form";
|
|
5
5
|
status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
|
|
6
6
|
verify: () => void;
|
|
7
7
|
reset: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const QRPHDepositContext: import("react").Context<{
|
|
2
|
-
view: "
|
|
2
|
+
view: "qrCode" | "form";
|
|
3
3
|
status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
|
|
4
4
|
verify: () => void;
|
|
5
5
|
reset: () => void;
|
|
@@ -9,7 +9,7 @@ export declare const QRPHDepositContext: import("react").Context<{
|
|
|
9
9
|
promo?: string | null;
|
|
10
10
|
}) => void;
|
|
11
11
|
}>, useQRPHDepositContext: () => {
|
|
12
|
-
view: "
|
|
12
|
+
view: "qrCode" | "form";
|
|
13
13
|
status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
|
|
14
14
|
verify: () => void;
|
|
15
15
|
reset: () => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Deposit } from '../../../../types';
|
|
2
2
|
export type UseQRPHDepositReturn = ReturnType<typeof useQRPHDeposit>;
|
|
3
3
|
export declare function useQRPHDeposit(): {
|
|
4
|
-
view: "
|
|
4
|
+
view: "qrCode" | "form";
|
|
5
5
|
status: "waiting" | "processing" | "failed" | "verification-waiting" | "verification-processing" | "verification-failed" | "verification-success";
|
|
6
6
|
verify: () => void;
|
|
7
7
|
reset: () => void;
|
|
@@ -11,5 +11,5 @@ import { useDisclaimer } from './useDisclaimer.js';
|
|
|
11
11
|
export function DisclaimerV1(props) {
|
|
12
12
|
const disclaimer = useDisclaimer();
|
|
13
13
|
const acceptTriggerRef = useRef(null);
|
|
14
|
-
return (_jsx(Dialog.Root, { open: disclaimer.open, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, initialFocusEl: () => acceptTriggerRef.current, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsxs(Dialog.Content, { className: "flex h-full w-full flex-col items-start p-3xl lg:mx-auto lg:h-auto lg:w-[400px] lg:rounded-xl", children: [_jsx(Image, { src: props.logo, alt: "", width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }), _jsxs("div", { className: "w-full grow", children: [_jsx(Dialog.Title, { className: "mt-3xl text-center text-lg font-semibold", children: "Age Verification" }), _jsxs(Dialog.Description, { className: "text-text-tertiary-600 mt-xs text-center text-sm", children: ["By entering this website I acknowledge and
|
|
14
|
+
return (_jsx(Dialog.Root, { open: disclaimer.open, lazyMount: true, unmountOnExit: true, closeOnEscape: false, closeOnInteractOutside: false, initialFocusEl: () => acceptTriggerRef.current, children: _jsxs(Portal, { children: [_jsx(Dialog.Backdrop, {}), _jsx(Dialog.Positioner, { children: _jsxs(Dialog.Content, { className: "flex h-full w-full flex-col items-start p-3xl lg:mx-auto lg:h-auto lg:w-[400px] lg:rounded-xl", children: [_jsx(Image, { src: props.logo, alt: "", width: 200, height: 100, className: "mx-auto h-auto w-[120px]", draggable: false }), _jsxs("div", { className: "w-full grow", children: [_jsx(Dialog.Title, { className: "mt-3xl text-center text-lg font-semibold", children: "Age Verification" }), _jsxs(Dialog.Description, { className: "text-text-tertiary-600 mt-xs text-center text-sm", children: ["By entering this website I acknowledge and confirm I am 21 years of age and I agree with the", ' ', _jsx("button", { type: "button", className: "text-brand-400 underline underline-offset-2", children: "Terms and Conditions." })] }), _jsxs("div", { className: "mt-5 flex items-center justify-center gap-3xl", children: [_jsx(Image, { src: pagcorLogo, alt: "", height: 75, width: 88, className: "h-[88px] w-auto shrink-0", draggable: false }), _jsx(Image, { src: responsibleGamingLogo, alt: "", height: 62, width: 186, className: "h-[62px] w-auto shrink-0", draggable: false })] })] }), _jsx(Button, { ref: acceptTriggerRef, type: "button", className: "mt-4xl", onClick: disclaimer.close, children: "Accept" })] }) })] }) }));
|
|
15
15
|
}
|
|
@@ -21,7 +21,7 @@ import { AlertDialog } from '../../ui/AlertDialog/index.js';
|
|
|
21
21
|
import { Button } from '../../ui/Button/index.js';
|
|
22
22
|
import { IconButton } from '../../ui/IconButton/index.js';
|
|
23
23
|
import { Portal } from '../../ui/Portal/index.js';
|
|
24
|
-
import { Presence } from '../../ui/Presence.js';
|
|
24
|
+
import { Presence } from '../../ui/Presence/index.js';
|
|
25
25
|
export function GameLaunch() {
|
|
26
26
|
const globalStore = useGlobalStore(useShallow((ctx) => ({
|
|
27
27
|
gameLaunch: ctx.gameLaunch,
|
|
@@ -21,7 +21,7 @@ export function Game(props) {
|
|
|
21
21
|
const favoriteGames = favoriteGamesQuery.data ?? [];
|
|
22
22
|
const markGameAsFavoriteMutation = useMarkGameAsFavoriteMutation();
|
|
23
23
|
const unmarkGameAsFavoriteMutation = useUnmarkGameAsFavoriteMutation();
|
|
24
|
-
const markedAsFavorite = favoriteGames.some((favoriteGame) => favoriteGame.id === game.
|
|
24
|
+
const markedAsFavorite = favoriteGames.some((favoriteGame) => favoriteGame.id === game.reference);
|
|
25
25
|
const classNames = isString(props.className)
|
|
26
26
|
? { root: props.className }
|
|
27
27
|
: (props.className ?? {});
|
|
@@ -12,7 +12,7 @@ import { ChevronRightIcon } from '../../icons/ChevronRightIcon.js';
|
|
|
12
12
|
import { GamingPad01Icon } from '../../icons/GamingPad01Icon.js';
|
|
13
13
|
import { SpinnerIcon } from '../../icons/SpinnerIcon.js';
|
|
14
14
|
import { Button } from '../../ui/Button/index.js';
|
|
15
|
-
import { Empty } from '../Empty.js';
|
|
15
|
+
import { Empty } from '../shared/Empty.js';
|
|
16
16
|
import { Game } from './Game.js';
|
|
17
17
|
import { GameContext } from './GamesContext.js';
|
|
18
18
|
export function GamesCarousel__client(props) {
|
|
@@ -7,7 +7,7 @@ import { GamingPad01Icon } from '../../icons/GamingPad01Icon.js';
|
|
|
7
7
|
import { SpinnerIcon } from '../../icons/SpinnerIcon.js';
|
|
8
8
|
import { Button } from '../../ui/Button/index.js';
|
|
9
9
|
import { Progress } from '../../ui/Progress/index.js';
|
|
10
|
-
import { Empty } from '../Empty.js';
|
|
10
|
+
import { Empty } from '../shared/Empty.js';
|
|
11
11
|
import { Game } from './Game.js';
|
|
12
12
|
import { GameContext } from './GamesContext.js';
|
|
13
13
|
export function GamesList__client(props) {
|
|
@@ -8,7 +8,7 @@ import { SearchLgIcon } from '../../icons/SearchLgIcon.js';
|
|
|
8
8
|
import { Button } from '../../ui/Button/index.js';
|
|
9
9
|
import { Combobox } from '../../ui/Combobox/index.js';
|
|
10
10
|
import { Portal } from '../../ui/Portal/index.js';
|
|
11
|
-
import { Presence } from '../../ui/Presence.js';
|
|
11
|
+
import { Presence } from '../../ui/Presence/index.js';
|
|
12
12
|
import { getGameImageUrl } from '../../utils/getGameImageUrl.js';
|
|
13
13
|
import { GameLaunchTrigger } from '../GameLaunch/index.js';
|
|
14
14
|
export function GamesSearch(props) {
|