corda-checkers/webapp/src/App.js

34 lines
834 B
JavaScript
Raw Normal View History

2023-08-13 15:31:47 +02:00
import './App.css';
import React from 'react'
import {
BrowserRouter,
2023-10-14 10:43:44 +02:00
Routes,
Route,
} from "react-router-dom"
import Header from "./components/Header"
import Leaderboard from "./components/Leaderboard"
import GameProposal from "./components/GameProposal"
import DataPolling from './components/DataPolling';
//import { UserProvider } from "../contexts/UserProvider"
//import { GameProposalProvider } from './context/GameProposal';
function App() {
2023-08-13 15:31:47 +02:00
2023-10-14 10:43:44 +02:00
return <div className="App">
<BrowserRouter>
<Header/>
<DataPolling/>
<div className="Container">
<Routes>
<Route path="/leaderboard" element={<Leaderboard/>} />
<Route path="/gameproposal" element={<GameProposal/>} />
</Routes>
</div>
2023-10-14 10:43:44 +02:00
</BrowserRouter>
2023-08-13 15:31:47 +02:00
</div>
}
export default App;