Skip to content

Commit

Permalink
Fixes #36571 - Remove dividers between navigation items
Browse files Browse the repository at this point in the history
  • Loading branch information
MariaAga committed Jul 5, 2023
1 parent 9633d3c commit 5b5b7f9
Showing 1 changed file with 16 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,14 @@ const Navigation = ({
{groups.map((group, groupIndex) =>
groupIndex === 0 ? (
group.groupItems.map(
(
{
id,
title: subItemTitle,
className: subItemClassName,
href,
onClick,
isActive,
},
groupItemsIndex
) => (
({
id,
title: subItemTitle,
className: subItemClassName,
href,
onClick,
isActive,
}) => (
<React.Fragment key={id}>
<NavItem
className={subItemClassName}
Expand All @@ -134,9 +131,6 @@ const Navigation = ({
>
{subItemTitle}
</NavItem>
{groupItemsIndex !== group.groupItems.length - 1 && (
<NavItemSeparator />
)}
</React.Fragment>
)
)
Expand All @@ -150,17 +144,14 @@ const Navigation = ({
)}
>
{group.groupItems.map(
(
{
id,
title: subItemTitle,
className: subItemClassName,
href,
onClick,
isActive,
},
groupItemsIndex
) => (
({
id,
title: subItemTitle,
className: subItemClassName,
href,
onClick,
isActive,
}) => (
<React.Fragment key={id}>
<NavItem
className={subItemClassName}
Expand All @@ -171,10 +162,6 @@ const Navigation = ({
>
{subItemTitle}
</NavItem>
{groupItemsIndex !==
group.groupItems.length - 1 && (
<NavItemSeparator />
)}
</React.Fragment>
)
)}
Expand Down

0 comments on commit 5b5b7f9

Please sign in to comment.