mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 12:20:31 +00:00
14 lines
440 B
TypeScript
14 lines
440 B
TypeScript
// @ts-nocheck
|
|
import { connect } from 'react-redux';
|
|
import t from '@/store/types';
|
|
|
|
export const mapStateToProps = (state, props) => {
|
|
return {};
|
|
};
|
|
|
|
export const mapDispatchToProps = (dispatch) => ({
|
|
openAlert: (name, payload) => dispatch({ type: t.OPEN_ALERT, name, payload }),
|
|
closeAlert: (name, payload) => dispatch({ type: t.CLOSE_ALERT, name, payload }),
|
|
});
|
|
|
|
export const withAlertActions = connect(null, mapDispatchToProps); |