You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
894 B
33 lines
894 B
import React, { Component } from 'react'; |
|
import { Breadcrumb, Dropdown, Header, Icon, Item, Menu, Segment, Input } from 'semantic-ui-react' |
|
import { Link } from 'react-router-dom'; |
|
|
|
class Categories extends Component { |
|
render() { |
|
const data = this.props.data; |
|
const match = this.props.match; |
|
|
|
return ( |
|
<div> |
|
<Breadcrumb size='large'> |
|
<Breadcrumb.Section active>Categories</Breadcrumb.Section> |
|
</Breadcrumb> |
|
|
|
<Item.Group link unstackable divided> |
|
{data.categories.map((x, n) => |
|
<Item as={Link} to={'/' + x.slug} key={n}> |
|
<Item.Image size='tiny' src={x.photo} /> |
|
<Item.Content> |
|
<Item.Header>{x.name}</Item.Header> |
|
<Item.Description>{x.info}</Item.Description> |
|
<Item.Extra>{x.tools.length} tools</Item.Extra> |
|
</Item.Content> |
|
</Item> |
|
)} |
|
</Item.Group> |
|
</div> |
|
); |
|
} |
|
} |
|
|
|
export default Categories;
|
|
|