2026-01-19 11:05:40 +05:30
|
|
|
import { BrowserRouter } from "react-router-dom";
|
2026-01-19 15:16:29 +05:30
|
|
|
import { ToastContainer } from "react-toastify";
|
|
|
|
|
import "react-toastify/dist/ReactToastify.css";
|
|
|
|
|
import "./toast.css";
|
2026-01-19 11:05:40 +05:30
|
|
|
import { AuthProvider } from "./context/AuthContext";
|
|
|
|
|
import { ThemeProvider } from "./context/ThemeContext";
|
|
|
|
|
import AppRoutes from "./routes";
|
|
|
|
|
|
|
|
|
|
const App = () => {
|
|
|
|
|
return (
|
2026-01-19 15:16:29 +05:30
|
|
|
<BrowserRouter>
|
|
|
|
|
<AuthProvider>
|
|
|
|
|
<ThemeProvider>
|
2026-01-19 11:05:40 +05:30
|
|
|
<AppRoutes />
|
2026-01-19 15:16:29 +05:30
|
|
|
<ToastContainer
|
|
|
|
|
position="top-right"
|
|
|
|
|
autoClose={3000}
|
|
|
|
|
hideProgressBar={false}
|
|
|
|
|
newestOnTop
|
|
|
|
|
closeOnClick
|
|
|
|
|
pauseOnHover
|
|
|
|
|
draggable
|
|
|
|
|
closeButton={true}
|
|
|
|
|
/>
|
|
|
|
|
</ThemeProvider>
|
|
|
|
|
</AuthProvider>
|
|
|
|
|
</BrowserRouter>
|
2026-01-19 11:05:40 +05:30
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default App;
|