Skip to content

Commit 074c7e7

Browse files
committed
feat: CSidebarNavItem: allow passing nodes to 'name' prop #140
1 parent 1d41870 commit 074c7e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/template/CSidebarNavDropdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ CSidebarNavDropdown.propTypes = {
117117
children: PropTypes.node,
118118
//
119119
innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func]),
120-
name: PropTypes.string,
120+
name: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
121121
icon: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
122122
fontIcon: PropTypes.string,
123123
show: PropTypes.bool,

src/template/CSidebarNavItem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ CSidebarNavItem.propTypes = {
6363
badge: PropTypes.object,
6464
addLinkClass: PropTypes.string,
6565
label: PropTypes.bool,
66-
name: PropTypes.string,
66+
name: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
6767
color: PropTypes.string
6868
}
6969

0 commit comments

Comments
 (0)