feat: add dynamic position to editable cards, reject/authorize buttons

This commit is contained in:
José Oliveira 2021-10-18 13:42:55 +01:00
parent 412f11f7f0
commit d435f24105

View file

@ -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' }