Skip to content

Commit

Permalink
Fix react-bootstrap#317: Remove defaultProps from LinkContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
reinard committed Jun 19, 2024
1 parent 6d3325e commit e1f865c
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/LinkContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;

0 comments on commit e1f865c

Please sign in to comment.