restructure routing/container structure

This commit is contained in:
Daniel Ternyak 2017-04-26 22:58:01 -05:00
parent 6f6826c88c
commit 3d8461617e
4 changed files with 22 additions and 30 deletions

View File

@ -1,25 +0,0 @@
import React, {Component} from 'react'
import GenerateWalletPasswordComponent from './GenerateWalletPasswordComponent'
import PropTypes from 'prop-types';
export default class GenerateWalletComponent extends Component {
constructor(props) {
super(props)
}
static propTypes = {
generateWalletPassword: PropTypes.object,
showPassword: PropTypes.bool,
showGenerateWalletPasswordAction: PropTypes.func,
generateWalletFileAction: PropTypes.func,
generateWalletFile: PropTypes.bool
}
render() {
return (
<div>
<GenerateWalletPasswordComponent {...this.props}/>
</div>
)
}
}

View File

@ -1,10 +1,10 @@
import GenerateWalletPasswordComponent from "./components/GenerateWalletPasswordComponent";
import React, {Component} from "react";
import {connect} from "react-redux";
import GenerateWallet from "./GenerateWallet/components";
import {SHOW_GENERATE_WALLET_PASSWORD_ACTION, GENERATE_WALLET_FILE_ACTION} from "actions/generateWallet";
import {GENERATE_WALLET_FILE_ACTION, SHOW_GENERATE_WALLET_PASSWORD_ACTION} from "actions/generateWallet";
import PropTypes from "prop-types";
class Tabs extends Component {
class GenerateWallet extends Component {
constructor(props) {
super(props)
}
@ -36,7 +36,7 @@ class Tabs extends Component {
}
return (
<GenerateWallet {...props}/>
<GenerateWalletPasswordComponent {...props}/>
)
}
}
@ -60,4 +60,4 @@ function mapDispatchToProps(dispatch) {
}
}
export default connect(mapStateToProps, mapDispatchToProps)(Tabs)
export default connect(mapStateToProps, mapDispatchToProps)(GenerateWallet)

View File

@ -0,0 +1,15 @@
import React, {Component} from "react";
export default class ViewWallet extends Component {
constructor(props) {
super(props)
}
render() {
return (
<div style={{marginTop: '50px'}}>
<h1 >View Wallet</h1>
</div>
)
}
}

View File

@ -0,0 +1,2 @@
export ViewWallet from './ViewWallet/index'
export GenerateWallet from './GenerateWallet/index'