2023-11-13 22:19:33 +08:00
|
|
|
import LandingPage from "./Pages/LandingPage/LandingPage";
|
|
|
|
import { createHashRouter, RouterProvider } from "react-router-dom";
|
|
|
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
|
|
import { Provider } from "react-redux";
|
|
|
|
import "./App.css";
|
|
|
|
import store from "./Components/Plugins/Redux/Store/Store";
|
2023-10-22 00:36:53 +08:00
|
|
|
|
2023-11-13 22:19:33 +08:00
|
|
|
const queryClient = new QueryClient();
|
2023-10-22 00:36:53 +08:00
|
|
|
|
2023-11-13 22:19:33 +08:00
|
|
|
const router = createHashRouter([
|
|
|
|
{
|
|
|
|
path: "/",
|
|
|
|
element: <LandingPage />,
|
|
|
|
errorElement: <></>,
|
|
|
|
},
|
|
|
|
]);
|
|
|
|
|
|
|
|
export default function App() {
|
2023-10-22 00:36:53 +08:00
|
|
|
return (
|
2023-11-13 22:19:33 +08:00
|
|
|
<Provider store={store}>
|
|
|
|
<QueryClientProvider client={queryClient}>
|
|
|
|
<RouterProvider router={router} />
|
|
|
|
</QueryClientProvider>
|
|
|
|
</Provider>
|
|
|
|
);
|
2023-10-22 00:36:53 +08:00
|
|
|
}
|