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