diff --git a/package-lock.json b/package-lock.json index 1dba2fe..19ca935 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "react-router-bootstrap", - "version": "0.25.0", + "version": "0.26.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 0c3cc73..7c5dc81 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,6 @@ "html-webpack-plugin": "^5.5.0", "jasmine-enzyme": "^7.1.2", "jest": "^26.6.3", - "lodash": "^4.17.21", "prettier": "^2.4.1", "react": "^16.14.0", "react-bootstrap": "^1.6.4", diff --git a/src/LinkContainer.js b/src/LinkContainer.js index 91072ec..9cc6844 100644 --- a/src/LinkContainer.js +++ b/src/LinkContainer.js @@ -6,7 +6,6 @@ import { useMatch, useNavigate, } from 'react-router-dom'; -import { isFunction } from 'lodash'; const isModifiedEvent = (event) => !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); @@ -32,7 +31,7 @@ const LinkContainer = ({ const child = React.Children.only(children); const isActive = !!(getIsActive - ? isFunction(getIsActive) + ? typeof getIsActive === 'function' ? getIsActive(match, location) : getIsActive : match);