Skip to content

Commit

Permalink
fix(side-nav-link): add missing isActive to prop types (#12967)
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym authored Jan 11, 2023
1 parent 625b39b commit da78b80
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6521,6 +6521,9 @@ Map {
"element": Object {
"type": "elementType",
},
"isActive": Object {
"type": "bool",
},
"isSideNavExpanded": Object {
"type": "bool",
},
Expand Down
5 changes: 5 additions & 0 deletions packages/react/src/components/UIShell/SideNavLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ SideNavLink.propTypes = {
*/
className: PropTypes.string,

/**
* Specify whether the link is the current page
*/
isActive: PropTypes.bool,

/**
* Specify if this is a large variation of the SideNavLink
*/
Expand Down

0 comments on commit da78b80

Please sign in to comment.