update column lifetime spend column label, and re-order columns

This commit is contained in:
David Levin 2019-01-23 09:51:12 -08:00
parent 3521e8d485
commit e7a20b4216
1 changed files with 11 additions and 11 deletions

View File

@ -41,10 +41,15 @@ export default class CustomersReportTable extends Component {
key: 'username',
hiddenByDefault: true,
},
{
label: __( 'Last Active', 'wc-admin' ),
key: 'date_last_active',
defaultSort: true,
isSortable: true,
},
{
label: __( 'Sign Up', 'wc-admin' ),
key: 'date_registered',
defaultSort: true,
isSortable: true,
},
{
@ -58,7 +63,7 @@ export default class CustomersReportTable extends Component {
isNumeric: true,
},
{
label: __( 'Lifetime Spend', 'wc-admin' ),
label: __( 'Total Spend', 'wc-admin' ),
key: 'total_spend',
isSortable: true,
isNumeric: true,
@ -69,11 +74,6 @@ export default class CustomersReportTable extends Component {
key: 'avg_order_value',
isNumeric: true,
},
{
label: __( 'Last Active', 'wc-admin' ),
key: 'date_last_active',
isSortable: true,
},
{
label: __( 'Country', 'wc-admin' ),
key: 'country',
@ -147,6 +147,10 @@ export default class CustomersReportTable extends Component {
display: username,
value: username,
},
{
display: <Date date={ date_last_active } visibleFormat={ defaultTableDateFormat } />,
value: date_last_active,
},
{
display: dateRegistered,
value: date_registered,
@ -167,10 +171,6 @@ export default class CustomersReportTable extends Component {
display: formatCurrency( avg_order_value ),
value: getCurrencyFormatDecimal( avg_order_value ),
},
{
display: <Date date={ date_last_active } visibleFormat={ defaultTableDateFormat } />,
value: date_last_active,
},
{
display: countryDisplay,
value: country,