mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
feat: items suggest filed.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import React, { useCallback, useMemo } from 'react';
|
||||
import ItemsListField from 'components/ItemsListField';
|
||||
import React, { useCallback } from 'react';
|
||||
// import ItemsListField from 'components/ItemsListField';
|
||||
import ItemsSuggestField from 'components/ItemsSuggestField';
|
||||
import classNames from 'classnames';
|
||||
import { FormGroup, Classes, Intent } from '@blueprintjs/core';
|
||||
|
||||
|
||||
export default function ItemsListCell({
|
||||
column: { id, filterSellable, filterPurchasable },
|
||||
row: { index },
|
||||
@@ -24,7 +24,7 @@ export default function ItemsListCell({
|
||||
intent={error ? Intent.DANGER : null}
|
||||
className={classNames('form-group--select-list', Classes.FILL)}
|
||||
>
|
||||
<ItemsListField
|
||||
<ItemsSuggestField
|
||||
items={items}
|
||||
onItemSelected={handleItemSelected}
|
||||
selectedItemId={initialValue}
|
||||
|
||||
Reference in New Issue
Block a user