mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-10-04 11:50:09 +00:00
39 lines
1.0 KiB
TypeScript
39 lines
1.0 KiB
TypeScript
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
|
|
import { RawIntlProvider } from "react-intl";
|
|
import { ToastContainer } from "react-toastify";
|
|
import { AuthProvider, LocaleProvider, ThemeProvider } from "src/context";
|
|
import { intl } from "src/locale";
|
|
import Router from "src/Router.tsx";
|
|
|
|
// Create a client
|
|
const queryClient = new QueryClient();
|
|
|
|
function App() {
|
|
return (
|
|
<RawIntlProvider value={intl}>
|
|
<LocaleProvider>
|
|
<ThemeProvider>
|
|
<QueryClientProvider client={queryClient}>
|
|
<AuthProvider>
|
|
<Router />
|
|
<ToastContainer
|
|
position="top-right"
|
|
autoClose={5000}
|
|
hideProgressBar={true}
|
|
newestOnTop={true}
|
|
closeOnClick={true}
|
|
rtl={false}
|
|
closeButton={false}
|
|
/>
|
|
</AuthProvider>
|
|
<ReactQueryDevtools buttonPosition="bottom-right" position="right" />
|
|
</QueryClientProvider>
|
|
</ThemeProvider>
|
|
</LocaleProvider>
|
|
</RawIntlProvider>
|
|
);
|
|
}
|
|
|
|
export default App;
|