fix i18n warnings
parent
c11d8103bb
commit
fbb4f82897
|
@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue