fix(v2): remove invalid attr from mobile nav links (#2765)

* fix(v2): remove invalid attr from mobile nav links

* Update index.js

Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
This commit is contained in:
Alexey Pyltsyn 2020-05-18 06:21:36 +03:00 committed by GitHub
parent 8e24454154
commit 48b2b753bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,8 @@ function NavItem({items, position, className, ...props}) {
);
}
function MobileNavItem({items, className, ...props}) {
function MobileNavItem({items, position, className, ...props}) {
// Need to destructure position from props so that it doesn't get passed on.
const navLinkClassNames = (extraClassName, isSubList = false) =>
classnames(
'menu__link',