import React, { Component } from 'react'; import translate from 'translations'; import SignMessage from './components/SignMessage'; import VerifyMessage from './components/VerifyMessage'; import TabSection from 'containers/TabSection'; import { RouteComponentProps, Switch, Route, Redirect } from 'react-router'; import SubTabs from 'components/SubTabs'; import { RouteNotFound } from 'components/RouteNotFound'; interface State { activeTab: 'sign' | 'verify'; } export default class SignAndVerifyMessage extends Component, State> { public state: State = { activeTab: 'sign' }; public changeTab = (activeTab: State['activeTab']) => () => this.setState({ activeTab }); public render() { const { match } = this.props; const currentPath = match.url; const tabs = [ { path: 'sign', name: translate('NAV_SignMsg') }, { path: 'verify', name: translate('MSG_verify') } ]; return (
} />
); } }