From 726393779822333d04d76a2c7fb5c9e121fb830f Mon Sep 17 00:00:00 2001
From: Yuval Adam <_@yuv.al>
Date: Mon, 29 Aug 2022 17:34:52 +0300
Subject: Fix Routes

---
 src/Geshem.tsx | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

(limited to 'src/Geshem.tsx')

diff --git a/src/Geshem.tsx b/src/Geshem.tsx
index 3664546..a0750d4 100644
--- a/src/Geshem.tsx
+++ b/src/Geshem.tsx
@@ -1,5 +1,5 @@
 import React, { useState, useEffect } from "react";
-import { BrowserRouter, Route } from "react-router-dom";
+import { BrowserRouter, Route, Routes } from "react-router-dom";
 
 import Map from "./Map";
 import Slider from "./Slider";
@@ -13,8 +13,10 @@ import "rc-slider/assets/index.css";
 function App() {
   return (
     <BrowserRouter>
-      <Route path="/" element={<Geshem />} />
-      <Route path="/history/:date" element={<Geshem />} />
+      <Routes>
+        <Route path="/" element={<Geshem />} />
+        <Route path="/history/:date" element={<Geshem />} />
+      </Routes>
     </BrowserRouter>
   );
 }
-- 
cgit v1.3.1

