Skip to content

Commit

Permalink
chore(storybook): prettier fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tarantilis committed Feb 25, 2022
1 parent e83fa0c commit 354c7b3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/ui/Header/HeaderMenuPopUp.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ function HeaderMenuPopUp({ menuItems }) {
<ul className="menu">
{menuItems.map((item) => (
//first tier
<li key={item['@id']} className={item.items.length > 0 ? "hasSubMenu" : null}>
<li
key={item['@id']}
className={item.items.length > 0 ? 'hasSubMenu' : null}
>
{item.items.length > 0 && (
<label htmlFor={`drop-${item['@id']}`} className="toggle">
{item.title}
Expand All @@ -25,7 +28,12 @@ function HeaderMenuPopUp({ menuItems }) {
//second tier
<ul className="sub second">
{item.items.map((section) => (
<li key={section['@id']} className={section.items.length > 0 ? "hasSubMenu" : null}>
<li
key={section['@id']}
className={
section.items.length > 0 ? 'hasSubMenu' : null
}
>
{section.items.length > 0 && (
<label
htmlFor={`drop-${item['@id']}-${section['@id']}`}
Expand Down

0 comments on commit 354c7b3

Please sign in to comment.