Load route's container #75
This commit is contained in:
parent
5939276462
commit
4ee3a05eab
|
@ -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)
|
|
@ -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,
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
// @flow
|
||||
import { createStructuredSelector } from 'reselect'
|
||||
import { providerNameSelector, networkSelector } from '~/logic/wallets/store/selectors'
|
||||
|
||||
export default createStructuredSelector({
|
||||
provider: providerNameSelector,
|
||||
network: networkSelector,
|
||||
})
|
Loading…
Reference in New Issue