Replace react-helmet with react-helmet-async

This commit is contained in:
SleepWalker
2019-12-30 09:29:39 +02:00
parent 884c77141a
commit b3f1268950
16 changed files with 26 additions and 40 deletions

View File

@@ -1,6 +1,7 @@
import React from 'react';
import { Provider as ReduxProvider } from 'react-redux';
import { Router } from 'react-router-dom';
import { HelmetProvider } from 'react-helmet-async';
import { IntlProvider } from 'app/components/i18n';
import { Store } from 'app/reducers';
@@ -14,11 +15,13 @@ function ContextProvider({
history: any;
}) {
return (
<ReduxProvider store={store}>
<IntlProvider>
<Router history={history}>{children}</Router>
</IntlProvider>
</ReduxProvider>
<HelmetProvider>
<ReduxProvider store={store}>
<IntlProvider>
<Router history={history}>{children}</Router>
</IntlProvider>
</ReduxProvider>
</HelmetProvider>
);
}