Commit 7dee4d40 authored by Eugen Rochko's avatar Eugen Rochko

Fix locale not updating in wizard

parent ab34e717
Pipeline #912 passed with stages
in 1 minute
......@@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import WizardRow from './WizardRow';
import WizardCard from './WizardCard';
import { FormattedHTMLMessage as FormattedMessage, injectIntl, defineMessages } from 'react-intl';
import { FormattedHTMLMessage as FormattedMessage, defineMessages } from 'react-intl';
import ReactResponsiveSelect from 'react-responsive-select';
import { Link } from 'react-router-dom';
......@@ -35,7 +35,7 @@ const caretIcon = (
</svg>
);
class Wizard extends React.PureComponent {
class Wizard extends React.Component {
static propTypes = {
category: PropTypes.string.isRequired,
......@@ -165,4 +165,4 @@ class Wizard extends React.PureComponent {
}
}
export default injectIntl(Wizard);
export default Wizard;
import Wizard from './Wizard';
import { connect } from 'react-redux';
import { fetchInstances, changeFilterCategory, changeFilterLanguage, fetchLanguages, showAllInstances } from './actions';
import { injectIntl } from 'react-intl';
const mapStateToProps = state => ({
const mapStateToProps = (state, { intl }) => ({
instances: state.instances,
languages: state.languages,
category: state.filter.category,
language: state.filter.language,
showAll: state.filter.showAll,
intl,
});
const mapDispatchToProps = dispatch => ({
......@@ -34,4 +36,4 @@ const mapDispatchToProps = dispatch => ({
});
export default connect(mapStateToProps, mapDispatchToProps)(Wizard);
export default injectIntl(connect(mapStateToProps, mapDispatchToProps)(Wizard));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment