mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
22 lines
704 B
JavaScript
22 lines
704 B
JavaScript
import { connect } from 'react-redux';
|
|
import {
|
|
submitExchangeRate,
|
|
fetchExchangeRates,
|
|
deleteExchangeRate,
|
|
editExchangeRate,
|
|
} from 'store/ExchangeRate/exchange.actions';
|
|
|
|
const mapActionsToProps = (dispatch) => ({
|
|
requestSubmitExchangeRate: (form) => dispatch(submitExchangeRate({ form })),
|
|
requestFetchExchangeRates: () => dispatch(fetchExchangeRates()),
|
|
requestDeleteExchangeRate: (id) => dispatch(deleteExchangeRate(id)),
|
|
requestEditExchangeRate: (id, form) => dispatch(editExchangeRate(id, form)),
|
|
addExchangeRatesTableQueries: (queries) =>
|
|
dispatch({
|
|
type: 'ExchangeRates_TABLE_QUERIES_ADD',
|
|
queries,
|
|
}),
|
|
});
|
|
|
|
export default connect(null, mapActionsToProps);
|