fix i18n warnings

master
Tudor Stanciu 2020-05-14 00:01:30 +03:00
parent c11d8103bb
commit fbb4f82897
2 changed files with 5 additions and 8 deletions

View File

@ -1,4 +1,4 @@
import React from "react"; import React, { Suspense } from "react";
import { Route, Switch } from "react-router-dom"; import { Route, Switch } from "react-router-dom";
import HomePage from "./home/HomePage"; import HomePage from "./home/HomePage";
import AboutPage from "./about/AboutPage"; import AboutPage from "./about/AboutPage";
@ -10,12 +10,12 @@ import SessionContainer from "../features/session/components/SessionContainer";
function App() { function App() {
const contentStyle = { const contentStyle = {
"padding-left": "30px", paddingLeft: "30px",
"padding-right": "30px" paddingRight: "30px"
}; };
return ( return (
<div> <Suspense fallback={<div></div>}>
<Header /> <Header />
<br /> <br />
<div style={contentStyle}> <div style={contentStyle}>
@ -27,7 +27,7 @@ function App() {
</Switch> </Switch>
<ToastContainer autoClose={3000} /> <ToastContainer autoClose={3000} />
</div> </div>
</div> </Suspense>
); );
} }

View File

@ -82,9 +82,6 @@ i18n
return value; return value;
} }
}, },
react: {
useSuspense: false
},
backend: { backend: {
loadPath: "/public/locales/{{lng}}/{{ns}}.json" loadPath: "/public/locales/{{lng}}/{{ns}}.json"
} }