{"size": 852, "ext": "js", "max_stars_repo_path": "oerbookr/src/App.js", "max_stars_repo_name": "oer-bookr-6-24-2019/oer-bookr-FE", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "oerbookr/src/App.js", "max_issues_repo_name": "oer-bookr-6-24-2019/oer-bookr-FE", "max_issues_repo_issues_event_min_datetime": "2021-03-09T09:14:36.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-18T03:06:18.000Z", "max_forks_repo_path": "oerbookr/src/App.js", "max_forks_repo_name": "oer-bookr-6-24-2019/oer-bookr-FE", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 3, "max_forks_count": null, "avg_line_length": 31.5555555556, "max_line_length": 79, "alphanum_fraction": 0.6830985915}
import React from 'react';
import './App.css';
import { Route, Switch } from 'react-router-dom';
import LoginPage from './views/LoginPage';
import HomePage from './views/HomePage';
import SingleBookPage from './views/SingleBookPage';
import AddReviewPage from './views/AddReviewPage';
import PrivateRoute from './components/PrivateRoutes/PrivateRoute';
import NavBar from './components/navigation/NavBar';
import './styles/variables.scss';

function App() {
  return (
    <div className='App'>
      <NavBar />
      <Switch>
        <Route path='/login' component={LoginPage} />
        <PrivateRoute path='/' exact component={HomePage} />
        <PrivateRoute path='/book/:id' exact component={SingleBookPage} />
        <PrivateRoute path='/add-review/:id' exact component={AddReviewPage} />
      </Switch>
    </div>
  );
}

export default App;
