mirror of
https://github.com/gnmyt/LicenseAPI.git
synced 2026-01-11 10:41:46 +00:00
Create App.jsx
This commit is contained in:
19
dashboard/src/App.jsx
Normal file
19
dashboard/src/App.jsx
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
import {UserProvider} from "@contexts/User";
|
||||||
|
import {InfoProvider} from "@contexts/Info";
|
||||||
|
import {createBrowserRouter, RouterProvider} from "react-router-dom";
|
||||||
|
import Dashboard from "@/states/Dashboard";
|
||||||
|
import {routes} from "@/common/routes";
|
||||||
|
|
||||||
|
const router = createBrowserRouter([
|
||||||
|
{path: "/", element: <Dashboard/>, children: routes},
|
||||||
|
])
|
||||||
|
|
||||||
|
export default () => {
|
||||||
|
return (
|
||||||
|
<InfoProvider>
|
||||||
|
<UserProvider>
|
||||||
|
<RouterProvider router={router} />
|
||||||
|
</UserProvider>
|
||||||
|
</InfoProvider>
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user