From 4e84a6392e0a9deef7be2728ffb02ac4b9b56c3d Mon Sep 17 00:00:00 2001 From: Andrei Dekterev Date: Tue, 14 Dec 2021 13:33:16 +0400 Subject: [PATCH] fix(#2038): add min price in sunscription --- src/config/lexics/indexLexics.tsx | 1 + .../components/SelectSubscription/index.tsx | 48 +++++++++++-------- .../components/SelectSubscription/styled.tsx | 14 ++++++ src/features/Price/index.tsx | 12 +++++ src/features/Price/styled.tsx | 9 ++++ src/requests/getSubscriptions.tsx | 1 + 6 files changed, 64 insertions(+), 21 deletions(-) create mode 100644 src/features/BuyMatchPopup/components/SelectSubscription/styled.tsx diff --git a/src/config/lexics/indexLexics.tsx b/src/config/lexics/indexLexics.tsx index 2175b78f..595409e5 100644 --- a/src/config/lexics/indexLexics.tsx +++ b/src/config/lexics/indexLexics.tsx @@ -9,6 +9,7 @@ const matchPopupLexics = { episode_duration: 13410, events: 1020, from_end_match: 15396, + from_price: 3992, from_start_match: 15395, gk: 3515, go_back_to_match: 13405, diff --git a/src/features/BuyMatchPopup/components/SelectSubscription/index.tsx b/src/features/BuyMatchPopup/components/SelectSubscription/index.tsx index 67bd9741..b925a148 100644 --- a/src/features/BuyMatchPopup/components/SelectSubscription/index.tsx +++ b/src/features/BuyMatchPopup/components/SelectSubscription/index.tsx @@ -31,6 +31,8 @@ import { Pass, } from '../SubscriptionsList/styled' +import { Price } from './styled' + export const ChooseSub = styled.div` font-weight: 600; font-size: 16px; @@ -87,27 +89,31 @@ export const SelectSubscriptionStep = () => { - { - map(initialSubscription.data, (subscription, index) => ( - onItemClick(subscription, index)} - active={active === index} - > - - - - - - - - - - - - - )) - } + {map(initialSubscription.data, (subscription, index) => ( + onItemClick(subscription, index)} + active={active === index} + > + + + + + + + + + + + + + + + ))}