🏗️ Refactored AirDC++ session status indicator

This commit is contained in:
2023-11-07 20:06:32 -06:00
parent 936945138f
commit 18d2624d6c
6 changed files with 70 additions and 96 deletions

View File

@@ -4,6 +4,7 @@ import { createRoot } from "react-dom/client";
import App from "./components/App";
import { createBrowserRouter, RouterProvider } from "react-router-dom";
import Settings from "./components/Settings/Settings";
import { ErrorPage } from "./components/shared/ErrorPage";
const rootEl = document.getElementById("root");
const root = createRoot(rootEl);
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
@@ -15,10 +16,8 @@ const router = createBrowserRouter([
{
path: "/",
element: <App />,
},
{
path: "/settings",
element: <Settings />,
errorElement: <ErrorPage />,
children: [{ path: "settings", element: <Settings /> }],
},
]);