Skip to content
Snippets Groups Projects
Commit e7e74be8 authored by Liliana Sanfilippo's avatar Liliana Sanfilippo
Browse files

unused declarations

parent 8de145e4
No related branches found
No related tags found
No related merge requests found
Pipeline #531605 failed
......@@ -12,8 +12,7 @@ export const useTabNavigation = () => {
const [activeTab, setActiveTab] = useState<string | null>(null);
const [activeSubTab, setActiveSubTab] = useState<string | null>(null);
const [activeCollapsible, setActiveCollapsible] = useState<string | null>(null);
const [activeTabInCollapsible, setActiveTabInCollapsible] = useState<string | null>(null);
const [, setActiveCollapsible] = useState<string | null>(null);
// tab change and url update
......
// function to open a main tab
// Function to open a main tab
export const openTab = (tabId: string, tabClass: string) => {
console.log(`Versuche, Tab mit ID ${tabId} zu finden`);
console.log(`Trying to find tab with ID ${tabId}`);
const selectedTab = document.querySelector(`#${tabId}`);
if (selectedTab) {
console.log('Tab gefunden!');
console.log('Tab found!');
const tabs = document.getElementsByClassName(tabClass);
for (let index = 0; index < tabs.length; index++) {
(tabs[index] as HTMLElement).style.display = 'none';
......@@ -13,11 +12,10 @@ export const openTab = (tabId: string, tabClass: string) => {
if (selectedTab) {
selectedTab.style.display = 'block';
selectedTab.style.visibility = 'visible';
selectedTab.style.position = 'relative'; // Falls es ein Positionierungsproblem gibt
selectedTab.style.zIndex = '10';
selectedTab.style.position = 'relative'; // In case there's a positioning issue
selectedTab.style.zIndex = '10'; // Ensure the tab is above other elements
}
} else {
console.error(`Tab mit ID ${tabId} wurde nicht gefunden.`);
console.error(`Tab with ID ${tabId} not found.`);
}
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment