import React from "react"; import ReactGA from "react-ga"; import { withRouter } from "react-router"; import { Switch, Route, Redirect } from "react-router-dom"; import { Helmet } from "react-helmet"; import Analytics from "./js/analytics.js"; import env from "./js/env-client"; import user from "./js/app-user"; import utility from "./js/utility"; import ProjectLoader from "./components/project-loader/project-loader.jsx"; import Bookmarks from "./pages/bookmarks.jsx"; import Issues from "./pages/issues/issues.jsx"; import Issue from "./pages/issue.jsx"; import Entry from "./pages/entry.jsx"; import SingleFilterCriteriaPage from "./pages/single-filter-criteria-page.jsx"; import Add from "./pages/add/add.jsx"; import Submitted from "./pages/add/submitted.jsx"; import Search from "./pages/search/search.jsx"; import Moderation from "./pages/moderation.jsx"; import Profile from "./pages/profile.jsx"; import ProfileEdit from "./pages/profile-edit/profile-edit.jsx"; import NotFound from "./pages/not-found.jsx"; import JoinUsModal from "./components/join-us-modal/join-us-modal.jsx"; import Navbar from "./components/navbar/navbar.jsx"; import Footer from "./components/footer/footer.jsx"; const Latest = () => { return (
Latest
); }; const Help = router => { let searchParam = { key: `help_type`, value: decodeURIComponent(router.match.params.helpType) }; return ( ); }; const Tag = router => { let searchParam = { key: `tag`, value: decodeURIComponent(router.match.params.tag) }; return ( ); }; const Routes = () => ( ( )} /> } /> } /> } /> ); const JoinUsModalWithRouter = withRouter(JoinUsModal); const NavbarWithRouter = withRouter(Navbar); class Main extends React.Component { constructor(props) { super(props); this.pageTitle = `Mozilla Network Pulse`; } componentDidMount() { Analytics.logPageView(); } componentDidUpdate() { Analytics.logPageView(); window.scrollTo(0, 0); } render() { return (
); } } export default Main;