Creating a container for opening route

This commit is contained in:
apanizo 2018-09-28 14:24:55 +02:00
parent 5ef120f327
commit 5ff18f62aa
4 changed files with 11 additions and 3 deletions

View File

@ -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}`)
}

View File

@ -27,7 +27,7 @@ const Open = Loadable({
})
const Opening = Loadable({
loader: () => import('./opening'),
loader: () => import('./opening/container'),
loading: Loader,
})

View File

@ -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,
},
}

View File

@ -0,0 +1,6 @@
// @flow
import { connect } from 'react-redux'
import selector from './selector'
import Layout from '../component'
export default connect(selector)(Layout)