import translate from 'translations'; import { Interact } from './components/Interact'; import { Deploy } from './components/Deploy'; import { reset, TReset } from 'actions/transaction'; import { resetWallet, TResetWallet } from 'actions/wallet'; import TabSection from 'containers/TabSection'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Switch, Route, Redirect, RouteComponentProps } from 'react-router'; import SubTabs from 'components/SubTabs'; import { RouteNotFound } from 'components/RouteNotFound'; interface Props { reset: TReset; resetWallet: TResetWallet; } const tabs = [ { path: 'interact', name: translate('CONTRACTS_INTERACT') }, { path: 'deploy', name: translate('CONTRACTS_DEPLOY') } ]; class Contracts extends Component> { public render() { const { match, location, history } = this.props; const currentPath = match.url; return (
} />
); } } export default connect(null, { reset, resetWallet })(Contracts);