{"size": 1642, "ext": "js", "max_stars_repo_path": "src/App.js", "max_stars_repo_name": "builld-vr-funding-platform/front-end", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/App.js", "max_issues_repo_name": "builld-vr-funding-platform/front-end", "max_issues_repo_issues_event_min_datetime": "2020-02-05T18:36:18.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-15T20:03:34.000Z", "max_forks_repo_path": "src/App.js", "max_forks_repo_name": "builld-vr-funding-platform/front-end", "max_forks_repo_forks_event_min_datetime": "2020-02-03T18:59:32.000Z", "max_forks_repo_forks_event_max_datetime": "2020-02-04T21:49:47.000Z"}
{"max_stars_count": null, "max_issues_count": 40, "max_forks_count": 3, "avg_line_length": 33.5102040816, "max_line_length": 75, "alphanum_fraction": 0.6272838002}
import React from 'react';
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
import { createMuiTheme, ThemeProvider } from '@material-ui/core/styles';
import { CssBaseline, Container } from '@material-ui/core';
import PrivateRoute from './utils/PrivateRoute';

import './App.css';
import Navbar from './components/Navbar';
import Home from './components/Home';
import Signup from './components/signup';
import Login from './components/Login';
import Dashboard from './components/Dashboard';
import AddProject from './components/AddProject';
import ProjectView from "./components/ProjectView";
import EditForm from './components/EditForm';

const theme = createMuiTheme({
  typography: {
    fontFamily: "'Open Sans', sans-serif"
  }
});

function App() {
  return (
    <div className="App">
      <ThemeProvider theme={theme}>
        <CssBaseline>
        <Router>
          <Navbar />
          <Container maxWidth="md">
            <Switch>
              <PrivateRoute path="/editproject/:id" component={EditForm} />
              <PrivateRoute path="/projects/:id" component={ProjectView} />
              <PrivateRoute path="/addproject" component={AddProject} />
              <PrivateRoute path="/dashboard" component={Dashboard} />
              <Route path="/login" component={Login} />
              <Route path="/signup" component={Signup} />
              <Route path="/" component={Home} />
              <Route path={"/project"} component={ProjectView}/>
            </Switch>
          </Container>
        </Router>
        </CssBaseline>
      </ThemeProvider>
    </div>
  );
}

export default App;