1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-01-02 12:20:53 +00:00

rename coin specific components

This commit is contained in:
Szymon Lesisz 2018-11-27 11:44:23 +01:00
parent 6449749492
commit 0128a16602
2 changed files with 8 additions and 8 deletions

View File

@ -405,8 +405,8 @@ export default AccountSend;
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import type { State } from 'flowtype'; import type { State } from 'flowtype';
import EthereumSend from './ethereum/Container'; import EthereumTypeSendForm from './ethereum/Container';
import RippleSend from './ripple/Container'; import RippleTypeSendForm from './ripple/Container';
export type BaseProps = { export type BaseProps = {
selectedAccount: $ElementType<State, 'selectedAccount'>, selectedAccount: $ElementType<State, 'selectedAccount'>,
@ -421,9 +421,9 @@ export default connect((state: State): BaseProps => ({
switch (network.type) { switch (network.type) {
case 'ethereum': case 'ethereum':
return <EthereumSend />; return <EthereumTypeSendForm />;
case 'ripple': case 'ripple':
return <RippleSend />; return <RippleTypeSendForm />;
default: default:
return null; return null;
} }

View File

@ -3,8 +3,8 @@ import React from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import type { State } from 'flowtype'; import type { State } from 'flowtype';
import EthereumSummary from './ethereum/Container'; import EthereumTypeSummary from './ethereum/Container';
import RippleSummary from './ripple/Container'; import RippleTypeSummary from './ripple/Container';
type WrapperProps = { type WrapperProps = {
selectedAccount: $ElementType<State, 'selectedAccount'>, selectedAccount: $ElementType<State, 'selectedAccount'>,
@ -19,9 +19,9 @@ export default connect((state: State): WrapperProps => ({
switch (network.type) { switch (network.type) {
case 'ethereum': case 'ethereum':
return <EthereumSummary />; return <EthereumTypeSummary />;
case 'ripple': case 'ripple':
return <RippleSummary />; return <RippleTypeSummary />;
default: default:
return null; return null;
} }