Skip to content

Commit

Permalink
[react-bootstrap#4194] - Page item displayName and prettier cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuber committed Oct 14, 2019
1 parent 34214a6 commit 3149e2d
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/PageItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,7 @@ const defaultProps = {

const PageItem = React.forwardRef(
(
{
active,
disabled,
className,
style,
activeLabel,
children,
...props
},
{ active, disabled, className, style, activeLabel, children, ...props },
ref,
) => {
const Component = active || disabled ? 'span' : SafeAnchor;
Expand All @@ -50,11 +42,12 @@ const PageItem = React.forwardRef(
</Component>
</li>
);
}
)
},
);

PageItem.propTypes = propTypes;
PageItem.defaultProps = defaultProps;
PageItem.displayName = 'PageItem';

export default PageItem;

Expand Down

0 comments on commit 3149e2d

Please sign in to comment.