Skip to content

Commit

Permalink
fix(ui-shell): allow custom classes on HeaderSideNavItems (#5275)
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan authored Feb 6, 2020
1 parent 0c8bc4d commit 4b9cc7c
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/react/src/components/UIShell/HeaderSideNavItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ const HeaderSideNavItems = ({
children,
hasDivider,
}) => {
const className = cx({
[`${prefix}--side-nav__header-navigation`]: true,
[`${prefix}--side-nav__header-divider`]: hasDivider,
customClassName,
});
const className = cx(
{
[`${prefix}--side-nav__header-navigation`]: true,
[`${prefix}--side-nav__header-divider`]: hasDivider,
},
customClassName
);
return <div className={className}>{children}</div>;
};

Expand Down

0 comments on commit 4b9cc7c

Please sign in to comment.