@@ -270,6 +271,7 @@ class Contract extends Component {
drizzle={ this.props.drizzle }
isOwner={ this.isContractOwner }
networkId={ this.props.networkId }
+ closeCollapsable={this.state.contract.contractType.toLowerCase() === 'willwallet'}
selectedAccount={ this.props.selectedAccount }
transactionStack={this.props.transactionStack}
transactions={this.props.transactions}
diff --git a/src/App/Components/ContractsList.js b/src/App/Components/ContractsList.js
index 8e24252..fa91919 100644
--- a/src/App/Components/ContractsList.js
+++ b/src/App/Components/ContractsList.js
@@ -1,6 +1,7 @@
import React, { Component } from "react";
import { Link, NavLink } from "react-router-dom";
import PropTypes from "prop-types";
+import Collapsable from "./Collapsable";
import ErrorBoundary from "./ErrorBoundary";
import NetworkComponent from "./NetworkComponent";
@@ -126,8 +127,8 @@ class ContractsList extends Component {
render () {
return (
-
-
+
Deployed Contracts
@@ -143,10 +144,8 @@ class ContractsList extends Component {
-
-
-
+ }>
{this.displayList.map( (contract, index) => {
return (
@@ -186,8 +185,7 @@ class ContractsList extends Component {
);
})}
-
-
+
);
}
}
diff --git a/src/App/Components/Postpone.js b/src/App/Components/Postpone.js
index 8c39352..2c4f157 100644
--- a/src/App/Components/Postpone.js
+++ b/src/App/Components/Postpone.js
@@ -9,38 +9,14 @@ import { web3Scripts } from '../../Scripts';
import Button from 'antd/lib/button';
import Col from 'antd/lib/col';
import Divider from 'antd/lib/divider';
-import Form from 'antd/lib/form';
import notification from 'antd/lib/notification';
import Row from 'antd/lib/row';
-import Select from 'antd/lib/select';
import 'antd/lib/button/style';
import 'antd/lib/col/style';
import 'antd/lib/divider/style';
-import 'antd/lib/form/style';
-import 'antd/lib/icon/style';
-import 'antd/lib/input/style';
import 'antd/lib/notification/style';
import 'antd/lib/row/style';
-import 'antd/lib/select/style';
-
-const { Item } = Form;
-const { Option } = Select;
-
-const timeSpans = [
- 'second',
- 'day',
- 'month',
- 'year'
-];
-
-const timeSpansFactors = {
- second: 1,
- day: 86400,
- month: 2592000,
- year: 31536000
-
-};
const MILLISECONDS = 1000;
@@ -125,7 +101,6 @@ class Postpone extends DrizzleTxResolver {
-
);
diff --git a/src/App/Components/Wallet.js b/src/App/Components/Wallet.js
index 2161b99..83b74b6 100644
--- a/src/App/Components/Wallet.js
+++ b/src/App/Components/Wallet.js
@@ -1,5 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
+import Collapsable from "./Collapsable";
import ErrorBoundary from "./ErrorBoundary";
import DrizzleTxResolver from "./DrizzleTxResolver";
@@ -8,7 +9,6 @@ import { web3Scripts } from '../../Scripts';
import Button from 'antd/lib/button';
import Col from 'antd/lib/col';
-import Divider from 'antd/lib/divider';
import Form from 'antd/lib/form';
import Icon from 'antd/lib/icon';
import Input from 'antd/lib/input';
@@ -17,7 +17,6 @@ import Row from 'antd/lib/row';
import 'antd/lib/button/style';
import 'antd/lib/col/style';
-import 'antd/lib/divider/style';
import 'antd/lib/form/style';
import 'antd/lib/icon/style';
import 'antd/lib/input/style';
@@ -107,11 +106,7 @@ class Wallet extends DrizzleTxResolver {
render () {
return (
-
-
-
Wallet
-
-
+
-
+
);
}
}
diff --git a/src/App/Components/index.js b/src/App/Components/index.js
index c1e7b53..7035f81 100644
--- a/src/App/Components/index.js
+++ b/src/App/Components/index.js
@@ -3,5 +3,8 @@ export{ default as Beneficiaries } from './Beneficiaries';
export{ default as Contract } from './Contract';
export{ default as ContractsList } from './ContractsList';
export{ default as Deployer } from './Deployer';
+export{ default as DrizzleTxResolver } from './DrizzleTxResolver';
export{ default as ErrorBoundary } from './ErrorBoundary';
-export{ default as NetworkComponent } from './NetworkComponent';
\ No newline at end of file
+export{ default as NetworkComponent } from './NetworkComponent';
+export{ default as Postpone } from './Postpone';
+export{ default as Wallet } from './Wallet';
\ No newline at end of file