Fix warnings

This commit is contained in:
Anthony Laibe 2018-10-25 08:23:09 +01:00
parent 3d5028e41b
commit 48715efec8
2 changed files with 6 additions and 4 deletions

View File

@ -100,10 +100,12 @@ class ContractFunction extends Component {
))} ))}
</Form> </Form>
{!ContractFunction.isPureCall(this.props.method) && {!ContractFunction.isPureCall(this.props.method) &&
<Col xs={12} style={{"margin-bottom": "5px", "margin-top": "5px"}}> <Col xs={12} className="my-2">
<Row> <Row>
<strong className="collapsable" onClick={() => this.toggleOptions()}><i className={this.state.optionsCollapse ? 'fa fa-caret-down' : 'fa fa-caret-right'}/>Advanced Options</strong> <strong className="collapsable" onClick={() => this.toggleOptions()}>
<Col xs={12} style={{"margin-bottom": "5px", "margin-top": "5px"}}> <i className={this.state.optionsCollapse ? 'fa fa-caret-down' : 'fa fa-caret-right'}/>Advanced Options
</strong>
<Col xs={12} className="my-2">
<Row> <Row>
<Collapse isOpen={this.state.optionsCollapse}> <Collapse isOpen={this.state.optionsCollapse}>
<Form action="" method="post" inline> <Form action="" method="post" inline>

View File

@ -1,6 +1,6 @@
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import React from 'react'; import React from 'react';
import {Row, Col, Card, CardHeader, CardBody, CardTitle} from "reactstrap"; import {Row, Col, Card, CardHeader, CardBody} from "reactstrap";
import {Link} from 'react-router-dom'; import {Link} from 'react-router-dom';
import {formatContractForDisplay} from '../utils/presentation'; import {formatContractForDisplay} from '../utils/presentation';