From 54ee9417dbf5dc5f4d5568191669cb6128c6f8b4 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Wed, 24 Oct 2018 10:56:36 -0400 Subject: [PATCH] remove unused references --- embark-ui/src/components/CardTitleIdenticon.js | 5 ++++- embark-ui/src/components/ContractDetail.js | 4 +--- embark-ui/src/containers/TransactionsContainer.js | 2 -- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/embark-ui/src/components/CardTitleIdenticon.js b/embark-ui/src/components/CardTitleIdenticon.js index 0febddc1..f0576ff3 100644 --- a/embark-ui/src/components/CardTitleIdenticon.js +++ b/embark-ui/src/components/CardTitleIdenticon.js @@ -11,7 +11,10 @@ const CardTitleIdenticon = ({id, children}) => ( CardTitleIdenticon.propTypes = { id: PropTypes.string, - children: PropTypes.object + children: PropTypes.oneOfType([ + PropTypes.object, + PropTypes.array + ]) }; export default CardTitleIdenticon; diff --git a/embark-ui/src/components/ContractDetail.js b/embark-ui/src/components/ContractDetail.js index 5797afa7..da37a73a 100644 --- a/embark-ui/src/components/ContractDetail.js +++ b/embark-ui/src/components/ContractDetail.js @@ -1,12 +1,10 @@ import PropTypes from "prop-types"; import React from 'react'; import ReactJson from "react-json-view"; -import {Row, Col, Table} from "reactstrap"; -import {formatContractForDisplay} from '../utils/presentation'; +import {Row, Col} from "reactstrap"; import CopyButton from './CopyButton'; const ContractDetail = ({contract}) => { - const contractDisplay = formatContractForDisplay(contract); return ( diff --git a/embark-ui/src/containers/TransactionsContainer.js b/embark-ui/src/containers/TransactionsContainer.js index ef6c107e..861709b1 100644 --- a/embark-ui/src/containers/TransactionsContainer.js +++ b/embark-ui/src/containers/TransactionsContainer.js @@ -3,8 +3,6 @@ import {connect} from 'react-redux'; import PropTypes from 'prop-types'; import {transactions as transactionsAction, initBlockHeader, stopBlockHeader} from '../actions'; -import Blocks from "../components/Blocks"; -import LoadMore from "../components/LoadMore"; import Transactions from '../components/Transactions'; import DataWrapper from "../components/DataWrapper"; import {getTransactions} from "../reducers/selectors";