diff --git a/src/app/app/page.tsx b/src/app/app/page.tsx index f8d197d..22cd23d 100755 --- a/src/app/app/page.tsx +++ b/src/app/app/page.tsx @@ -1,6 +1,6 @@ 'use client' import {auth} from "@/server/auth"; -import {redirect, useParams, useSearchParams} from "next/navigation"; +import {useRouter, redirect, useParams, useSearchParams} from "next/navigation"; import {useState} from "react"; import {useEffect} from "react"; import {api} from "@/trpc/react"; @@ -13,7 +13,6 @@ import { HardDrive, Network, Package, RefreshCcw, - Settings, SettingsIcon, Users, Zap @@ -27,6 +26,11 @@ export default function App(){ const cacheID = params.get("cacheID"); const [size, setSize] = useState(0) + const router = useRouter() + const handler = async (path: string) => { + router.push(path + "?" + params.toString()) + } + // Fetch the selected cache const cache = api.cache.getOverview.useQuery({ cacheID: parseInt(cacheID!) // This should be replaced with the actual cache ID you want to fetch @@ -128,7 +132,7 @@ export default function App(){ - - - -