From ebc7c26522c328db468254790f3636bcb962495b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=B6=9B?= Date: Wed, 8 Mar 2023 12:22:56 +0800 Subject: [PATCH] =?UTF-8?q?refactor(structure):=E5=8E=BB=E6=8E=89=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E6=8E=A7=E5=88=B6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.tsx | 5 ++--- src/router.tsx | 9 --------- 2 files changed, 2 insertions(+), 12 deletions(-) delete mode 100644 src/router.tsx diff --git a/src/main.tsx b/src/main.tsx index 8e798f4..7ce7f9e 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -3,8 +3,7 @@ import { useColorScheme } from '@mantine/hooks'; import { Notifications } from '@mantine/notifications'; import React, { FC, useState } from 'react'; import ReactDOM from 'react-dom/client'; -import { RouterProvider } from 'react-router-dom'; -import { appRouter } from './router'; +import { MainLayout } from './MainLayout'; import { useAppTheme } from './theme'; const AppMain: FC = () => { @@ -17,7 +16,7 @@ const AppMain: FC = () => { - + diff --git a/src/router.tsx b/src/router.tsx deleted file mode 100644 index 5e0c0f7..0000000 --- a/src/router.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import { createBrowserRouter } from "react-router-dom"; -import { MainLayout } from "./MainLayout"; - -export const appRouter = createBrowserRouter([ - { - path: "/", - element: , - }, -]);