File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import * as React from "react" ;
2- import { FormattedMessage } from "react-intl" ;
2+ import { FormattedMessage , InjectedIntlProps , injectIntl } from "react-intl" ;
33import { connect } from "react-redux" ;
44import { IStore } from "../redux/IStore" ;
55import { IDispatchToProps } from "../redux/modules/baseModule" ;
@@ -36,5 +36,8 @@ interface IStateToProps {
3636const mapStateToProps = ( state : Pick < IStore , "settings" > ) => ( {
3737 locale : state . settings . meta . locale
3838} ) ;
39- const connectedAbout = connect < IStateToProps , IDispatchToProps > ( mapStateToProps ) ( AboutPage ) ;
39+ const connectedAbout = injectIntl (
40+ connect < IStateToProps , IDispatchToProps , InjectedIntlProps > ( mapStateToProps ) ( AboutPage )
41+ ) ;
42+
4043export { AboutPage as UnconnectedAbout , connectedAbout as AboutPage , mapStateToProps } ;
You can’t perform that action at this time.
0 commit comments