corda-checkers/webapp/src/App.js

31 lines
712 B
JavaScript

import './App.css';
import React from 'react'
import {
BrowserRouter,
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/OfflineToggle';
function App() {
return <div className="App">
<BrowserRouter>
<Header/>
<DataPolling/>
<div className="Container">
<Routes>
<Route path="/leaderboard" element={<Leaderboard/>} />
<Route path="/gameproposal" element={<GameProposal/>} />
</Routes>
</div>
</BrowserRouter>
</div>
}
export default App;