fix(ItemEntries): align checkbox.

This commit is contained in:
a.bouhuolia
2022-03-21 16:13:50 +02:00
parent 932afddf11
commit 90c77d80eb
3 changed files with 2 additions and 7 deletions

View File

@@ -10,7 +10,6 @@ export default function DatatableEditable({
totalRow = false, totalRow = false,
actions, actions,
name, name,
className,
...tableProps ...tableProps
}) { }) {
return ( return (

View File

@@ -145,7 +145,7 @@ export function useEditableItemsEntriesColumns({ landedCost }) {
disabledAccessor: 'landed_cost_disabled', disabledAccessor: 'landed_cost_disabled',
disableSortBy: true, disableSortBy: true,
disableResizing: true, disableResizing: true,
className: 'landed-cost', align: Align.Center,
}, },
] ]
: []), : []),

View File

@@ -8,11 +8,6 @@ import { Align, CellType } from 'common';
import { MoneyFieldCell, Icon, T } from 'components'; import { MoneyFieldCell, Icon, T } from 'components';
import { InputGroupCell, ItemsListCell } from 'components/DataTableCells'; import { InputGroupCell, ItemsListCell } from 'components/DataTableCells';
// Index table cell.
export function IndexTableCell({ row: { index } }) {
return <span>{index + 1}</span>;
}
/** /**
* Actions cell renderer component. * Actions cell renderer component.
*/ */
@@ -119,6 +114,7 @@ export const useWarehouseTransferTableColumns = () => {
{ {
Header: intl.get('warehouse_transfer.column.cost_price'), Header: intl.get('warehouse_transfer.column.cost_price'),
accessor: 'cost', accessor: 'cost',
Cell: MoneyFieldCell,
disableSortBy: true, disableSortBy: true,
align: Align.Right, align: Align.Right,
width: 80, width: 80,