import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import { Switch, Route, matchPath } from 'react-router-dom' import TabBar from '../../tab-bar' import SettingsTab from './settings-tab' import InfoTab from './info-tab' import { DEFAULT_ROUTE, SETTINGS_ROUTE, INFO_ROUTE } from '../../../routes' export default class SettingsPage extends PureComponent { static propTypes = { location: PropTypes.object, history: PropTypes.object, t: PropTypes.func, } static contextTypes = { t: PropTypes.func, } render () { const { history, location } = this.props return (