From 3427e5f9615ef65d5fec215e07699d46fcee2d14 Mon Sep 17 00:00:00 2001 From: Benji Date: Thu, 30 Jan 2025 11:27:18 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20prices=20summary?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Joana Figueira --- .../Gurb/pages/Contract/ContractSummary.jsx | 40 ++++++++----------- 1 file changed, 16 insertions(+), 24 deletions(-) diff --git a/src/containers/Gurb/pages/Contract/ContractSummary.jsx b/src/containers/Gurb/pages/Contract/ContractSummary.jsx index 42a587b2..091a1111 100644 --- a/src/containers/Gurb/pages/Contract/ContractSummary.jsx +++ b/src/containers/Gurb/pages/Contract/ContractSummary.jsx @@ -180,8 +180,8 @@ const ContractSummary = (props) => { keys.length === 2 ? [t('PEAK'), t('VALLEY')] : keys.length === 3 - ? [t('PEAK'), t('FLAT'), t('VALLEY')] - : keys + ? [t('PEAK'), t('FLAT'), t('VALLEY')] + : keys return ( { ) : ( <> - {/* */} - @@ -257,18 +255,21 @@ const ContractSummary = (props) => { - - + + {t('GURB_REVIEW_PRICES_POWER_TITLE')} - - + + {reviewPrices.map((detail, index) => { return ( { xs={12} sm={6} sx={{ - display: 'flex', - flexDirection: 'column', marginY: '1rem' }}> - - - {t(detail.title)} - - - + + {t(detail.title)} + + ) })} -