Skip to content

Commit

Permalink
Use constant instead of inline i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
scottybollinger committed Jan 4, 2021
1 parent 5c8c6d0 commit b3b0aad
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
*/

import React from 'react';
import { i18n } from '@kbn/i18n';
import { EuiButtonEmpty, EuiText } from '@elastic/eui';

import { externalUrl, getWorkplaceSearchUrl } from '../../../shared/enterprise_search_url';

import { NAV } from '../../constants';

export const WorkplaceSearchHeaderActions: React.FC = () => {
if (!externalUrl.enterpriseSearchUrl) return null;

Expand All @@ -20,11 +21,7 @@ export const WorkplaceSearchHeaderActions: React.FC = () => {
iconType="search"
style={{ marginRight: 5 }}
>
<EuiText size="s">
{i18n.translate('xpack.enterpriseSearch.workplaceSearch.headerActions.searchApplication', {
defaultMessage: 'Go to search application',
})}
</EuiText>
<EuiText size="s">{NAV.SEARCH}</EuiText>
</EuiButtonEmpty>
);
};

0 comments on commit b3b0aad

Please sign in to comment.