{"size": 1883, "ext": "js", "max_stars_repo_path": "immun-tracker/src/App.js", "max_stars_repo_name": "buildweek-immunizationtracker/front-end-architect-tay-burton", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "immun-tracker/src/App.js", "max_issues_repo_name": "buildweek-immunizationtracker/front-end-architect-tay-burton", "max_issues_repo_issues_event_min_datetime": "2019-04-27T18:11:38.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T10:31:33.000Z", "max_forks_repo_path": "immun-tracker/src/App.js", "max_forks_repo_name": "buildweek-immunizationtracker/front-end-architect-tay-burton", "max_forks_repo_forks_event_min_datetime": "2019-05-03T02:23:51.000Z", "max_forks_repo_forks_event_max_datetime": "2019-05-25T19:40:49.000Z"}
{"max_stars_count": null, "max_issues_count": 10, "max_forks_count": 2, "avg_line_length": 45.9268292683, "max_line_length": 98, "alphanum_fraction": 0.7249070632}
//React
import React, { Component } from "react";
import { BrowserRouter as Router, Route, Redirect } from "react-router-dom";


//Components
import Login from "./components/Login/Login";
import MedicalRegistrationView from './components/registration/MedicalRegistrationView';
import PatientRegistrationView from "./components/registration/PatientRegistrationView";

import GrantAccessView from "./components/GrantAccess/GrantAccessView"
import PatientContainer from "./components/UserViewPages/PatientPage/PatientContainer"
import AddPatient from './components/UserViewPages/AddPatient';
import UserPrivateRoute from "./components/UserPrivateRoute";
import DocHomepage from "./components/UserViewPages/DocPage/DocHompage";
import DocPatientView from "./components/UserViewPages/DocPage/DocPatientView";
import PatientView from "./components/UserViewPages/PatientPage/PatientView";


class App extends Component {
  render() {
    return (
      <Router>
        <div>
          <Route exact path="/" exact render={props => <Redirect to="/login" {...props} />} /> 
          <Route path="/login" exact component={Login} />
          <Route path="/register-provider" exact component={MedicalRegistrationView} />
          <Route path = "/register-patient" exact component={PatientRegistrationView} />
          <UserPrivateRoute path="/addpatient" exact component={AddPatient} />
          <UserPrivateRoute path = "/grant-access/:patientId" exact component={GrantAccessView} />
          <UserPrivateRoute path= "/patienthub" exact component={PatientContainer} />
          <UserPrivateRoute path= "/doctorhub" exact component={DocHomepage} />
          <UserPrivateRoute path= "/doctorhub/patients" exact component={DocPatientView} />
          <UserPrivateRoute path= "/user/patients" exact component={PatientView} />
        </div>
      </Router>
    );
  }
}

export default App