From e2738e0685b15f5304b69f5d0635169ccf1fdc00 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 25 Mar 2019 23:03:17 +0100 Subject: updating that interface --- scraper/client/paper/paper.verify.js | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) (limited to 'scraper/client/paper') diff --git a/scraper/client/paper/paper.verify.js b/scraper/client/paper/paper.verify.js index adb2d1ce..c2c530af 100644 --- a/scraper/client/paper/paper.verify.js +++ b/scraper/client/paper/paper.verify.js @@ -9,7 +9,6 @@ import { USES_DATASET } from '../types' const initialState = { citation: null, - verifiable: false, uses_dataset: USES_DATASET.UNKNOWN, images_in_paper: "FALSE", verified_by: localStorage.getItem('verify.username') || '', @@ -62,7 +61,6 @@ class PaperVerify extends Component { const citationState = this.getCitationState(sha256) this.setState({ ...citationState, - verifiable: paper.verifiable === "TRUE", uses_dataset: paper.uses_dataset === "TRUE", images_in_paper: paper.images_in_paper === "TRUE", verified_by: paper.verified_by, @@ -101,7 +99,6 @@ class PaperVerify extends Component { paper_id: this.state.citation.id, title: this.state.citation.title, dataset: this.props.api.paperInfo.dataset.key, - verifiable: this.state.verifiable, uses_dataset: this.state.uses_dataset, images_in_paper: this.state.images_in_paper, verified_by: this.state.verified_by, @@ -186,19 +183,6 @@ class PaperVerify extends Component { -
- - this.setState({ - verifiable: e.target.checked, - })} - /> -
-
{'Uses dataset'} @@ -339,6 +323,21 @@ class PaperVerify extends Component { } } +/* +
+ + this.setState({ + verifiable: e.target.checked, + })} + /> +
+*/ + const mapStateToProps = state => ({ api: state.api, }) -- cgit v1.2.3-70-g09d2