mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-31 04:00:18 -07:00
Revert "Fixed: Ensure translations are fetched before loading app"
This reverts commit eeaea17c1f
.
This commit is contained in:
parent
eeaea17c1f
commit
43c892b89d
6 changed files with 18 additions and 38 deletions
|
@ -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')
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue