Creating a container for opening route
This commit is contained in:
parent
5ef120f327
commit
5ff18f62aa
|
@ -33,7 +33,9 @@ export const ETHEREUM_NETWORK_IDS = {
|
|||
42: ETHEREUM_NETWORK.KOVAN,
|
||||
}
|
||||
|
||||
export const openInEtherScan = (address: string, network: string) => () => {
|
||||
export const openTxInEtherScan = (tx: string, network: string) => `https://${network}.etherscan.io/tx/${tx}`
|
||||
|
||||
export const openAddressInEtherScan = (address: string, network: string) => () => {
|
||||
window.open(`https://${network}.etherscan.io/address/${address}`)
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ const Open = Loadable({
|
|||
})
|
||||
|
||||
const Opening = Loadable({
|
||||
loader: () => import('./opening'),
|
||||
loader: () => import('./opening/container'),
|
||||
loading: Loader,
|
||||
})
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
// @flow
|
||||
import * as React from 'react'
|
||||
import { connect } from 'react-redux'
|
||||
|
||||
import Page from '~/components/layout/Page'
|
||||
import { getAccountsFrom, getThresholdFrom, getNamesFrom, getSafeNameFrom, getDailyLimitFrom } from '~/routes/open/utils/safeDataExtractor'
|
||||
import { getWeb3 } from '~/logic/wallets/getWeb3'
|
||||
|
@ -46,6 +45,7 @@ export const createSafe = async (values: Object, userAccount: string, addSafe: A
|
|||
pathname: `${SAFELIST_ADDRESS}/${safeContract.address}`,
|
||||
state: {
|
||||
name,
|
||||
tx: safe.tx,
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
// @flow
|
||||
import { connect } from 'react-redux'
|
||||
import selector from './selector'
|
||||
import Layout from '../component'
|
||||
|
||||
export default connect(selector)(Layout)
|
Loading…
Reference in New Issue