Merge remote-tracking branch 'origin/fix/last_tasks'

This commit is contained in:
Ahmed Bouhuolia
2020-06-01 20:33:01 +02:00
37 changed files with 29175 additions and 7526 deletions

View File

@@ -1,13 +1,14 @@
import { connect } from 'react-redux';
export default (mapState) => {
export default (mapState) => {
const mapStateToProps = (state, props) => {
const mapped = {
currencies: state.currencies.data,
currenciesList: Object.values(state.currencies.data),
currenciesLoading: state.currencies.loading,
};
return mapState ? mapState(mapped, state, props) : mapped;
};
return connect(mapStateToProps);
}
};