From b9fa29ff093b5918a8f3b2bf0e9aa1ed436a6bf6 Mon Sep 17 00:00:00 2001 From: Jack Mallers Date: Wed, 29 Nov 2017 18:35:42 -0600 Subject: [PATCH] fix(remove old route) --- app/routes.js | 2 - app/routes/wallet/components/Wallet.js | 56 ---------------- app/routes/wallet/components/Wallet.scss | 65 ------------------- .../wallet/containers/WalletContainer.js | 56 ---------------- app/routes/wallet/index.js | 3 - 5 files changed, 182 deletions(-) delete mode 100644 app/routes/wallet/components/Wallet.js delete mode 100644 app/routes/wallet/components/Wallet.scss delete mode 100644 app/routes/wallet/containers/WalletContainer.js delete mode 100644 app/routes/wallet/index.js diff --git a/app/routes.js b/app/routes.js index 710667fd..b97b8172 100644 --- a/app/routes.js +++ b/app/routes.js @@ -3,14 +3,12 @@ import React from 'react' import { Switch, Route } from 'react-router' import App from './routes/app' import Activity from './routes/activity' -import Wallet from './routes/wallet' import Peers from './routes/peers' import Channels from './routes/channels' export default () => ( - diff --git a/app/routes/wallet/components/Wallet.js b/app/routes/wallet/components/Wallet.js deleted file mode 100644 index cd9517cd..00000000 --- a/app/routes/wallet/components/Wallet.js +++ /dev/null @@ -1,56 +0,0 @@ -import React, { Component } from 'react' -import PropTypes from 'prop-types' -import Peers from 'components/Peers' -import styles from './Wallet.scss' - -class Wallet extends Component { - componentWillMount() { - const { fetchPeers } = this.props - - fetchPeers() - } - - render() { - const { - peers: { peersLoading, peers, peer, peerForm }, - fetchPeers, - setPeer, - peerModalOpen, - setPeerForm, - connectRequest, - disconnectRequest - } = this.props - - return ( -
-
- -
-
- ) - } -} - -Wallet.propTypes = { - fetchPeers: PropTypes.func.isRequired, - peers: PropTypes.object.isRequired, - setPeer: PropTypes.func.isRequired, - peerModalOpen: PropTypes.bool.isRequired, - setPeerForm: PropTypes.func.isRequired, - connectRequest: PropTypes.func.isRequired, - disconnectRequest: PropTypes.func.isRequired -} - - -export default Wallet diff --git a/app/routes/wallet/components/Wallet.scss b/app/routes/wallet/components/Wallet.scss deleted file mode 100644 index a987b3ad..00000000 --- a/app/routes/wallet/components/Wallet.scss +++ /dev/null @@ -1,65 +0,0 @@ -@import '../../../variables.scss'; - -.wallet { - background: $lightgrey; -} - -.header { - background: $white; - padding: 80px 30px; - border-bottom: 1px solid $darkgrey; - text-align: center; - - .walletInfo { - width: 75%; - margin: 0 auto; - } - - svg { - width: 100px; - height: 100px; - text-align: center; - } - - h1 { - font-size: 20px; - margin: 20px 0; - font-weight: bold; - color: $black; - text-align: center; - } - - .address { - text-align: center; - margin-top: 10px; - - input[type=text] { - width: 50%; - text-align: center; - font-size: 14px; - font-weight: 200; - border-radius: 7px; - background: $lightgrey; - border: 1px solid $main; - padding: 10px; - } - } -} - -.walletData { - padding: 60px 40px; - - .peers { - width: 75%; - margin: 50px auto; - - h3 { - text-transform: uppercase; - color: $darkestgrey; - letter-spacing: 1.6px; - font-size: 14px; - font-weight: 400; - margin-bottom: 10px; - } - } -} diff --git a/app/routes/wallet/containers/WalletContainer.js b/app/routes/wallet/containers/WalletContainer.js deleted file mode 100644 index 999163a8..00000000 --- a/app/routes/wallet/containers/WalletContainer.js +++ /dev/null @@ -1,56 +0,0 @@ -import { connect } from 'react-redux' -import { infoSelectors } from 'reducers/info' -import { newAddress } from 'reducers/address' -import { tickerSelectors } from 'reducers/ticker' -import { - fetchPeers, - setPeer, - peersSelectors, - setPeerForm, - connectRequest, - disconnectRequest -} from 'reducers/peers' -import { - fetchChannels, - setChannel, - channelsSelectors, - setChannelForm, - openChannel, - closeChannel -} from 'reducers/channels' -import Wallet from '../components/Wallet' - -const mapDispatchToProps = { - newAddress, - - fetchPeers, - setPeer, - connectRequest, - disconnectRequest, - - fetchChannels, - setChannel, - openChannel, - closeChannel, - - setPeerForm, - setChannelForm -} - -const mapStateToProps = state => ({ - info: state.info, - address: state.address, - ticker: state.ticker, - - peers: state.peers, - channels: state.channels, - - peerModalOpen: peersSelectors.peerModalOpen(state), - channelModalOpen: channelsSelectors.channelModalOpen(state), - - currentTicker: tickerSelectors.currentTicker(state), - - explorerLinkBase: infoSelectors.explorerLinkBase(state) -}) - -export default connect(mapStateToProps, mapDispatchToProps)(Wallet) diff --git a/app/routes/wallet/index.js b/app/routes/wallet/index.js deleted file mode 100644 index 073f325f..00000000 --- a/app/routes/wallet/index.js +++ /dev/null @@ -1,3 +0,0 @@ -import WalletContainer from './containers/WalletContainer' - -export default WalletContainer