fix: search filter section according to spec
This commit is contained in:
parent
f2a304ae49
commit
e4c383e656
6 changed files with 91 additions and 40 deletions
|
|
@ -20,36 +20,36 @@ const CustomersList = ({ data, locale, onClick, loading }) => {
|
|||
const elements = [
|
||||
{
|
||||
header: 'Phone',
|
||||
width: 172,
|
||||
width: 175,
|
||||
view: it => getFormattedPhone(it.phone, locale.country)
|
||||
},
|
||||
{
|
||||
header: 'Name',
|
||||
width: 241,
|
||||
width: 247,
|
||||
view: getName
|
||||
},
|
||||
{
|
||||
header: 'Total TXs',
|
||||
width: 126,
|
||||
width: 130,
|
||||
textAlign: 'right',
|
||||
view: it => `${Number.parseInt(it.totalTxs)}`
|
||||
},
|
||||
{
|
||||
header: 'Total spent',
|
||||
width: 152,
|
||||
width: 155,
|
||||
textAlign: 'right',
|
||||
view: it =>
|
||||
`${Number.parseFloat(it.totalSpent)} ${it.lastTxFiatCode ?? ''}`
|
||||
},
|
||||
{
|
||||
header: 'Last active',
|
||||
width: 133,
|
||||
width: 137,
|
||||
view: it =>
|
||||
ifNotNull(it.lastActive, moment.utc(it.lastActive).format('YYYY-MM-D'))
|
||||
},
|
||||
{
|
||||
header: 'Last transaction',
|
||||
width: 161,
|
||||
width: 165,
|
||||
textAlign: 'right',
|
||||
view: it => {
|
||||
const hasLastTx = !R.isNil(it.lastTxFiatCode)
|
||||
|
|
@ -66,7 +66,7 @@ const CustomersList = ({ data, locale, onClick, loading }) => {
|
|||
},
|
||||
{
|
||||
header: 'Status',
|
||||
width: 188,
|
||||
width: 191,
|
||||
view: it => <MainStatus statuses={[getAuthorizedStatus(it)]} />
|
||||
}
|
||||
]
|
||||
|
|
@ -78,6 +78,7 @@ const CustomersList = ({ data, locale, onClick, loading }) => {
|
|||
emptyText="No customers so far"
|
||||
elements={elements}
|
||||
data={data}
|
||||
width={'1200'}
|
||||
onClick={onClick}
|
||||
/>
|
||||
</>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue