-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.jsx
More file actions
22 lines (21 loc) · 710 Bytes
/
App.jsx
File metadata and controls
22 lines (21 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { BrowserRouter, Routes, Route, Navigate } from 'react-router-dom';
import { Analytics } from '@vercel/analytics/react';
import Home from './screens/Home';
import Room from './screens/Room';
import Matches from './screens/Matches';
import InstallPrompt from './components/InstallPrompt';
import './App.css';
export default function App() {
return (
<BrowserRouter>
<Routes>
<Route path="/" element={<Home />} />
<Route path="/r/:code" element={<Room />} />
<Route path="/r/:code/matches" element={<Matches />} />
<Route path="*" element={<Navigate to="/" replace />} />
</Routes>
<InstallPrompt />
<Analytics />
</BrowserRouter>
);
}