feat: Datatable UI improvements

This commit is contained in:
Ahmed Bouhuolia
2024-09-03 16:39:13 +02:00
parent 0c6f23e770
commit 1b51742c36
7 changed files with 22 additions and 16 deletions

View File

@@ -12,6 +12,7 @@ import {
Intent,
Classes,
} from '@blueprintjs/core';
import clsx from 'classnames';
import { Can, Icon, Money, If, AvatarCell } from '@/components';
import { VendorAction, AbilitySubject } from '@/constants/abilityOption';
@@ -163,7 +164,7 @@ export function useVendorsTableColumns() {
id: 'company_name',
Header: intl.get('company_name'),
accessor: 'company_name',
className: 'company_name',
className: clsx(Classes.TEXT_MUTED),
width: 150,
clickable: true,
},
@@ -171,7 +172,7 @@ export function useVendorsTableColumns() {
id: 'work_phone',
Header: intl.get('phone_number'),
accessor: PhoneNumberAccessor,
className: 'work_phone',
className: clsx(Classes.TEXT_MUTED),
width: 100,
clickable: true,
},
@@ -180,6 +181,7 @@ export function useVendorsTableColumns() {
Header: intl.get('note'),
accessor: NoteAccessor,
disableSortBy: true,
className: clsx(Classes.TEXT_MUTED),
width: 85,
clickable: true,
},