@@ -13,33 +13,30 @@ import { default as i18next, changeLanguage } from 'i18next';
1313import { extractLocaleFromUrl , LOCALES , mapLocale } from './i18n' ;
1414import HttpApi from 'i18next-http-backend' ;
1515import { initReactI18next } from "react-i18next" ;
16- import { Suspense } from 'preact/compat' ;
1716
1817export const LocaleContext = createContext ( 'en' ) ;
1918
2019export function App ( props : { repoStargazersCount : number } ) {
2120 return (
22- < LocationProvider >
23- < LocaleProvider >
24- < Suspense fallback = { < div class = "loading-screen" > Loading...</ div > } >
25- < Header repoStargazersCount = { props . repoStargazersCount } />
26- < main >
27- < Router >
28- < Route path = "/" component = { Home } />
29- < Route path = "/get-started" component = { GetStarted } />
30- < Route path = "/support-us" component = { SupportUs } />
21+ < LocationProvider >
22+ < LocaleProvider >
23+ < Header repoStargazersCount = { props . repoStargazersCount } />
24+ < main >
25+ < Router >
26+ < Route path = "/" component = { Home } />
27+ < Route path = "/get-started" component = { GetStarted } />
28+ < Route path = "/support-us" component = { SupportUs } />
3129
32- < Route path = "/:locale:/" component = { Home } />
33- < Route path = "/:locale:/get-started" component = { GetStarted } />
34- < Route path = "/:locale:/support-us" component = { SupportUs } />
30+ < Route path = "/:locale:/" component = { Home } />
31+ < Route path = "/:locale:/get-started" component = { GetStarted } />
32+ < Route path = "/:locale:/support-us" component = { SupportUs } />
3533
36- < Route default component = { NotFound } />
37- </ Router >
38- </ main >
39- < Footer />
40- </ Suspense >
41- </ LocaleProvider >
42- </ LocationProvider >
34+ < Route default component = { NotFound } />
35+ </ Router >
36+ </ main >
37+ < Footer />
38+ </ LocaleProvider >
39+ </ LocationProvider >
4340 ) ;
4441}
4542
0 commit comments