mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-11 11:34:26 +00:00
restructure routing/container structure
This commit is contained in:
parent
6f6826c88c
commit
3d8461617e
@ -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>
|
||||
)
|
||||
}
|
||||
}
|
@ -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)
|
15
common/containers/Tabs/ViewWallet/index.js
Normal file
15
common/containers/Tabs/ViewWallet/index.js
Normal 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>
|
||||
)
|
||||
}
|
||||
}
|
2
common/containers/Tabs/index.js
Normal file
2
common/containers/Tabs/index.js
Normal file
@ -0,0 +1,2 @@
|
||||
export ViewWallet from './ViewWallet/index'
|
||||
export GenerateWallet from './GenerateWallet/index'
|
Loading…
x
Reference in New Issue
Block a user