From e9a675d4a608fdd7074c787d59db5440dde1b858 Mon Sep 17 00:00:00 2001 From: Shahzad Date: Thu, 2 Jul 2020 19:17:12 +0200 Subject: [PATCH] use export function --- .../components/shared/Links/apm/RumOverviewLink.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/x-pack/plugins/apm/public/components/shared/Links/apm/RumOverviewLink.tsx b/x-pack/plugins/apm/public/components/shared/Links/apm/RumOverviewLink.tsx index 785c9e60c3221..729ed9b10f827 100644 --- a/x-pack/plugins/apm/public/components/shared/Links/apm/RumOverviewLink.tsx +++ b/x-pack/plugins/apm/public/components/shared/Links/apm/RumOverviewLink.tsx @@ -15,12 +15,13 @@ import { APMLink, APMLinkExtendProps } from './APMLink'; interface RumOverviewLinkProps extends APMLinkExtendProps { serviceName?: string; } -const RumOverviewLink = ({ serviceName, ...rest }: RumOverviewLinkProps) => { +export function RumOverviewLink({ + serviceName, + ...rest +}: RumOverviewLinkProps) { const path = serviceName ? `/services/${serviceName}/rum-overview` : '/rum-overview'; return ; -}; - -export { RumOverviewLink }; +}