Ivy-Frontend/src/App.tsx

28 lines
695 B
TypeScript
Raw Normal View History

2023-02-13 22:11:25 +08:00
import React from "react";
2023-02-14 20:54:18 +08:00
import Dashboard from "./Routes/Dashboard/Dashboard";
import Header from "./Components/Header/Header";
2023-02-14 23:59:34 +08:00
import Container from "./Components/Container/Container";
import { createBrowserRouter, RouterProvider } from "react-router-dom";
2023-02-14 21:10:17 +08:00
import Store from "./Plugins/Redux/Store/Store";
import { Provider } from "react-redux";
const router = createBrowserRouter([
{
path: "/",
element: <Dashboard />,
},
]);
2023-02-14 21:10:17 +08:00
2023-02-13 22:49:32 +08:00
export default function App() {
return (
<React.StrictMode>
2023-02-14 21:10:17 +08:00
<Provider store={Store}>
<Header />
2023-02-14 23:59:34 +08:00
<Container>
<RouterProvider router={router} />
</Container>
2023-02-14 21:10:17 +08:00
</Provider>
</React.StrictMode>
);
}