mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
13 lines
407 B
JavaScript
13 lines
407 B
JavaScript
import {connect} from 'react-redux';
|
|
import t from 'store/types';
|
|
|
|
export const mapStateToProps = (state, props) => {
|
|
|
|
};
|
|
|
|
export const mapDispatchToProps = (dispatch) => ({
|
|
openDialog: (name, payload) => dispatch({ type: t.OPEN_DIALOG, name, payload }),
|
|
closeDialog: (name, payload) => dispatch({ type: t.CLOSE_DIALOG, name, payload }),
|
|
});
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps); |