1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-24 09:18:09 +00:00

Move wallet's "Send" component to wallet's views and name it "AccountSend"

This commit is contained in:
Vasek Mlejnsky 2018-08-27 12:30:42 +02:00
parent b5cc5edc45
commit b8c0a577cc
7 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ import SelectedAccount from '../SelectedAccount';
import type { Props } from './index';
export default class SendContainer extends Component<Props> {
export default class AccountSendContainer extends Component<Props> {
componentWillReceiveProps(newProps: Props) {
calculate(this.props, newProps);
validation(newProps);

View File

@ -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 = () => (
<Route exact path="/device/:device/initialize" component={WalletInitialize} />
<Route exact path="/device/:device/settings" component={WalletDeviceSettings} />
<Route exact path="/device/:device/network/:network/account/:account" component={AccountContainer} />
<Route path="/device/:device/network/:network/account/:account/send" component={SendFormContainer} />
<Route path="/device/:device/network/:network/account/:account/send/override" component={SendFormContainer} />
<Route path="/device/:device/network/:network/account/:account/signverify" component={SignVerifyContainer} />
<Route path="/device/:device/network/:network/account/:account/send" component={AccountSend} />
<Route path="/device/:device/network/:network/account/:account/send/override" component={AccountSend} />
<Route path="/device/:device/network/:network/account/:account/receive" component={AccountReceive} />
</WalletContainer>
</ErrorBoundary>