diff --git a/js/components/ascribe_accordion_list/accordion_list_item.js b/js/components/ascribe_accordion_list/accordion_list_item.js index 40771dc2..23b54ad3 100644 --- a/js/components/ascribe_accordion_list/accordion_list_item.js +++ b/js/components/ascribe_accordion_list/accordion_list_item.js @@ -1,28 +1,38 @@ 'use strict'; import React from 'react'; +import Router from 'react-router'; + +import requests from '../../utils/requests'; import { getLangText } from '../../utils/lang_utils'; let AccordionListItem = React.createClass({ + mixins: [Router.Navigation], + propTypes: { className: React.PropTypes.string, content: React.PropTypes.object, children: React.PropTypes.object }, + handleClick(event){ + requests.get('piece_first_edition_id', {'piece_id': this.props.content.id}) + .then((res) => this.transitionTo('edition', {editionId: res.bitcoin_id})); + console.log(event.target); + }, render() { return (