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

View File

@ -1,6 +1,6 @@
import PropTypes from "prop-types";
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 {formatContractForDisplay} from '../utils/presentation';