Skip to content

Commit

Permalink
[PAY-2794] Use UserLink for purchases/sales tables (#8306)
Browse files Browse the repository at this point in the history
  • Loading branch information
dharit-tan authored May 2, 2024
1 parent 4abc13b commit 4d37233
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { formatUSDCWeiToUSDString } from '@audius/common/utils'
import BN from 'bn.js'
import moment from 'moment'

import { UserLink } from 'components/link'
import { Table } from 'components/table'
import { UserNameAndBadges } from 'components/user-name-and-badges/UserNameAndBadges'

import { PurchaseCell, PurchaseRow } from '../types'
import { isEmptyPurchaseRow } from '../utils'
Expand Down Expand Up @@ -60,7 +60,7 @@ const renderContentNameCell = (cellInfo: PurchaseCell) => {

const renderArtistCell = (cellInfo: PurchaseCell) => {
const { sellerUserId } = cellInfo.row.original
return <UserNameAndBadges userId={sellerUserId} />
return <UserLink popover userId={sellerUserId} />
}

const renderDateCell = (cellInfo: PurchaseCell) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { formatUSDCWeiToUSDString } from '@audius/common/utils'
import { BN } from 'bn.js'
import moment from 'moment'

import { UserLink } from 'components/link'
import { Table } from 'components/table'
import { UserNameAndBadges } from 'components/user-name-and-badges/UserNameAndBadges'

import styles from '../PayAndEarnPage.module.css'
import { PurchaseCell, PurchaseRow } from '../types'
Expand Down Expand Up @@ -58,7 +58,7 @@ const renderContentNameCell = (cellInfo: PurchaseCell) => {

const renderBuyerCell = (cellInfo: PurchaseCell) => {
const { buyerUserId } = cellInfo.row.original
return <UserNameAndBadges userId={buyerUserId} />
return <UserLink popover userId={buyerUserId} />
}

const renderDateCell = (cellInfo: PurchaseCell) => {
Expand Down

0 comments on commit 4d37233

Please sign in to comment.