From da78b801b02148eab3b7aaec6ddd3b06cddd08d2 Mon Sep 17 00:00:00 2001 From: metonym Date: Wed, 11 Jan 2023 13:04:53 -0800 Subject: [PATCH] fix(side-nav-link): add missing `isActive` to prop types (#12967) --- .../react/__tests__/__snapshots__/PublicAPI-test.js.snap | 3 +++ packages/react/src/components/UIShell/SideNavLink.js | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap index a99e9bbbc68c..fb3d438c5ef4 100644 --- a/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap +++ b/packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap @@ -6521,6 +6521,9 @@ Map { "element": Object { "type": "elementType", }, + "isActive": Object { + "type": "bool", + }, "isSideNavExpanded": Object { "type": "bool", }, diff --git a/packages/react/src/components/UIShell/SideNavLink.js b/packages/react/src/components/UIShell/SideNavLink.js index ff8fb4772e9c..55435989fb2c 100644 --- a/packages/react/src/components/UIShell/SideNavLink.js +++ b/packages/react/src/components/UIShell/SideNavLink.js @@ -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 */