From d435f24105b22d83f0fed7d587193a7b12a02d6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Oliveira?= Date: Mon, 18 Oct 2021 13:42:55 +0100 Subject: [PATCH] feat: add dynamic position to editable cards, reject/authorize buttons --- .../src/pages/Customers/components/EditableCard.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/new-lamassu-admin/src/pages/Customers/components/EditableCard.js b/new-lamassu-admin/src/pages/Customers/components/EditableCard.js index fc75f458..492ca943 100644 --- a/new-lamassu-admin/src/pages/Customers/components/EditableCard.js +++ b/new-lamassu-admin/src/pages/Customers/components/EditableCard.js @@ -123,7 +123,12 @@ const EditableCard = ({ [classes.label1Rejected]: state === OVERRIDE_REJECTED, [classes.label1Accepted]: state === OVERRIDE_AUTHORIZED } +<<<<<<< HEAD +======= + const isNotAuthorized = + state === OVERRIDE_REJECTED || state === OVERRIDE_PENDING +>>>>>>> feat: add dynamic position to editable cards, reject/authorize buttons const authorized = state === OVERRIDE_PENDING ? { label: 'Pending', type: 'neutral' }