mirror of
https://github.com/lemeow125/EquipmentTracker-Frontend.git
synced 2024-11-17 14:19:24 +08:00
35 lines
983 B
TypeScript
35 lines
983 B
TypeScript
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";
|
|
const queryClient = new QueryClient();
|
|
import { ToastContainer } from "react-toastify";
|
|
import "react-toastify/dist/ReactToastify.css";
|
|
const router = createHashRouter([
|
|
{
|
|
path: "/",
|
|
element: <LandingPage />,
|
|
errorElement: <></>,
|
|
},
|
|
]);
|
|
|
|
export default function App() {
|
|
return (
|
|
<Provider store={store}>
|
|
<QueryClientProvider client={queryClient}>
|
|
<RouterProvider router={router} />
|
|
</QueryClientProvider>
|
|
<ToastContainer
|
|
autoClose={1500}
|
|
position="bottom-center"
|
|
closeOnClick
|
|
pauseOnHover
|
|
draggable
|
|
theme={"light"}
|
|
limit={3}
|
|
/>
|
|
</Provider>
|
|
);
|
|
}
|