Skip to content

Commit

Permalink
a4a: reorder referrals table and change nume
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-lysenko committed Dec 12, 2024
1 parent 94d95d6 commit c355945
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,20 @@ export default function ReferralList( {
enableSorting: false,
},
{
id: 'pending-orders',
label: translate( 'Pending Orders' ).toUpperCase(),
id: 'completed-orders',
label: translate( 'Purchases' ).toUpperCase(),
getValue: () => '-',
render: ( { item }: { item: Referral } ): ReactNode =>
item.referralStatuses.filter( ( status ) => status === 'pending' ).length,
item.referralStatuses.filter( ( status ) => status === 'active' ).length,
enableHiding: false,
enableSorting: false,
},
{
id: 'completed-orders',
label: translate( 'Completed Orders' ).toUpperCase(),
id: 'pending-orders',
label: translate( 'Pending Orders' ).toUpperCase(),
getValue: () => '-',
render: ( { item }: { item: Referral } ): ReactNode =>
item.referralStatuses.filter( ( status ) => status === 'active' ).length,
item.referralStatuses.filter( ( status ) => status === 'pending' ).length,
enableHiding: false,
enableSorting: false,
},
Expand Down

0 comments on commit c355945

Please sign in to comment.