2026-09-19 18:20:59 +03:00
|
|
|
import { StrictMode } from 'react';
|
|
|
|
|
import { createRoot } from 'react-dom/client';
|
2026-09-19 21:50:06 +03:00
|
|
|
import { QueryClientProvider } from '@tanstack/react-query';
|
2026-09-19 18:20:59 +03:00
|
|
|
|
|
|
|
|
import { App } from '@/App';
|
2026-09-19 21:50:06 +03:00
|
|
|
import { getQueryClient } from '@/lib/queryClient';
|
2026-09-19 18:20:59 +03:00
|
|
|
import { applyTheme, useUiStore } from '@/stores/ui';
|
|
|
|
|
import '@/i18n';
|
|
|
|
|
import '@/index.css';
|
|
|
|
|
|
|
|
|
|
applyTheme(useUiStore.getState().theme);
|
|
|
|
|
|
|
|
|
|
const container = document.getElementById('root');
|
|
|
|
|
if (!container) {
|
|
|
|
|
throw new Error('root container is missing');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
createRoot(container).render(
|
|
|
|
|
<StrictMode>
|
2026-09-19 21:50:06 +03:00
|
|
|
<QueryClientProvider client={getQueryClient()}>
|
2026-09-19 18:20:59 +03:00
|
|
|
<App />
|
|
|
|
|
</QueryClientProvider>
|
|
|
|
|
</StrictMode>,
|
|
|
|
|
);
|