|
@@ -4,9 +4,9 @@ import StyledMenuItem, {
|
|
import React from 'react';
|
|
import React from 'react';
|
|
import { NavLink } from 'react-router-dom';
|
|
import { NavLink } from 'react-router-dom';
|
|
|
|
|
|
-type Props = MenuItemProps;
|
|
|
|
|
|
+export type Props = MenuItemProps;
|
|
|
|
|
|
-export const ClusterMenuItem: React.FC<Props> = (props) => {
|
|
|
|
|
|
+const ClusterMenuItem: React.FC<Props> = (props) => {
|
|
const { to, activeClassName, title, children, liType, ...rest } = props;
|
|
const { to, activeClassName, title, children, liType, ...rest } = props;
|
|
|
|
|
|
if (to) {
|
|
if (to) {
|
|
@@ -21,3 +21,5 @@ export const ClusterMenuItem: React.FC<Props> = (props) => {
|
|
|
|
|
|
return <StyledMenuItem {...props} />;
|
|
return <StyledMenuItem {...props} />;
|
|
};
|
|
};
|
|
|
|
+
|
|
|
|
+export default ClusterMenuItem;
|