mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-02-02 06:16:06 +00:00
Create "Tabs" container and refactor as required.
This commit is contained in:
parent
7d8ba8aac5
commit
0a33708370
@ -1,9 +1,9 @@
|
||||
import React, {Component} from 'react'
|
||||
import {connect} from 'react-redux'
|
||||
import DashboardComponent from './components'
|
||||
import GenerateWallet from './GenerateWallet/components'
|
||||
import {GET_STATISTICS} from 'actions/dashboard'
|
||||
|
||||
class Dashboard extends Component {
|
||||
class Tabs extends Component {
|
||||
constructor(props) {
|
||||
super(props)
|
||||
}
|
||||
@ -23,7 +23,7 @@ class Dashboard extends Component {
|
||||
let props = {statistics}
|
||||
|
||||
return (
|
||||
<DashboardComponent {...props}/>
|
||||
<GenerateWallet {...props}/>
|
||||
)
|
||||
}
|
||||
}
|
||||
@ -41,4 +41,4 @@ function mapDispatchToProps(dispatch) {
|
||||
}
|
||||
}
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(Dashboard)
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(Tabs)
|
@ -1,2 +1,2 @@
|
||||
export App from './App'
|
||||
export Dashboard from './Dashboard'
|
||||
export Tabs from './Tabs'
|
||||
|
Loading…
x
Reference in New Issue
Block a user