mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-25 23:05:23 +00:00
Added fbjs eslint config, fixed lint errors and warnings
This commit is contained in:
@@ -26,10 +26,9 @@ const isItemActive = (location, item) => {
|
||||
}
|
||||
} else if (item.id.includes('html')) {
|
||||
return location.pathname.includes(item.id);
|
||||
} else {
|
||||
const slugId = location.pathname.split('/').slice(-1)[0];
|
||||
return slugId === slugify(item.id);
|
||||
}
|
||||
const slugId = location.pathname.split('/').slice(-1)[0];
|
||||
return slugId === slugify(item.id);
|
||||
};
|
||||
|
||||
export default isItemActive;
|
||||
|
||||
Reference in New Issue
Block a user