mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-06 08:34:28 +01:00
24 lines
656 B
JavaScript
24 lines
656 B
JavaScript
import { createBrowserHistory } from 'history';
|
|
import React from 'react';
|
|
import { render } from 'react-dom';
|
|
import createAppStore from 'Store/createAppStore';
|
|
import { fetchTranslations } from 'Utilities/String/translate';
|
|
|
|
import './preload';
|
|
import './polyfills';
|
|
import 'Styles/globals.css';
|
|
import './index.css';
|
|
|
|
const history = createBrowserHistory();
|
|
const store = createAppStore(history);
|
|
const hasTranslationsError = !await fetchTranslations();
|
|
const { default: App } = await import('./App/App');
|
|
|
|
render(
|
|
<App
|
|
store={store}
|
|
history={history}
|
|
hasTranslationsError={hasTranslationsError}
|
|
/>,
|
|
document.getElementById('root')
|
|
);
|