Skip to content
Snippets Groups Projects
Unverified Commit 67641b40 authored by Tom Robinson's avatar Tom Robinson
Browse files

Make collection buttons real links. Resolves #4017

parent d636b581
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,9 @@ class CollectionButton extends Component {
render () {
const { id, name, color, slug, isAdmin, push } = this.props;
return (
<div
<Link
to={`/questions/collections/${slug}`}
className="no-decoration"
onMouseEnter={() => this.setState({ hovered: true })}
onMouseLeave={() => this.setState({ hovered: false })}
>
......@@ -43,7 +45,6 @@ class CollectionButton extends Component {
borderRadius: 10,
backgroundColor: this.state.hovered ? color : '#fafafa'
}}
onClick={() => push(`/questions/collections/${slug}`)}
>
{ isAdmin &&
<div className="absolute top right mt2 mr2 hover-child">
......@@ -61,7 +62,7 @@ class CollectionButton extends Component {
/>
<h3>{ name }</h3>
</div>
</div>
</Link>
)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment