From 7987f68aa3e7b04ca9ec89d3d54433939ddaf473 Mon Sep 17 00:00:00 2001 From: "a.bouhuolia" Date: Tue, 21 Dec 2021 16:55:35 +0200 Subject: [PATCH] refactor: payment made details total lines. --- .../PaymentMadeDetailFooter.js | 30 +++++++++++++------ 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/src/containers/Drawers/PaymentMadeDetailDrawer/PaymentMadeDetailFooter.js b/src/containers/Drawers/PaymentMadeDetailDrawer/PaymentMadeDetailFooter.js index eedf8e9c4..5ba3e99ff 100644 --- a/src/containers/Drawers/PaymentMadeDetailDrawer/PaymentMadeDetailFooter.js +++ b/src/containers/Drawers/PaymentMadeDetailDrawer/PaymentMadeDetailFooter.js @@ -1,8 +1,13 @@ import React from 'react'; -import clsx from 'classnames'; +import styled from 'styled-components'; -import { T, TotalLines, TotalLine } from 'components'; -import PaymentDrawerCls from './PaymentMadeDrawer.module.scss'; +import { + T, + TotalLines, + TotalLine, + TotalLineBorderStyle, + TotalLineTextStyle, +} from 'components'; import { usePaymentMadeDetailContext } from './PaymentMadeDetailProvider'; /** @@ -12,19 +17,26 @@ export default function PaymentMadeDetailFooter() { const { paymentMade } = usePaymentMadeDetailContext(); return ( -
- + + } value={paymentMade.amount} - className={clsx(PaymentDrawerCls.total_line_subtotal)} + borderStyle={TotalLineBorderStyle.SingleDark} /> } value={paymentMade.formatted_amount} - className={clsx(PaymentDrawerCls.total_line_total)} + borderStyle={TotalLineBorderStyle.DoubleDark} + textStyle={TotalLineTextStyle.Bold} /> - -
+ + ); } + +export const PaymentMadeFooterRoot = styled.div``; + +export const PaymentMadeTotalLines = styled(TotalLines)` + margin-left: auto; +`;