mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-22 15:50:32 +00:00
feat: placeholder contact selcet
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
import React, { useCallback, useState, useEffect, useMemo } from 'react';
|
import React, { useCallback, useState, useEffect, useMemo } from 'react';
|
||||||
import { FormattedMessage as T } from 'components';
|
import { FormattedMessage as T } from 'components';
|
||||||
|
import intl from 'react-intl-universal';
|
||||||
|
|
||||||
import { MenuItem, Button } from '@blueprintjs/core';
|
import { MenuItem, Button } from '@blueprintjs/core';
|
||||||
import { Select } from '@blueprintjs/select';
|
import { Select } from '@blueprintjs/select';
|
||||||
import classNames from 'classnames';
|
import classNames from 'classnames';
|
||||||
@@ -14,7 +16,7 @@ export default function ContactSelecetList({
|
|||||||
onContactSelected,
|
onContactSelected,
|
||||||
popoverFill = false,
|
popoverFill = false,
|
||||||
disabled = false,
|
disabled = false,
|
||||||
buttonProps
|
buttonProps,
|
||||||
}) {
|
}) {
|
||||||
const contacts = useMemo(
|
const contacts = useMemo(
|
||||||
() =>
|
() =>
|
||||||
@@ -89,6 +91,9 @@ export default function ContactSelecetList({
|
|||||||
className={classNames(CLASSES.FORM_GROUP_LIST_SELECT, {
|
className={classNames(CLASSES.FORM_GROUP_LIST_SELECT, {
|
||||||
[CLASSES.SELECT_LIST_FILL_POPOVER]: popoverFill,
|
[CLASSES.SELECT_LIST_FILL_POPOVER]: popoverFill,
|
||||||
})}
|
})}
|
||||||
|
inputProps={{
|
||||||
|
placeholder: intl.get('filter_')
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
|
|||||||
@@ -1105,5 +1105,6 @@
|
|||||||
"plan_radio_name":"{name}",
|
"plan_radio_name":"{name}",
|
||||||
"there_were_no_purchases_during_the_selected_date_range":"There were no purchases during the selected date range.",
|
"there_were_no_purchases_during_the_selected_date_range":"There were no purchases during the selected date range.",
|
||||||
"there_were_no_sales_during_the_selected_date_range":"There were no sales during the selected date range.",
|
"there_were_no_sales_during_the_selected_date_range":"There were no sales during the selected date range.",
|
||||||
"there_were_no_inventory_transactions_during_the_selected_date_range":"There were no inventory transactions during the selected date range."
|
"there_were_no_inventory_transactions_during_the_selected_date_range":"There were no inventory transactions during the selected date range.",
|
||||||
|
"filter_":"Filter..."
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user