refactor: simplify naming after filter removal
This commit is contained in:
parent
8e4bb9a3fb
commit
82132e8eb8
2 changed files with 6 additions and 7 deletions
|
|
@ -12,19 +12,18 @@ import {
|
|||
|
||||
import { getFormattedPhone, getName } from './helper'
|
||||
|
||||
const CustomersList = ({ data, locale, onClick, loading }) => {
|
||||
const CustomersList = ({ data, country, onClick, loading }) => {
|
||||
const columns = useMemo(
|
||||
() => [
|
||||
{
|
||||
accessorKey: 'id',
|
||||
header: 'ID',
|
||||
size: 315,
|
||||
enableColumnFilter: true,
|
||||
},
|
||||
{
|
||||
id: 'phone-email',
|
||||
accessorFn: it =>
|
||||
`${getFormattedPhone(it.phone, locale.country) || ''} ${it.email || ''}`,
|
||||
`${getFormattedPhone(it.phone, country) || ''} ${it.email || ''}`,
|
||||
size: 180,
|
||||
header: 'Phone/email',
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue