From fea8c6b0aebe90b3de23587d77a984c56b4ccc1d Mon Sep 17 00:00:00 2001 From: Anil Natha Date: Tue, 17 Dec 2024 10:10:31 -0800 Subject: [PATCH] Updated homepage so that it exists at /home and anytime the path at "/" is visited, it redirects to "/home". --- src/Root.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Root.tsx b/src/Root.tsx index d23561f..3a1df5d 100644 --- a/src/Root.tsx +++ b/src/Root.tsx @@ -1,4 +1,5 @@ import { + Navigate, Route, Routes, } from "react-router-dom" @@ -28,7 +29,6 @@ function Root() { useEffect(() => { - if (healthState.status === "idle") { // Fetch the health data dispatch(getHealthData()); @@ -72,9 +72,9 @@ function Root() { return } /> }) } - {/*} />*/} + } /> } /> - } /> + } /> } />