diff --git a/bun.lockb b/bun.lockb index f707626..e09c2e0 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 14b09d9..5fcebaf 100644 --- a/package.json +++ b/package.json @@ -24,10 +24,10 @@ "@radix-ui/react-separator": "^1.1.1", "@radix-ui/react-slot": "^1.1.1", "@radix-ui/react-switch": "^1.1.2", - "@tanstack/react-query": "^5.62.11", - "@tanstack/react-query-devtools": "^5.62.11", + "@tanstack/react-query": "^5.62.14", + "@tanstack/react-query-devtools": "^5.62.14", "@tanstack/react-table": "^8.20.6", - "@trivago/prettier-plugin-sort-imports": "^5.2.0", + "@trivago/prettier-plugin-sort-imports": "^5.2.1", "@types/d3-geo": "^3.1.0", "@types/luxon": "^3.4.2", "class-variance-authority": "^0.7.1", @@ -51,7 +51,7 @@ }, "devDependencies": { "@eslint/js": "^9.17.0", - "@types/node": "^22.10.3", + "@types/node": "^22.10.5", "@types/react": "^19.0.2", "@types/react-dom": "^19.0.2", "@vitejs/plugin-react-swc": "^3.7.2", @@ -64,6 +64,6 @@ "tailwindcss": "^3.4.17", "typescript": "~5.6.3", "typescript-eslint": "^8.19.0", - "vite": "^6.0.6" + "vite": "^6.0.7" } } diff --git a/src/components/GroupSwitch.tsx b/src/components/GroupSwitch.tsx index 9446785..0298634 100644 --- a/src/components/GroupSwitch.tsx +++ b/src/components/GroupSwitch.tsx @@ -37,6 +37,13 @@ export default function GroupSwitch({ } }, []) + useEffect(() => { + const savedGroup = sessionStorage.getItem("selectedGroup") + if (savedGroup && tabs.includes(savedGroup)) { + setCurrentTab(savedGroup) + } + }, [tabs, setCurrentTab]) + useEffect(() => { const currentTagRef = tagRefs.current[tabs.indexOf(currentTab)] diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 0408c1e..a657556 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -60,7 +60,13 @@ function Header() { return (