From 97452270f0eb6849eaa6bdeecdef452bc09786ee Mon Sep 17 00:00:00 2001
From: liliana <liliana.sanfilippo@uni-bielefeld.de>
Date: Wed, 14 Aug 2024 10:31:15 +0200
Subject: [PATCH] deleted RouteManager

---
 src/components/RoutManager.tsx | 56 ----------------------------------
 1 file changed, 56 deletions(-)
 delete mode 100644 src/components/RoutManager.tsx

diff --git a/src/components/RoutManager.tsx b/src/components/RoutManager.tsx
deleted file mode 100644
index 3857e012..00000000
--- a/src/components/RoutManager.tsx
+++ /dev/null
@@ -1,56 +0,0 @@
-import React, { useState, useEffect } from "react";
-import { Routes, Route, useLocation } from "react-router-dom";
-import LoadingScreen from "../components/LoadingScreen";
-import { getPathMapping } from "../utils/getPathMapping";
-import { stringToSlug } from "../utils/stringToSlug";
-import { NotFound } from "../components/NotFound";
-import { Villbuttonrow } from "../components/Buttons";
-
-const RouteManager = () => {
-    const location = useLocation();
-    const [isLoading, setIsLoading] = useState(true); // Start with true to show the loading screen initially
-    const pathMapping = getPathMapping();
-  
-    useEffect(() => {
-      // Start loading when the route changes
-      setIsLoading(true);
-  
-      const timer = setTimeout(() => {
-        // Simulate content loading delay or wait for content to load here
-        setIsLoading(false);
-      }, 3000); // Adjust or replace with actual content loading logic
-  
-      return () => clearTimeout(timer);
-    }, [location.pathname]);
-  
-    return (
-      <>
-        {isLoading && <LoadingScreen />}
-        <Routes>
-          {Object.entries(pathMapping).map(([path, { header: Header, component: Component, navlist: Sidebar }]) => (
-            <Route
-              key={path}
-              path={path}
-              element={
-                <>
-                  <Header />
-                  <div className="container-fluid" onLoad={() => setIsLoading(false)}>
-                    <div className="row">
-                      <Sidebar />
-                      <div className="col">
-                        <Component />
-                        <Villbuttonrow />
-                      </div>
-                    </div>
-                  </div>
-                </>
-              }
-            />
-          ))}
-          <Route path="*" element={<NotFound />} />
-        </Routes>
-      </>
-    );
-  };
-  
-  export default RouteManager;
\ No newline at end of file
-- 
GitLab