Skip to content

Commit

Permalink
fix(SideNav): added the display to each component (#13527)
Browse files Browse the repository at this point in the history
* fix(SideNav): added the display to each component

* test: fix test by running yarn test -u

---------

Co-authored-by: Alison Joseph <alison.joseph@us.ibm.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Apr 26, 2023
1 parent 539fc8f commit 3d3a61f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 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 @@ -6589,6 +6589,7 @@ Map {
"defaultProps": Object {
"assistiveText": "Toggle opening or closing the side navigation",
},
"displayName": "SideNavFooter",
"propTypes": Object {
"assistiveText": Object {
"isRequired": true,
Expand All @@ -6608,6 +6609,7 @@ Map {
},
},
"SideNavHeader" => Object {
"displayName": "SideNavHeader",
"propTypes": Object {
"children": Object {
"type": "node",
Expand Down Expand Up @@ -6667,6 +6669,7 @@ Map {
},
},
"SideNavItems" => Object {
"displayName": "SideNavItems",
"propTypes": Object {
"children": Object {
"isRequired": true,
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/components/UIShell/SideNavFooter.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ function SideNavFooter({
);
}

SideNavFooter.displayName = 'SideNavFooter';
SideNavFooter.propTypes = {
/**
* Provide text to be read to screen readers and shown as a tooltip when
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/UIShell/SideNavHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const SideNavHeader = ({
</header>
);
};

SideNavHeader.displayName = 'SideNavHeader';
SideNavHeader.propTypes = {
/**
* The child nodes to be rendered
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/components/UIShell/SideNavItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const SideNavItems = ({
return <ul className={className}>{childrenWithExpandedState}</ul>;
};

SideNavItems.displayName = 'SideNavItems';
SideNavItems.propTypes = {
/**
* Provide a single icon as the child to `SideNavIcon` to render in the
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/UIShell/SideNavMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const SideNavMenu = React.forwardRef(function SideNavMenu(props, ref) {
</li>
);
});

SideNavMenu.displayName = 'SideNavMenu';
SideNavMenu.propTypes = {
/**
* Provide <SideNavMenuItem>'s inside of the `SideNavMenu`
Expand Down

0 comments on commit 3d3a61f

Please sign in to comment.