fix(check-field) : prettier format

pull/73/head
Clement G 4 years ago
parent 89a00a2f39
commit 8b66c7c9b0

@ -229,7 +229,7 @@ class CreateElection extends Component {
editCandidateLabel = (event, index) => { editCandidateLabel = (event, index) => {
let candidates = this.state.candidates; let candidates = this.state.candidates;
candidates[index].label = event.currentTarget.value; candidates[index].label = event.currentTarget.value;
candidates.map((candidate) => { candidates.map(candidate => {
return candidate.label; return candidate.label;
}); });
this.setState({ this.setState({
@ -469,10 +469,10 @@ class CreateElection extends Component {
<Card> <Card>
<CardBody className="text-primary"> <CardBody className="text-primary">
<Row> <Row>
<Col xs="12" md="3" lg="3" > <Col xs="12" md="3" lg="3">
<Label for="title">{t("Access to results")}</Label> <Label for="title">{t("Access to results")}</Label>
</Col> </Col>
<Col xs="12" md="4" lg="3" > <Col xs="12" md="4" lg="3">
<Label className="radio " htmlFor="restrict_result_false"> <Label className="radio " htmlFor="restrict_result_false">
<span className="small text-dark"> <span className="small text-dark">
{t("Immediately")} {t("Immediately")}
@ -489,7 +489,7 @@ class CreateElection extends Component {
<span className="checkround checkround-gray" /> <span className="checkround checkround-gray" />
</Label> </Label>
</Col> </Col>
<Col xs="12" md="4" lg="3" > <Col xs="12" md="4" lg="3">
<Label className="radio" htmlFor="restrict_result_true"> <Label className="radio" htmlFor="restrict_result_true">
<span className="small"> <span className="small">
<span className="text-dark"> <span className="text-dark">
@ -697,15 +697,15 @@ class CreateElection extends Component {
<FontAwesomeIcon icon={faCheck} className="mr-2" /> <FontAwesomeIcon icon={faCheck} className="mr-2" />
{t("Validate")} {t("Validate")}
</div> </div>
<div key="modal-title" className="text-primary bold">{t("Confirm your vote")}</div> <div key="modal-title" className="text-primary bold">
{t("Confirm your vote")}
</div>
<div key="modal-body"> <div key="modal-body">
<div className="mt-1 mb-1"> <div className="mt-1 mb-1">
<div className="text-white bg-primary p-2 pl-3 pr-3 rounded"> <div className="text-white bg-primary p-2 pl-3 pr-3 rounded">
{t("Question of the election")} {t("Question of the election")}
</div> </div>
<div className="p-2 pl-3 pr-3 bg-light mb-3"> <div className="p-2 pl-3 pr-3 bg-light mb-3">{title}</div>
{title}
</div>
<div className="text-white bg-primary p-2 pl-3 pr-3 rounded"> <div className="text-white bg-primary p-2 pl-3 pr-3 rounded">
{t("Candidates/Proposals")} {t("Candidates/Proposals")}
</div> </div>

Loading…
Cancel
Save