From f4825ae589383d292b29ba7725519ba224d12701 Mon Sep 17 00:00:00 2001 From: Liliana Sanfilippo <liliana.sanfilippo@uni-bielefeld.de> Date: Sun, 29 Sep 2024 17:03:38 +0200 Subject: [PATCH] unused import --- src/utils/TabNavigation.tsx | 4 +--- src/utils/useNavigation.ts | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/utils/TabNavigation.tsx b/src/utils/TabNavigation.tsx index 68cbc989..6a2a6d50 100644 --- a/src/utils/TabNavigation.tsx +++ b/src/utils/TabNavigation.tsx @@ -1,8 +1,7 @@ import { useEffect, useState } from 'react'; import { useNavigate, useLocation } from 'react-router-dom'; import { openFromOtherPage } from './openFromOtherpAge'; -import { useNavigation } from '.'; -import { useLoading } from './LoadingContext'; + // Funktion, um den Haupttab zu öffnen export const openTab = (tabId: string, tabClass: string) => { @@ -52,7 +51,6 @@ export const handleScrollToCollapse = (collapseId: string) => { // Custom Hook zur zentralen Tab-Navigation export const useTabNavigation = () => { - const { setIsLoading } = useLoading(); // 2. Ladezustand hier verwenden const navigate = useNavigate(); const location = useLocation(); const [activeTab, setActiveTab] = useState<string | null>(null); diff --git a/src/utils/useNavigation.ts b/src/utils/useNavigation.ts index 948669b5..4e6fbe46 100644 --- a/src/utils/useNavigation.ts +++ b/src/utils/useNavigation.ts @@ -1,5 +1,4 @@ import { useNavigate } from "react-router-dom"; -import { useState } from "react"; import { useLoading } from "./LoadingContext"; export const useNavigation = () => { -- GitLab