mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
feat: localization universal search.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import React from 'react';
|
||||
import { MenuItem } from '@blueprintjs/core';
|
||||
import intl from 'react-intl-universal';
|
||||
|
||||
import { formattedAmount } from 'utils';
|
||||
import { T, Icon, Choose, If } from 'components';
|
||||
import intl from 'react-intl-universal';
|
||||
|
||||
import { RESOURCES_TYPES } from 'common/resourcesTypes';
|
||||
import withDrawerActions from '../../Drawer/withDrawerActions';
|
||||
@@ -109,7 +109,7 @@ const billsToSearch = (bill) => ({
|
||||
|
||||
export const universalSearchBillBind = () => ({
|
||||
resourceType: RESOURCES_TYPES.BILL,
|
||||
optionItemLabel: 'Bills',
|
||||
optionItemLabel: intl.get('bills'),
|
||||
selectItemAction: BillUniversalSearchSelect,
|
||||
itemRenderer: BillUniversalSearchItem,
|
||||
itemSelect: billsToSearch,
|
||||
|
||||
Reference in New Issue
Block a user