From a604f767daa0131b6856992ac9eab5f1ecf4dd0e Mon Sep 17 00:00:00 2001 From: Mirlan Date: Thu, 25 Mar 2021 19:27:16 +0600 Subject: [PATCH] refactor(958): only one subscription can be selected (#343) --- .../components/ConfirmationStep/index.tsx | 9 ++--- .../SubscriptionSelectionStep/index.tsx | 2 ++ .../components/Subscriptions/index.tsx | 4 +-- .../components/SubscriptionsList/index.tsx | 7 ++-- .../BuyMatchPopup/store/hooks/index.tsx | 6 ++-- .../store/hooks/useSubscriptions.tsx | 34 ++++++------------- src/requests/buyMatchSubscriptions.tsx | 8 +---- 7 files changed, 25 insertions(+), 45 deletions(-) diff --git a/src/features/BuyMatchPopup/components/ConfirmationStep/index.tsx b/src/features/BuyMatchPopup/components/ConfirmationStep/index.tsx index a5a3af39..20fcb0a5 100644 --- a/src/features/BuyMatchPopup/components/ConfirmationStep/index.tsx +++ b/src/features/BuyMatchPopup/components/ConfirmationStep/index.tsx @@ -20,9 +20,8 @@ import { export const ConfirmationStep = () => { const { close, - selectedSubscriptions, + selectedSubscription, subscribeToMatches, - totalPrice, } = useBuyMatchPopupStore() return ( @@ -36,11 +35,13 @@ export const ConfirmationStep = () => { - +
diff --git a/src/features/BuyMatchPopup/components/SubscriptionSelectionStep/index.tsx b/src/features/BuyMatchPopup/components/SubscriptionSelectionStep/index.tsx index 76ae8e78..3e428c14 100644 --- a/src/features/BuyMatchPopup/components/SubscriptionSelectionStep/index.tsx +++ b/src/features/BuyMatchPopup/components/SubscriptionSelectionStep/index.tsx @@ -25,6 +25,7 @@ export const SubscriptionSelectionStep = () => { close, goTo, match, + selectedSubscription, } = useBuyMatchPopupStore() if (!match) return null @@ -47,6 +48,7 @@ export const SubscriptionSelectionStep = () => {