Load route's container #75

This commit is contained in:
apanizo 2018-11-12 16:34:02 +01:00
parent 5939276462
commit 4ee3a05eab
3 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,39 @@
// @flow
import * as React from 'react'
import { connect } from 'react-redux'
import Page from '~/components/layout/Page'
import selector from './selector'
import actions, { type Actions } from './actions'
import Layout from '../components/Layout'
type Props = Actions & {
provider: string,
userAccount: string,
network: string,
}
export const loadSafe = async (): Promise<void> => {
}
class Open extends React.Component<Props> {
onLoadSafeSubmit = async () => {
//
}
render() {
const { provider, network } = this.props
return (
<Page>
<Layout
network={network}
provider={provider}
onLoadSafeSubmit={this.onLoadSafeSubmit}
/>
</Page>
)
}
}
export default connect(selector, actions)(Open)

View File

@ -0,0 +1,12 @@
// @flow
import addSafe from '~/routes/safe/store/actions/addSafe'
export type AddSafe = typeof addSafe
export type Actions = {
addSafe: typeof addSafe,
}
export default {
addSafe,
}

View File

@ -0,0 +1,8 @@
// @flow
import { createStructuredSelector } from 'reselect'
import { providerNameSelector, networkSelector } from '~/logic/wallets/store/selectors'
export default createStructuredSelector({
provider: providerNameSelector,
network: networkSelector,
})