From 70f5de16748f2f0dda9c9b2bbcae3deb74e0e84d Mon Sep 17 00:00:00 2001 From: elforjani3 Date: Thu, 11 Mar 2021 22:29:31 +0200 Subject: [PATCH] refactoring (sale invoice): add icon quick-payment --- .../Sales/Invoices/InvoicesLanding/components.js | 4 ++-- client/src/lang/en/index.js | 2 +- client/src/static/json/icons.js | 10 ++++++++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/client/src/containers/Sales/Invoices/InvoicesLanding/components.js b/client/src/containers/Sales/Invoices/InvoicesLanding/components.js index 7521ab563..eb7655dae 100644 --- a/client/src/containers/Sales/Invoices/InvoicesLanding/components.js +++ b/client/src/containers/Sales/Invoices/InvoicesLanding/components.js @@ -130,8 +130,8 @@ export function ActionsMenu({ } - text={formatMessage({ id: 'make_as_payment' })} + icon={} + text={formatMessage({ id: 'add_payment' })} onClick={safeCallback(onQuick, original)} /> diff --git a/client/src/lang/en/index.js b/client/src/lang/en/index.js index b85f6cb32..1969c4e44 100644 --- a/client/src/lang/en/index.js +++ b/client/src/lang/en/index.js @@ -1002,7 +1002,7 @@ export default { invoice_date: 'Invoice date', invoice_amount: 'Invoice amount', make_payment: 'Make Payment', - make_as_payment: 'Make as payment', + add_payment: 'Add Payment', quick_receive_payment: 'Quick Receive Payment', amount_received: 'Amount Received', payment_no: 'Payment No.', diff --git a/client/src/static/json/icons.js b/client/src/static/json/icons.js index e725683b4..1a95d7e99 100644 --- a/client/src/static/json/icons.js +++ b/client/src/static/json/icons.js @@ -159,7 +159,7 @@ export default { ], viewBox: '0 0 309.09 42.89', }, - "mini-bigcapital": { + 'mini-bigcapital': { path: [ 'M56,3.16,61.33,8.5,31.94,37.9l-5.35-5.35Z', 'M29.53,6.94l5.35,5.34L5.49,41.67.14,36.33l15.8-15.8Z', @@ -424,5 +424,11 @@ export default { 'M12 6.5c0-.28-.22-.5-.5-.5h-7a.495.495 0 00-.37.83l3.5 4c.09.1.22.17.37.17s.28-.07.37-.17l3.5-4c.08-.09.13-.2.13-.33z', ], viewBox: '0 0 16 16', - } + }, + 'quick-payment-16': { + path: [ + 'M19,14V6c0-1.1-0.9-2-2-2H3C1.9,4,1,4.9,1,6v8c0,1.1,0.9,2,2,2h14C18.1,16,19,15.1,19,14z M17,14H3V6h14V14z M10,7 c-1.66,0-3,1.34-3,3s1.34,3,3,3s3-1.34,3-3S11.66,7,10,7z M23,7v11c0,1.1-0.9,2-2,2H4c0-1,0-0.9,0-2h17V7C22.1,7,22,7,23,7z', + ], + viewBox: '0 0 24 24', + }, };