From 8c628f1c4fdbc596fce7f84dbb8ac500e1cdedae Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 25 Mar 2019 22:28:37 +0100 Subject: updating that interface --- scraper/client/paper/paper.verify.js | 115 +++++++++++++++++++++++------------ 1 file changed, 76 insertions(+), 39 deletions(-) (limited to 'scraper/client/paper/paper.verify.js') diff --git a/scraper/client/paper/paper.verify.js b/scraper/client/paper/paper.verify.js index 9e1a2ad4..6b2bde07 100644 --- a/scraper/client/paper/paper.verify.js +++ b/scraper/client/paper/paper.verify.js @@ -3,15 +3,14 @@ import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import * as actions from '../actions' - import { history } from '../store' - -import { Loader, Autocomplete } from '../common' +import { Loader } from '../common' +import { USES_DATASET } from '../types' const initialState = { citation: null, verifiable: false, - uses_dataset: false, + uses_dataset: USES_DATASET.UNKNOWN, images_in_paper: false, verified_by: localStorage.getItem('verify.username') || '', reference: '', @@ -169,6 +168,7 @@ class PaperVerify extends Component { return ( this.setState({ pdf_index: i })} className={i === this.state.pdf_index ? 'selected pdfLink' : 'pdfLink'} > @@ -199,43 +199,80 @@ class PaperVerify extends Component { /> -
- - this.setState({ - uses_dataset: e.target.checked, - })} - /> -
+
+
+ {'Uses dataset'} +
+ -
- - this.setState({ - uses_dataset: !e.target.checked, - })} - /> + + +
-
- - this.setState({ - images_in_paper: e.target.checked, - })} - /> +
+
+ {'Paper shows images'} +
+ + + +
@@ -285,7 +322,7 @@ class PaperVerify extends Component { + >{'< Prev'}