From 27a7f613be1ae99bd49734ade0666ecae2221298 Mon Sep 17 00:00:00 2001 From: elforjani3 Date: Sat, 12 Jun 2021 20:00:37 +0200 Subject: [PATCH] feat: placeholder contact selcet --- client/src/components/ContactSelecetList.js | 7 ++++++- client/src/lang/en/index.json | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/client/src/components/ContactSelecetList.js b/client/src/components/ContactSelecetList.js index 401de14bf..02f301fbe 100644 --- a/client/src/components/ContactSelecetList.js +++ b/client/src/components/ContactSelecetList.js @@ -1,5 +1,7 @@ import React, { useCallback, useState, useEffect, useMemo } from 'react'; import { FormattedMessage as T } from 'components'; +import intl from 'react-intl-universal'; + import { MenuItem, Button } from '@blueprintjs/core'; import { Select } from '@blueprintjs/select'; import classNames from 'classnames'; @@ -14,7 +16,7 @@ export default function ContactSelecetList({ onContactSelected, popoverFill = false, disabled = false, - buttonProps + buttonProps, }) { const contacts = useMemo( () => @@ -89,6 +91,9 @@ export default function ContactSelecetList({ className={classNames(CLASSES.FORM_GROUP_LIST_SELECT, { [CLASSES.SELECT_LIST_FILL_POPOVER]: popoverFill, })} + inputProps={{ + placeholder: intl.get('filter_') + }} >