Skip to content

Commit

Permalink
[Data Explorer][Discover 2.0] Append popout icon to oui link for doc …
Browse files Browse the repository at this point in the history
…viewer links

Issue Resolve
opensearch-project#4825

Signed-off-by: ananzh <[email protected]>
  • Loading branch information
ananzh committed Aug 30, 2023
1 parent 03ae2bd commit 6b43d72
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@
*/

import React from 'react';
import { EuiFlexGroup, EuiFlexItem, EuiListGroupItem, EuiListGroupItemProps } from '@elastic/eui';
import {
EuiFlexGroup,
EuiFlexItem,
EuiListGroupItemProps,
EuiLink,
EuiSpacer,
EuiTextColor,
} from '@elastic/eui';
import { getDocViewsLinksRegistry } from '../../../opensearch_dashboards_services';
import { DocViewLinkRenderProps } from '../../doc_views_links/doc_views_links_types';

Expand All @@ -24,10 +31,12 @@ export function DocViewerLinks(renderProps: DocViewLinkRenderProps) {
});

return (
<EuiFlexGroup gutterSize="xs" justifyContent="flexEnd">
<EuiFlexGroup gutterSize="m" justifyContent="flexEnd">
{listItems.map((item, index) => (
<EuiFlexItem key={index} grow={false}>
<EuiListGroupItem {...item} />
<EuiLink href={item.href} target="_blank" style={{ fontWeight: 'normal' }}>
{item.label}
</EuiLink>
</EuiFlexItem>
))}
</EuiFlexGroup>
Expand Down

0 comments on commit 6b43d72

Please sign in to comment.