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 5cc63d05a6
commit 550bc2b7a4
9 changed files with 403 additions and 319 deletions

View file

@ -25,7 +25,6 @@ import styles from './CustomerProfile.styles'
import {
CustomerDetails,
TransactionsList,
ComplianceDetails,
CustomerSidebar
} from './components'
import { getFormattedPhone, getName } from './helper'
@ -260,22 +259,14 @@ const CustomerProfile = memo(() => {
setShowCompliance={() => setShowCompliance(!showCompliance)}
/>
</Box>
{!showCompliance && (
<div>
<TransactionsList
customer={customerData}
data={sortedTransactions}
locale={locale}
loading={loading}
/>
</div>
)}
{showCompliance && (
<ComplianceDetails
<div>
<TransactionsList
customer={customerData}
updateCustomer={updateCustomer}
data={sortedTransactions}
locale={locale}
loading={loading}
/>
)}
</div>
</div>
)}
{isCustomerData && (