From c68a69ff9e0c16b7bb2f191e41d151321054dd9d Mon Sep 17 00:00:00 2001 From: Derek Sonnenberg Date: Thu, 7 Dec 2023 12:16:25 -0600 Subject: [PATCH] feat: add version footer and fix router PE-5161 --- src/App.tsx | 4 ++-- src/components/RouterPage.css | 18 ++++++++++++++++++ src/components/RouterPage.tsx | 2 ++ 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 src/components/RouterPage.css diff --git a/src/App.tsx b/src/App.tsx index 0b2407e..eb4da6a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -3,13 +3,13 @@ import { GiftForm } from "./GiftForm"; import { RouterPage } from "./components/RouterPage"; import { useErrorMessage } from "./hooks/useErrorMessage"; -import { HashRouter as Router, Route, Routes } from "react-router-dom"; +import { BrowserRouter as Router, Route, Routes } from "react-router-dom"; function App() { const [errorMessage, setErrorMessage] = useErrorMessage(); const router = ( - + {page} + v{import.meta.env.PACKAGE_VERSION} ); }