Skip to content
This repository was archived by the owner on Jun 9, 2024. It is now read-only.

Commit 9ac8e58

Browse files
committed
fix(NavbarDivider): remove children prop
1 parent 72a4e4c commit 9ac8e58

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed
Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,18 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
33

4-
const NavbarDivider = ({ children, ...rest }) => {
4+
const NavbarDivider = ({ ...rest }) => {
55
return <span className="pt-navbar-divider" {...rest} />;
66
};
77

88
/**
99
* NavbarDivider property types.
1010
*/
11-
NavbarDivider.propTypes = {
12-
/**
13-
* Primary content.
14-
*/
15-
children: PropTypes.node,
16-
};
11+
NavbarDivider.propTypes = {};
1712

1813
/**
1914
* NavbarDivider default properties.
2015
*/
21-
NavbarDivider.defaultProps = {
22-
children: null,
23-
};
16+
NavbarDivider.defaultProps = {};
2417

2518
export default NavbarDivider;

0 commit comments

Comments
 (0)