mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-01-04 11:12:49 +05:30
#119: fix bug with footer menu won't be re-rendered after lang change
This commit is contained in:
parent
f243eefef3
commit
b74d19454e
@ -41,6 +41,8 @@ import { connect } from 'react-redux';
|
|||||||
import ContactForm from 'components/contact/ContactForm';
|
import ContactForm from 'components/contact/ContactForm';
|
||||||
import { create as createPopup } from 'components/ui/popup/actions';
|
import { create as createPopup } from 'components/ui/popup/actions';
|
||||||
|
|
||||||
|
// mark this component, as not pure, because it is stateless,
|
||||||
|
// but should be re-rendered, if current lang was changed
|
||||||
export default connect(null, {
|
export default connect(null, {
|
||||||
createPopup: () => createPopup(ContactForm)
|
createPopup: () => createPopup(ContactForm)
|
||||||
})(FooterMenu);
|
}, null, {pure: false})(FooterMenu);
|
||||||
|
Loading…
Reference in New Issue
Block a user