[Logstash] Remove formatted message component in favor of i18n translate function (#45658)

* Remove formatted message component in favor for i18n translate function.

* Update broken test snapshot.
This commit is contained in:
Justin Kambic 2019-09-23 16:30:24 -04:00 committed by GitHub
parent 08c87ea365
commit 24e9bc33d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 11 deletions

View file

@ -79,11 +79,7 @@ exports[`PipelinesTable component renders component as expected 1`] = `
Object {
"field": "id",
"multiSelect": false,
"name": <FormattedMessage
defaultMessage="Filter by ID"
id="xpack.logstash.pipelinesTable.filterByIdLabel"
values={Object {}}
/>,
"name": "Filter by ID",
"options": Array [
Object {
"name": "testPipeline",

View file

@ -152,12 +152,7 @@ function PipelinesTableUi({
{
type: 'field_value_selection',
field: 'id',
name: (
<FormattedMessage
id="xpack.logstash.pipelinesTable.filterByIdLabel"
defaultMessage="Filter by ID"
/>
),
name: i18n.translate('xpack.logstash.pipelinesTable.filterByIdLabel', { defaultMessage: 'Filter by ID' }),
multiSelect: false,
options: pipelines.map(({ id }) => {
return {