From 83591429360863034bef5cc5ed5bc47ee60cb62e Mon Sep 17 00:00:00 2001 From: keannu125 Date: Fri, 10 Mar 2023 00:52:06 +0800 Subject: [PATCH] Fixed base url --- src/App.tsx | 161 ++++++++++++++++++++++++++-------------------------- 1 file changed, 82 insertions(+), 79 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index e6dd886..1ed7437 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -17,85 +17,88 @@ import Register from "./Routes/Register/Register"; const queryClient = new QueryClient(); -const router = createBrowserRouter([ - { - path: "/", - element: ( - - - - ), - errorElement: ( - - - - ), - }, - { - path: "/Products", - element: ( - - - - ), - }, - { - path: "/Inventory", - element: ( - - - - ), - }, - { - path: "/Logs", - element: ( - - - - ), - }, - { - path: "/Login", - element: ( - - - - ), - }, - { - path: "/Product/:id", - element: ( - - - - ), - }, - { - path: "/Activation/:uid/:token", - element: ( - - - - ), - }, - { - path: "/NewProduct", - element: ( - - - - ), - }, - { - path: "/Register", - element: ( - - - - ), - }, -]); +const router = createBrowserRouter( + [ + { + path: "/", + element: ( + + + + ), + errorElement: ( + + + + ), + }, + { + path: "/Products", + element: ( + + + + ), + }, + { + path: "/Inventory", + element: ( + + + + ), + }, + { + path: "/Logs", + element: ( + + + + ), + }, + { + path: "/Login", + element: ( + + + + ), + }, + { + path: "/Product/:id", + element: ( + + + + ), + }, + { + path: "/Activation/:uid/:token", + element: ( + + + + ), + }, + { + path: "/NewProduct", + element: ( + + + + ), + }, + { + path: "/Register", + element: ( + + + + ), + }, + ], + { basename: "Ivy" } +); export default function App() { return (