Skip to content

Commit

Permalink
[CI] Auto-commit changed files from 'node scripts/precommit_hook.js -…
Browse files Browse the repository at this point in the history
…-ref HEAD~1..HEAD --fix'
  • Loading branch information
kibanamachine committed Oct 26, 2023
1 parent f0a6f43 commit 8e751f5
Showing 1 changed file with 25 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,15 @@ export const ViewDetailsPopover = (props: Props) => {
}

if (props.warnings.length === 1) {
return props.displayAsLink
? (
<EuiLink color="primary" onClick={props.warnings[0].openInInspector}>
{viewDetailsLabel}
</EuiLink>
)
: (
<EuiButton color="primary" onClick={props.warnings[0].openInInspector}>
{viewDetailsLabel}
</EuiButton>
);
return props.displayAsLink ? (
<EuiLink color="primary" onClick={props.warnings[0].openInInspector}>
{viewDetailsLabel}
</EuiLink>
) : (
<EuiButton color="primary" onClick={props.warnings[0].openInInspector}>
{viewDetailsLabel}
</EuiButton>
);
}

const panels: EuiContextMenuPanelDescriptor[] = [
Expand All @@ -63,19 +61,22 @@ export const ViewDetailsPopover = (props: Props) => {
<EuiPopover
id="ViewDetailsPopover"
button={
props.displayAsLink
? (
<EuiLink color="primary" onClick={() => setIsPopoverOpen(!isPopoverOpen)}>
<>
{viewDetailsLabel} <EuiIcon type="arrowRight" size="s" />
</>
</EuiLink>
)
: (
<EuiButton color="primary" onClick={() => setIsPopoverOpen(!isPopoverOpen)} iconSide="right" iconType="arrowRight">
{viewDetailsLabel}
</EuiButton>
)
props.displayAsLink ? (
<EuiLink color="primary" onClick={() => setIsPopoverOpen(!isPopoverOpen)}>
<>
{viewDetailsLabel} <EuiIcon type="arrowRight" size="s" />
</>
</EuiLink>
) : (
<EuiButton
color="primary"
onClick={() => setIsPopoverOpen(!isPopoverOpen)}
iconSide="right"
iconType="arrowRight"
>
{viewDetailsLabel}
</EuiButton>
)
}
isOpen={isPopoverOpen}
closePopover={() => setIsPopoverOpen(false)}
Expand Down

0 comments on commit 8e751f5

Please sign in to comment.