Commit eca3c88b authored by Viacheslav Pavlov's avatar Viacheslav Pavlov
Browse files

redux update fixed (stable)

parent 52fab3f0
import * as React from 'react';
import { WithTranslation, withTranslation } from 'react-i18next';
import compose from 'recompose/compose';
import { compose } from 'redux';
import {Breakpoint} from '@material-ui/core/styles/createBreakpoints';
......
import * as React from 'react';
import compose from 'recompose/compose';
import { compose } from 'redux';
import { WithStyles, withStyles } from '@material-ui/core/styles';
import Grid from '@material-ui/core/Grid';
import Divider from '@material-ui/core/Divider';
......@@ -369,4 +369,4 @@ class SearchMenu extends React.Component<ISearchMenuProps, any> {
}
export default withTranslation()(compose(withStyles(styles), withWidth())(SearchMenu));
export default compose(withStyles(styles), withWidth())(withTranslation()(SearchMenu));
import * as React from 'react';
import { WithTranslation, withTranslation } from 'react-i18next';
import {withStyles} from '@material-ui/core/styles';
import compose from 'recompose/compose';
import { compose } from 'redux';
import withWidth from '@material-ui/core/withWidth';
import Divider from '@material-ui/core/Divider';
......
import * as React from 'react';
import { bindActionCreators } from 'redux';
import { bindActionCreators, compose } from 'redux';
import { connect } from 'react-redux';
import { WithStyles, withStyles } from '@material-ui/core/styles';
import withWidth, { WithWidth } from '@material-ui/core/withWidth';
import { WithTranslation, withTranslation } from 'react-i18next';
import { showSnackbar } from 'actions/snackbar';
import compose from 'recompose/compose';
import Chip from '@material-ui/core/Chip';
import Paper from '@material-ui/core/Paper';
......@@ -404,4 +403,4 @@ const mapDispatchToProps = (dispatch) => bindActionCreators({
showSnackbar,
}, dispatch);
export default connect(mapStateToProps, mapDispatchToProps)(withTranslation()(compose(withStyles(styles), withWidth())(PrettyFilters)));
export default connect(mapStateToProps, mapDispatchToProps)(compose(withStyles(styles), withWidth())(withTranslation()(PrettyFilters)));
import * as React from 'react';
import { withTranslation } from 'react-i18next';
import { WithTranslation, withTranslation } from 'react-i18next';
import FastForward from '@material-ui/icons/FastForward';
import FastRewind from '@material-ui/icons/FastRewind';
......@@ -10,7 +10,7 @@ import { StyleRules, withStyles } from '@material-ui/core/styles';
import Select from '@material-ui/core/Select';
import Input from '@material-ui/core/Input';
import MenuItem from '@material-ui/core/MenuItem';
import compose from 'recompose/compose';
import { compose } from 'redux';
import withWidth from '@material-ui/core/withWidth';
import Hidden from '@material-ui/core/Hidden';
import { Breakpoint } from '@material-ui/core/styles/createBreakpoints';
......@@ -19,7 +19,7 @@ import Page from 'model/Page';
// TODO Deprecated maybe remove
/* tslint:disable */
interface IPaginationComponentProps extends React.ClassAttributes<any> {
interface IPaginationComponentProps extends React.ClassAttributes<any>, WithTranslation {
classes: any;
t: any;
......@@ -321,4 +321,4 @@ class PaginationComponent extends React.Component<IPaginationComponentProps, any
}
}
export default withTranslation()(compose(withStyles(styles), withWidth())(PaginationComponent));
export default compose(withStyles(styles), withWidth())(withTranslation()(PaginationComponent));
import * as React from 'react';
import { WithTranslation, withTranslation } from 'react-i18next';
import { compose } from 'redux';
import Grid from '@material-ui/core/Grid';
import { StyleRules, withStyles } from '@material-ui/core/styles';
import Select from '@material-ui/core/Select';
import Input from '@material-ui/core/Input';
import MenuItem from '@material-ui/core/MenuItem';
import compose from 'recompose/compose';
import withWidth from '@material-ui/core/withWidth';
import { Breakpoint } from '@material-ui/core/styles/createBreakpoints';
import Page from 'model/Page';
......
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