Skip to content

Commit

Permalink
Implement review suggestion for i8n compat
Browse files Browse the repository at this point in the history
  • Loading branch information
cachedout committed Jan 2, 2020
1 parent 4f4ae09 commit 84b8679
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ import { MonitoringTimeseriesContainer } from '../../chart';
import { ShardAllocation } from '../shard_allocation/shard_allocation';
import { FormattedMessage } from '@kbn/i18n/react';

function formatScreenReaderMsg(msg, nodeSummary) {
return msg + ' ' + nodeSummary.name;
}

export const Node = ({
nodeSummary,
metrics,
Expand All @@ -51,7 +47,7 @@ export const Node = ({
<h1>
<FormattedMessage
id="xpack.monitoring.elasticsearch.node.heading"
defaultMessage={formatScreenReaderMsg('Elasticsearch node', nodeSummary)}
defaultMessage={`Elasticsearch node ${nodeSummary.name}`}
/>
</h1>
</EuiScreenReaderOnly>
Expand Down

0 comments on commit 84b8679

Please sign in to comment.