From d0dc5cd83f1c436185d247600c3c5be9360bf1ca Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 13 Feb 2019 16:46:10 +0100 Subject: displaying more info about the papers --- scraper/client/paper/paper.info.js | 57 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 scraper/client/paper/paper.info.js (limited to 'scraper/client/paper/paper.info.js') diff --git a/scraper/client/paper/paper.info.js b/scraper/client/paper/paper.info.js new file mode 100644 index 00000000..dab4ce5b --- /dev/null +++ b/scraper/client/paper/paper.info.js @@ -0,0 +1,57 @@ +import React, { Component } from 'react' +import { bindActionCreators } from 'redux' +import { connect } from 'react-redux' + +import * as actions from '../actions' + +import { TableObject } from '../common' + +class PaperInfo extends Component { + render() { + const { paperInfo, unknownCitations } = this.props.api + const { dataset, statistics, address } = paperInfo + return ( +
+

{dataset.name_full}

+ + + + +
+ ) + } +} + +const mapStateToProps = state => ({ + api: state.api +}) +const mapDispatchToProps = dispatch => ({ + actions: bindActionCreators({ ...actions }, dispatch), +}) + +export default connect(mapStateToProps, mapDispatchToProps)(PaperInfo) -- cgit v1.2.3-70-g09d2