feat: notes.

This commit is contained in:
elforjani13
2021-12-27 22:23:41 +02:00
parent a6cd483eb9
commit 1e361dac66
5 changed files with 14 additions and 8 deletions

View File

@@ -1,4 +1,5 @@
import React from 'react';
import intl from 'react-intl-universal';
import { MenuItem, Intent } from '@blueprintjs/core';
import { Icon, Choose, T, TextStatus } from 'components';
@@ -108,7 +109,7 @@ const transformReceiptsToSearch = (creditNote) => ({
*/
export const universalSearchCreditNoteBind = () => ({
resourceType: RESOURCES_TYPES.CREDIT_NOTE,
optionItemLabel: 'Credit notes',
optionItemLabel: intl.get('credit_note.label'),
selectItemAction: CreditNoteUniversalSearchSelect,
itemRenderer: CreditNoteUniversalSearchItem,
itemSelect: transformReceiptsToSearch,