From b8c0a577cc7dc67756fe24943fcdbf09873895a5 Mon Sep 17 00:00:00 2001 From: Vasek Mlejnsky Date: Mon, 27 Aug 2018 12:30:42 +0200 Subject: [PATCH] Move wallet's "Send" component to wallet's views and name it "AccountSend" --- .../{components/Send => views/AccountSend}/Container.js | 0 .../Send => views/AccountSend}/components/AdvancedForm.js | 0 .../AccountSend}/components/CoinSelectOption.js | 0 .../Send => views/AccountSend}/components/FeeSelect.js | 0 .../AccountSend}/components/PendingTransactions.js | 0 .../Wallet/{components/Send => views/AccountSend}/index.js | 2 +- src/js/views/index.js | 6 +++--- 7 files changed, 4 insertions(+), 4 deletions(-) rename src/js/views/Wallet/{components/Send => views/AccountSend}/Container.js (100%) rename src/js/views/Wallet/{components/Send => views/AccountSend}/components/AdvancedForm.js (100%) rename src/js/views/Wallet/{components/Send => views/AccountSend}/components/CoinSelectOption.js (100%) rename src/js/views/Wallet/{components/Send => views/AccountSend}/components/FeeSelect.js (100%) rename src/js/views/Wallet/{components/Send => views/AccountSend}/components/PendingTransactions.js (100%) rename src/js/views/Wallet/{components/Send => views/AccountSend}/index.js (99%) diff --git a/src/js/views/Wallet/components/Send/Container.js b/src/js/views/Wallet/views/AccountSend/Container.js similarity index 100% rename from src/js/views/Wallet/components/Send/Container.js rename to src/js/views/Wallet/views/AccountSend/Container.js diff --git a/src/js/views/Wallet/components/Send/components/AdvancedForm.js b/src/js/views/Wallet/views/AccountSend/components/AdvancedForm.js similarity index 100% rename from src/js/views/Wallet/components/Send/components/AdvancedForm.js rename to src/js/views/Wallet/views/AccountSend/components/AdvancedForm.js diff --git a/src/js/views/Wallet/components/Send/components/CoinSelectOption.js b/src/js/views/Wallet/views/AccountSend/components/CoinSelectOption.js similarity index 100% rename from src/js/views/Wallet/components/Send/components/CoinSelectOption.js rename to src/js/views/Wallet/views/AccountSend/components/CoinSelectOption.js diff --git a/src/js/views/Wallet/components/Send/components/FeeSelect.js b/src/js/views/Wallet/views/AccountSend/components/FeeSelect.js similarity index 100% rename from src/js/views/Wallet/components/Send/components/FeeSelect.js rename to src/js/views/Wallet/views/AccountSend/components/FeeSelect.js diff --git a/src/js/views/Wallet/components/Send/components/PendingTransactions.js b/src/js/views/Wallet/views/AccountSend/components/PendingTransactions.js similarity index 100% rename from src/js/views/Wallet/components/Send/components/PendingTransactions.js rename to src/js/views/Wallet/views/AccountSend/components/PendingTransactions.js diff --git a/src/js/views/Wallet/components/Send/index.js b/src/js/views/Wallet/views/AccountSend/index.js similarity index 99% rename from src/js/views/Wallet/components/Send/index.js rename to src/js/views/Wallet/views/AccountSend/index.js index f9caeefe..cbbf7a54 100644 --- a/src/js/views/Wallet/components/Send/index.js +++ b/src/js/views/Wallet/views/AccountSend/index.js @@ -14,7 +14,7 @@ import SelectedAccount from '../SelectedAccount'; import type { Props } from './index'; -export default class SendContainer extends Component { +export default class AccountSendContainer extends Component { componentWillReceiveProps(newProps: Props) { calculate(this.props, newProps); validation(newProps); diff --git a/src/js/views/index.js b/src/js/views/index.js index d5f2c5fb..09fc3e5f 100644 --- a/src/js/views/index.js +++ b/src/js/views/index.js @@ -10,6 +10,7 @@ import LandingContainer from 'views/Landing/Container'; // wallet views import WalletContainer from 'views/Wallet'; +import AccountSend from 'views/Wallet/views/AccountSend/Container'; import AccountReceive from 'views/Wallet/views/AccountReceive/Container'; import WalletDashboard from 'views/Wallet/views/Dashboard'; import WalletDeviceSettings from 'views/Wallet/views/DeviceSettings'; @@ -23,7 +24,6 @@ import WalletUnreadableDevice from 'views/Wallet/views/UnreadableDevice'; // import SummaryContainer from './Wallet/components/Summary/Container'; import AccountContainer from 'views/Wallet/views/Account/Container'; import SignVerifyContainer from './Wallet/components/Sign'; -import SendFormContainer from './Wallet/components/Send/Container'; import store, { history } from '../store'; @@ -46,9 +46,9 @@ const App = () => ( - - + +