mirror of
https://github.com/Team4388/scouting-2021.git
synced 2026-06-09 00:38:01 -06:00
create-react-app and couchdb
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
import logo from './logo.svg';
|
||||
import Navigation from './components/Navigation/Navigation'
|
||||
import { DbProvider } from './DbContext';
|
||||
import { BrowserRouter as Router, Route, Switch, Link, Redirect } from 'react-router-dom';
|
||||
import './App.css';
|
||||
// const Cushion = require('cushiondb-client');
|
||||
|
||||
//Pages
|
||||
import LoginPage from './Pages/LoginPage'
|
||||
import NotFoundPage from './Pages/NotFoundPage'
|
||||
import DashboardPage from './Pages/DashboardPage';
|
||||
import InputPage from './Pages/InputPage';
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<DbProvider>
|
||||
<div className="App">
|
||||
<Router>
|
||||
<Navigation />
|
||||
<Switch>
|
||||
<Route exact path="/" component={DashboardPage} />
|
||||
<Route exact path="/Login" component={LoginPage} />
|
||||
<Route exact path="/Dashboard" component={DashboardPage} />
|
||||
<Route exact path="/Input" component={InputPage} />
|
||||
<Route exact path="/404" component={NotFoundPage} />
|
||||
<Redirect to="/404"/>
|
||||
</Switch>
|
||||
</Router>
|
||||
{/* <header className="App-header">
|
||||
<img src={logo} className="App-logo" alt="logo" />
|
||||
<p>
|
||||
Edit <code>src/App.js</code> and save to reload.
|
||||
</p>
|
||||
<a
|
||||
className="App-link"
|
||||
href="https://reactjs.org"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
>
|
||||
Learn React
|
||||
</a>
|
||||
<button>
|
||||
Sign Up
|
||||
</button>
|
||||
</header> */}
|
||||
</div>
|
||||
</DbProvider>
|
||||
);
|
||||
}
|
||||
|
||||
export default App;
|
||||
Reference in New Issue
Block a user