From 111249b51095d0adbfd9fbf49522ff0d6713c617 Mon Sep 17 00:00:00 2001 From: Reinard van der Leij Date: Wed, 19 Jun 2024 13:55:03 +1000 Subject: [PATCH] Fix #317: Remove defaultProps from LinkContainer --- src/LinkContainer.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/LinkContainer.js b/src/LinkContainer.js index fbd6455..a524d51 100644 --- a/src/LinkContainer.js +++ b/src/LinkContainer.js @@ -8,10 +8,10 @@ const isModifiedEvent = (event) => const LinkContainer = ({ children, onClick, - replace, // eslint-disable-line no-unused-vars + replace = false, // eslint-disable-line no-unused-vars to, state, - activeClassName, + activeClassName = 'active', className, activeStyle, style, @@ -87,14 +87,4 @@ LinkContainer.propTypes = { isActive: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]), }; -LinkContainer.defaultProps = { - replace: false, - activeClassName: 'active', - onClick: null, - className: null, - style: null, - activeStyle: null, - isActive: null, -}; - export default LinkContainer;