File tree Expand file tree Collapse file tree 2 files changed +40
-32
lines changed
invokeai/frontend/web/src Expand file tree Collapse file tree 2 files changed +40
-32
lines changed Original file line number Diff line number Diff line change 1+ import React , { lazy } from 'react' ;
2+ import { Provider } from 'react-redux' ;
3+ import { PersistGate } from 'redux-persist/integration/react' ;
4+ import { store } from './app/store' ;
5+ import { persistor } from './persistor' ;
6+ import '@fontsource/inter/100.css' ;
7+ import '@fontsource/inter/200.css' ;
8+ import '@fontsource/inter/300.css' ;
9+ import '@fontsource/inter/400.css' ;
10+ import '@fontsource/inter/500.css' ;
11+ import '@fontsource/inter/600.css' ;
12+ import '@fontsource/inter/700.css' ;
13+ import '@fontsource/inter/800.css' ;
14+ import '@fontsource/inter/900.css' ;
15+
16+ import Loading from './Loading' ;
17+
18+ // Localization
19+ import './i18n' ;
20+
21+ const App = lazy ( ( ) => import ( './app/App' ) ) ;
22+ const ThemeLocaleProvider = lazy ( ( ) => import ( './app/ThemeLocaleProvider' ) ) ;
23+
24+ export default function Component ( ) {
25+ return (
26+ < React . StrictMode >
27+ < Provider store = { store } >
28+ < PersistGate loading = { < Loading /> } persistor = { persistor } >
29+ < React . Suspense fallback = { < Loading showText /> } >
30+ < ThemeLocaleProvider >
31+ < App />
32+ </ ThemeLocaleProvider >
33+ </ React . Suspense >
34+ </ PersistGate >
35+ </ Provider >
36+ </ React . StrictMode >
37+ ) ;
38+ }
Original file line number Diff line number Diff line change 1- import React , { lazy } from 'react' ;
21import ReactDOM from 'react-dom/client' ;
3- import { Provider } from 'react-redux' ;
4- import { PersistGate } from 'redux-persist/integration/react' ;
5- import { store } from './app/store' ;
6- import { persistor } from './persistor' ;
7- import '@fontsource/inter/100.css' ;
8- import '@fontsource/inter/200.css' ;
9- import '@fontsource/inter/300.css' ;
10- import '@fontsource/inter/400.css' ;
11- import '@fontsource/inter/500.css' ;
12- import '@fontsource/inter/600.css' ;
13- import '@fontsource/inter/700.css' ;
14- import '@fontsource/inter/800.css' ;
15- import '@fontsource/inter/900.css' ;
162
17- import Loading from './Loading' ;
18-
19- // Localization
20- import './i18n' ;
21-
22- const App = lazy ( ( ) => import ( './app/App' ) ) ;
23- const ThemeLocaleProvider = lazy ( ( ) => import ( './app/ThemeLocaleProvider' ) ) ;
3+ import Component from './component' ;
244
255ReactDOM . createRoot ( document . getElementById ( 'root' ) as HTMLElement ) . render (
26- < React . StrictMode >
27- < Provider store = { store } >
28- < PersistGate loading = { < Loading /> } persistor = { persistor } >
29- < React . Suspense fallback = { < Loading showText /> } >
30- < ThemeLocaleProvider >
31- < App />
32- </ ThemeLocaleProvider >
33- </ React . Suspense >
34- </ PersistGate >
35- </ Provider >
36- </ React . StrictMode >
6+ < Component />
377) ;
You can’t perform that action at this time.
0 commit comments