{"size": 1268, "ext": "js", "max_stars_repo_path": "client/src/components/App.js", "max_stars_repo_name": "sashahonchar/minglr", "max_stars_repo_stars_event_min_datetime": "2020-08-03T19:06:27.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-24T05:16:04.000Z", "max_issues_repo_path": "client/src/components/App.js", "max_issues_repo_name": "sashahonchar/minglr", "max_issues_repo_issues_event_min_datetime": "2020-08-03T19:15:52.000Z", "max_issues_repo_issues_event_max_datetime": "2020-11-19T16:12:58.000Z", "max_forks_repo_path": "client/src/components/App.js", "max_forks_repo_name": "sashahonchar/minglr", "max_forks_repo_forks_event_min_datetime": "2020-08-25T22:03:38.000Z", "max_forks_repo_forks_event_max_datetime": "2021-07-11T00:16:13.000Z"}
{"max_stars_count": 26, "max_issues_count": 7, "max_forks_count": 5, "avg_line_length": 29.488372093, "max_line_length": 88, "alphanum_fraction": 0.6482649842}
import React, { Suspense } from 'react';
import { Route, Switch } from "react-router-dom";
import Auth from "../hoc/auth";
import Home from "./pages/Home";
import Consent from "./pages/Consent";
import Signup from "./pages/Signup";
import ForgotPassword from "./pages/ForgotPassword";
import ResetPassword from "./pages/ResetPassword";

import { positions, Provider } from "react-alert";
import AlertTemplate from "react-alert-template-basic";

const options = {
  timeout: 5000,
  position: positions.TOP_RIGHT,
  offset: '25px',
  containerStyle: {
    zIndex: 999,
  }
};

function App() {
  return (
    <Suspense fallback={(<div>Loading...</div>)}>
      <Provider template={AlertTemplate} {...options}>
        <Switch>
          <Route exact path="/" component={Auth(Consent, false)} />
          <Route exact path="/login" component={Auth(Consent, false)} />
          <Route exact path="/signup" component={Auth(Signup, false)} />

          <Route exact path="/home" component={Auth(Home, true)} />

          <Route exact path="/forgotpassword" component={Auth(ForgotPassword, false)} />
          <Route path="/resetpassword/:token" component={Auth(ResetPassword, false)} />

        </Switch>
      </Provider>
    </Suspense>
  );
}

export default App;
