mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
Merge remote-tracking branch 'origin/fix/last_tasks'
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user