Commit 30c2cc4b by Torkel Ödegaard

allow sidemenu sections without children still have a hover menu/header

parent 80d62013
...@@ -15,7 +15,7 @@ const TopSectionItem: SFC<Props> = props => { ...@@ -15,7 +15,7 @@ const TopSectionItem: SFC<Props> = props => {
{link.img && <img src={link.img} />} {link.img && <img src={link.img} />}
</span> </span>
</a> </a>
{link.children && <SideMenuDropDown link={link} />} <SideMenuDropDown link={link} />
</div> </div>
); );
}; };
......
...@@ -13,5 +13,8 @@ exports[`Render should render component 1`] = ` ...@@ -13,5 +13,8 @@ exports[`Render should render component 1`] = `
<i /> <i />
</span> </span>
</a> </a>
<SideMenuDropDown
link={Object {}}
/>
</div> </div>
`; `;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment