You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having issues integrating react router NavLink inside the menu item. In react router Navlink you can pass a prop called end to determine whether a link matches to url path. I am leverage Antd menu's activeKeys props to set the menu item active however I need to be able to include additional props called end to determine that logic.
I have tried type Final = ItemType & { end?: boolean };
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there,
I am having issues integrating react router NavLink inside the menu item. In react router Navlink you can pass a prop called end to determine whether a link matches to url path. I am leverage Antd menu's activeKeys props to set the menu item active however I need to be able to include additional props called end to determine that logic.
I have tried type Final = ItemType & { end?: boolean };
but the nested menu item seems to be complaining
Any idea how to achieve this?
thanks
Beta Was this translation helpful? Give feedback.
All reactions