Skip to content

Commit

Permalink
use export function
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Jul 2, 2020
1 parent 7d4e26b commit e9a675d
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 <APMLink path={path} {...rest} />;
};

export { RumOverviewLink };
}

0 comments on commit e9a675d

Please sign in to comment.