feat: filter sellable and purchasable items.

This commit is contained in:
Ahmed Bouhuolia
2020-11-24 11:24:48 +02:00
parent 4cdaacfa61
commit a7e5401b7d
5 changed files with 51 additions and 16 deletions

View File

@@ -4,8 +4,8 @@ import classNames from 'classnames';
import { FormGroup, Classes, Intent } from '@blueprintjs/core';
function ItemsListCell({
column: { id },
export default function ItemsListCell({
column: { id, filterSellable, filterPurchasable },
row: { index },
cell: { value: initialValue },
payload: { items, updateData, errors },
@@ -28,9 +28,9 @@ function ItemsListCell({
items={items}
onItemSelected={handleItemSelected}
selectedItemId={initialValue}
sellable={filterSellable}
purchasable={filterPurchasable}
/>
</FormGroup>
);
}
export default ItemsListCell;