import React from "react"; import { createRoot } from "react-dom/client"; import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import App from "./App"; import { ToastContainer } from "react-toastify"; import "react-toastify/dist/ReactToastify.css"; import { IntlProvider } from "react-intl"; import "@src/dev-env"; import { i18nUtils } from "@src/i18n/utils/locales"; const queryClient = new QueryClient(); if (process.env.NODE_ENV !== "development") { (window as any).console = { log: () => {} }; (window as any).console.debug = () => {}; (window as any).console.info = () => {}; (window as any).console.warn = () => {}; } function mount() { const defaultLocale = i18nUtils.getDefaultLocale(); const el = document.getElementById("root"); if (!el) { console.warn("App root element not found"); return; } createRoot(el).render(
, ); } mount();