// @flow import * as React from 'react'; import Nav from './components/nav'; import Terms from './terms'; import Privacy from './privacy'; import { StyledViewGrid } from './style'; type Props = { match: Object, }; class Pages extends React.Component { renderPage = () => { switch (this.props.match.path) { case '/terms': case '/terms.html': { return ; } case '/privacy': case '/privacy.html': { return ; } } }; render() { const { match: { path }, } = this.props; const dark = path === '/' || path === '/about'; return (
); } } export default Pages;