From 85a5be7e79b209c0ab6b40c7cb28d2b89e0fd3af Mon Sep 17 00:00:00 2001 From: Mirlan Date: Fri, 26 Mar 2021 13:16:57 +0600 Subject: [PATCH] refactor(961): removed selected subscription confirmation step (#344) --- .../components/ConfirmationStep/index.tsx | 49 ------------------- .../SubscriptionSelectionStep/index.tsx | 5 +- .../components/Subscriptions/index.tsx | 1 - .../components/SubscriptionsList/index.tsx | 8 ++- .../components/SubscriptionsList/styled.tsx | 10 +--- src/features/BuyMatchPopup/index.tsx | 2 - .../BuyMatchPopup/store/hooks/index.tsx | 4 +- .../store/hooks/useSubscriptions.tsx | 4 +- src/features/BuyMatchPopup/types.tsx | 1 - 9 files changed, 11 insertions(+), 73 deletions(-) delete mode 100644 src/features/BuyMatchPopup/components/ConfirmationStep/index.tsx diff --git a/src/features/BuyMatchPopup/components/ConfirmationStep/index.tsx b/src/features/BuyMatchPopup/components/ConfirmationStep/index.tsx deleted file mode 100644 index 20fcb0a5..00000000 --- a/src/features/BuyMatchPopup/components/ConfirmationStep/index.tsx +++ /dev/null @@ -1,49 +0,0 @@ -import { currencySymbols } from 'config' - -import { T9n } from 'features/T9n' -import { - CloseButton, - Header, - HeaderActions, - HeaderTitle, -} from 'features/PopupComponents' - -import { useBuyMatchPopupStore } from '../../store' -import { SubscriptionsList } from '../SubscriptionsList' -import { - Wrapper, - Footer, - Button, - Body, -} from '../../styled' - -export const ConfirmationStep = () => { - const { - close, - selectedSubscription, - subscribeToMatches, - } = useBuyMatchPopupStore() - - return ( - -
- - - - - - -
- - - -
- -
-
- ) -} diff --git a/src/features/BuyMatchPopup/components/SubscriptionSelectionStep/index.tsx b/src/features/BuyMatchPopup/components/SubscriptionSelectionStep/index.tsx index 3e428c14..de8d09b2 100644 --- a/src/features/BuyMatchPopup/components/SubscriptionSelectionStep/index.tsx +++ b/src/features/BuyMatchPopup/components/SubscriptionSelectionStep/index.tsx @@ -9,7 +9,6 @@ import { } from 'features/PopupComponents' import { Name } from 'features/Name' -import { Steps } from '../../types' import { useBuyMatchPopupStore } from '../../store' import { SelectedCard } from '../SelectedCard' import { Subscriptions } from '../Subscriptions' @@ -23,9 +22,9 @@ import { export const SubscriptionSelectionStep = () => { const { close, - goTo, match, selectedSubscription, + subscribeToMatch, } = useBuyMatchPopupStore() if (!match) return null @@ -49,7 +48,7 @@ export const SubscriptionSelectionStep = () => {