Skip to content

Commit

Permalink
Further edits.
Browse files Browse the repository at this point in the history
  • Loading branch information
szabosteve committed Sep 2, 2021
1 parent 2956ede commit 3ea4279
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
EuiFlexGroup,
EuiFlexItem,
EuiIcon,
EuiLink,
EuiSpacer,
EuiText,
EuiTitle,
Expand All @@ -20,10 +19,12 @@ import { isEmpty } from 'lodash';
import React, { useCallback } from 'react';
import { useHistory, useLocation } from 'react-router-dom';
import { useUrlParams } from '../../../context/url_params_context/use_url_params';
import { ElasticDocsLink } from '../../shared/Links/ElasticDocsLink';
import { HeightRetainer } from '../HeightRetainer';
import { fromQuery, toQuery } from '../Links/url_helpers';
import { filterSectionsByTerm, SectionsWithRows } from './helper';
import { Section } from './Section';
import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context';

interface Props {
sections: SectionsWithRows;
Expand All @@ -34,6 +35,7 @@ export function MetadataTable({ sections }: Props) {
const location = useLocation();
const { urlParams } = useUrlParams();
const { searchTerm = '' } = urlParams;
const { docLinks } = useApmPluginContext().core;

const filteredSections = filterSectionsByTerm(sections, searchTerm);

Expand All @@ -55,11 +57,11 @@ export function MetadataTable({ sections }: Props) {
<React.Fragment>
<EuiFlexGroup justifyContent="flexEnd" alignItems="center">
<EuiFlexItem grow={false}>
<EuiLink href={docLinks.links.apm.metaData}>
<ElasticDocsLink section="/apm/get-started" path="/metadata.html">
<EuiText size="s">
<EuiIcon type="help" /> How to add labels and other data
</EuiText>
</EuiLink>
</ElasticDocsLink>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiFieldSearch
Expand Down

0 comments on commit 3ea4279

Please sign in to comment.