Skip to content

Commit

Permalink
Fix bug in HostPolicyLink
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-tavares committed Jul 24, 2020
1 parent f385288 commit 625cf51
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import React, { memo, useMemo } from 'react';
import { EuiLink, EuiLinkProps } from '@elastic/eui';
import { EuiLink, EuiLinkAnchorProps } from '@elastic/eui';
import { useHostSelector } from '../hooks';
import { nonExistingPolicies } from '../../store/selectors';
import { getPolicyDetailPath } from '../../../../common/routing';
Expand All @@ -19,7 +19,7 @@ import { useNavigateByRouterEventHandler } from '../../../../../common/hooks/end
* text is returned.
*/
export const HostPolicyLink = memo<
Omit<EuiLinkProps, 'href'> & {
Omit<EuiLinkAnchorProps, 'href'> & {
policyId: string;
}
>(({ policyId, children, onClick, ...otherProps }) => {
Expand All @@ -44,7 +44,7 @@ export const HostPolicyLink = memo<

return (
// eslint-disable-next-line @elastic/eui/href-or-on-click
<EuiLink href={toRouteUrl} onClick={clickHandler}>
<EuiLink href={toRouteUrl} onClick={clickHandler} {...otherProps}>
{children}
</EuiLink>
);
Expand Down

0 comments on commit 625cf51

Please sign in to comment.