fix: merge conflicts leftovers and query

This commit is contained in:
José Oliveira 2022-01-21 01:45:23 +00:00
parent 68bf2e8315
commit 1e86e830c7
5 changed files with 34 additions and 42 deletions

View file

@ -591,22 +591,6 @@ const CustomerProfile = memo(() => {
{`Test user`}
</div>
</div>
<ActionButton
color="primary"
className={classes.actionButton}
Icon={blocked ? AuthorizeIcon : BlockIcon}
InverseIcon={
blocked ? AuthorizeReversedIcon : BlockReversedIcon
}
onClick={() =>
updateCustomer({
authorizedOverride: blocked
? OVERRIDE_AUTHORIZED
: OVERRIDE_REJECTED
})
}>
{`${blocked ? 'Authorize' : 'Block'} customer`}
</ActionButton>
</div>
</>
)}