diff --git a/src/App.tsx b/src/App.tsx
index 9cf4075..dccbd57 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -11,6 +11,8 @@ import DashboardPage from "./Pages/DashboardPage/DashboardPage";
import Revalidator from "./Components/Revalidator/Revalidator";
import ActivationPage from "./Pages/ActivationPage/ActivationPage";
import ResetPasswordPage from "./Pages/ResetPasswordPage/ResetPasswordPage";
+import EquipmentInstancesListPage from "./Pages/EquipmentInstancesListPage/EquipmentInstancesListPage";
+import AddEquipmentInstancePage from "./Pages/AddEquipmentInstancePage/AddEquipmentInstancePage";
const queryClient = new QueryClient();
const router = createHashRouter([
@@ -34,6 +36,26 @@ const router = createHashRouter([
),
errorElement: ,
},
+ {
+ path: "/view/equipment_instances",
+ element: (
+ <>
+
+
+ >
+ ),
+ errorElement: ,
+ },
+ {
+ path: "/add/equipment_instance",
+ element: (
+ <>
+
+
+ >
+ ),
+ errorElement: ,
+ },
{
path: "/activation/:uid/:token",
element: (
diff --git a/src/Pages/AddEquipmentInstancePage/AddEquipmentInstancePage.tsx b/src/Pages/AddEquipmentInstancePage/AddEquipmentInstancePage.tsx
new file mode 100644
index 0000000..dcb4f99
--- /dev/null
+++ b/src/Pages/AddEquipmentInstancePage/AddEquipmentInstancePage.tsx
@@ -0,0 +1,3 @@
+export default function AddEquipmentInstancePage() {
+ return
{"AddEquipmentInstancePage"}
;
+}
diff --git a/src/Pages/DashboardPage/DashboardPage.tsx b/src/Pages/DashboardPage/DashboardPage.tsx
index 0d33072..187ef13 100644
--- a/src/Pages/DashboardPage/DashboardPage.tsx
+++ b/src/Pages/DashboardPage/DashboardPage.tsx
@@ -10,7 +10,10 @@ import ChairIcon from "@mui/icons-material/Chair";
import FormatListBulletedIcon from "@mui/icons-material/FormatListBulleted";
import AddToQueueIcon from "@mui/icons-material/AddToQueue";
import { colors } from "../../styles";
+import { useNavigate } from "react-router-dom";
export default function Dashboard() {
+ const navigate = useNavigate();
+
const queries = useQueries({
queries: [
{
@@ -238,6 +241,9 @@ export default function Dashboard() {
flexWrap: "wrap",
},
}}
+ onClick={() => {
+ navigate("/view/equipment_instances");
+ }}
>
{
+ navigate("/add/equipment_instance");
+ }}
>
{"EquipmentInstancesListPage"};
+}