Revert "Fixed: Ensure translations are fetched before loading app"

This reverts commit eeaea17c1f.
This commit is contained in:
Bogdan 2023-07-16 04:15:48 +03:00
parent eeaea17c1f
commit 43c892b89d
6 changed files with 18 additions and 38 deletions

View file

@ -2,7 +2,7 @@ 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 App from './App/App';
import 'Diag/ConsoleApi';
import './preload';
@ -12,14 +12,11 @@ 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')
);