mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
16 lines
419 B
JavaScript
16 lines
419 B
JavaScript
import { connect } from 'react-redux';
|
|
import t from 'store/types';
|
|
|
|
export const mapStateToProps = (state, props) => {
|
|
return {};
|
|
};
|
|
|
|
export const mapDispatchToProps = (dispatch) => ({
|
|
openDrawer: (name, payload) =>
|
|
dispatch({ type: t.OPEN_DRAWER, name, payload }),
|
|
closeDrawer: (name, payload) =>
|
|
dispatch({ type: t.CLOSE_DRAWER, name, payload }),
|
|
});
|
|
|
|
export default connect(null, mapDispatchToProps);
|