Add more components

This commit is contained in:
Tom Raithel
2017-02-21 22:58:35 +01:00
parent f284b4b310
commit 33b4d112a0
9 changed files with 125 additions and 46 deletions

View File

@@ -2,11 +2,12 @@ import React from 'react';
import classNames from 'classnames';
import Link from './Link';
export default function Item({ item, noLeadingBorder = false}) {
export default function Item({ item, noLeadingBorder = false, active = false}) {
return (
<Link
className={classNames('item', {
'item--no-leading-border': noLeadingBorder,
'is-active': active,
})}
pageName={`${item.quadrant}/${item.name}`}
>