mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
WIP Version 0.0.1
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
import {connect} from 'react-redux';
|
||||
import {getDialogPayload} from 'store/dashboard/dashboard.reducer';
|
||||
|
||||
export const mapStateToProps = (state, props) => {
|
||||
const dialogPayload = getDialogPayload(state, 'account-form');
|
||||
|
||||
return {
|
||||
name: 'account-form',
|
||||
payload: {action: 'new', id: null, ...dialogPayload},
|
||||
};
|
||||
};
|
||||
|
||||
export default connect(mapStateToProps);
|
||||
@@ -1,24 +0,0 @@
|
||||
import {
|
||||
login,
|
||||
resetPassword,
|
||||
sendResetPassword,
|
||||
inviteAccept,
|
||||
register,
|
||||
inviteMetaByToken,
|
||||
} from 'store/authentication/authentication.actions';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
const mapStateToProps = (state) => ({
|
||||
|
||||
});
|
||||
|
||||
const mapDispatchToProps = (dispatch) => ({
|
||||
requestLogin: (form) => dispatch(login({ form })),
|
||||
requestRegister: (form) => dispatch(register({ form })),
|
||||
requestSendResetPassword: (email) => dispatch(sendResetPassword({ email })),
|
||||
requestResetPassword: (form, token) => dispatch(resetPassword({ form, token })),
|
||||
requestInviteAccept: (form, token) => dispatch(inviteAccept({ form, token })),
|
||||
requestInviteMetaByToken: (token) => dispatch(inviteMetaByToken({ token })),
|
||||
});
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps);
|
||||
@@ -1,14 +0,0 @@
|
||||
import { connect } from 'react-redux';
|
||||
import {
|
||||
fetchResourceViews,
|
||||
} from 'store/customViews/customViews.actions';
|
||||
|
||||
const mapStateToProps = (state) => ({
|
||||
|
||||
});
|
||||
|
||||
const mapActionsToProps = (dispatch) => ({
|
||||
fetchResourceViews: (resourceSlug) => dispatch(fetchResourceViews({ resourceSlug })),
|
||||
});
|
||||
|
||||
export default connect(mapStateToProps, mapActionsToProps);
|
||||
@@ -2,10 +2,6 @@
|
||||
import { connect } from 'react-redux';
|
||||
import t from 'store/types';
|
||||
|
||||
const mapStateToProps = (state) => ({
|
||||
|
||||
});
|
||||
|
||||
const mapActionsToProps = (dispatch) => ({
|
||||
changePageTitle: (pageTitle) => dispatch({
|
||||
type: t.CHANGE_DASHBOARD_PAGE_TITLE, pageTitle
|
||||
@@ -28,4 +24,4 @@ const mapActionsToProps = (dispatch) => ({
|
||||
}),
|
||||
});
|
||||
|
||||
export default connect(mapStateToProps, mapActionsToProps);
|
||||
export default connect(null, mapActionsToProps);
|
||||
@@ -1,12 +0,0 @@
|
||||
import { connect } from 'react-redux';
|
||||
import { submitRegister } from 'store/registers/register.action';
|
||||
|
||||
export const mapStateToProps = (state, props) => {
|
||||
return {};
|
||||
};
|
||||
|
||||
export const mapDispatchToProps = (dispatch) => ({
|
||||
requestSubmitRegister: (form) => dispatch(submitRegister({ form })),
|
||||
});
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps);
|
||||
@@ -8,19 +8,21 @@ import {
|
||||
getResourceFields,
|
||||
getResourceColumn,
|
||||
getResourceField,
|
||||
getResourceMetadata,
|
||||
} from 'store/resources/resources.reducer';
|
||||
|
||||
export const mapStateToProps = (state, props) => ({
|
||||
getResourceColumns: (resourceSlug) => getResourceColumns(state, resourceSlug),
|
||||
getResourceFields: (resourceSlug) => getResourceFields(state, resourceSlug),
|
||||
// getResourceColumns: (resourceSlug) => getResourceColumns(state, resourceSlug),
|
||||
// getResourceFields: (resourceSlug) => getResourceFields(state, resourceSlug),
|
||||
// getResourceMetadata: (resourceSlug) => getResourceMetadata(state, resourceSlug),
|
||||
|
||||
getResourceColumn: (columnId) => getResourceColumn(state, columnId),
|
||||
getResourceField: (fieldId) => getResourceField(state, fieldId),
|
||||
// getResourceColumn: (columnId) => getResourceColumn(state, columnId),
|
||||
// getResourceField: (fieldId) => getResourceField(state, fieldId),
|
||||
});
|
||||
|
||||
export const mapDispatchToProps = (dispatch) => ({
|
||||
fetchResourceFields: (resourceSlug) => dispatch(fetchResourceFields({ resourceSlug })),
|
||||
fetchResourceColumns: (resourceSlug) => dispatch(fetchResourceColumns({ resourceSlug })),
|
||||
requestFetchResourceFields: (resourceSlug) => dispatch(fetchResourceFields({ resourceSlug })),
|
||||
requestFetchResourceColumns: (resourceSlug) => dispatch(fetchResourceColumns({ resourceSlug })),
|
||||
});
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps);
|
||||
@@ -1,25 +0,0 @@
|
||||
import {connect} from 'react-redux';
|
||||
import {
|
||||
fetchView,
|
||||
submitView,
|
||||
deleteView,
|
||||
editView,
|
||||
} from 'store/customViews/customViews.actions';
|
||||
import {
|
||||
getViewMeta,
|
||||
getViewItem,
|
||||
} from 'store/customViews/customViews.selectors';
|
||||
|
||||
export const mapStateToProps = (state) => ({
|
||||
getViewMeta: (viewId) => getViewMeta(state, viewId),
|
||||
getViewItem: (viewId) => getViewItem(state, viewId),
|
||||
});
|
||||
|
||||
export const mapDispatchToProps = (dispatch) => ({
|
||||
fetchView: (id) => dispatch(fetchView({ id })),
|
||||
submitView: (form) => dispatch(submitView({ form })),
|
||||
editView: (id, form) => dispatch(editView({ id, form })),
|
||||
deleteView: (id) => dispatch(deleteView({ id })),
|
||||
});
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps);
|
||||
@@ -1,29 +0,0 @@
|
||||
import {connect} from 'react-redux';
|
||||
import {
|
||||
fetchResourceColumns,
|
||||
fetchResourceFields,
|
||||
} from 'store/resources/resources.actions';
|
||||
import {
|
||||
getResourceColumns,
|
||||
getResourceFields,
|
||||
} from 'store/resources/resources.reducer';
|
||||
import {
|
||||
fetchView,
|
||||
submitView,
|
||||
editView,
|
||||
} from 'store/customViews/customViews.actions';
|
||||
import t from 'store/types';
|
||||
|
||||
export const mapStateToProps = (state, props) => {
|
||||
return {
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
export const mapDispatchToProps = (dispatch) => ({
|
||||
fetchView: (id) => dispatch(fetchView({ id })),
|
||||
submitView: (form) => dispatch(submitView({ form })),
|
||||
editView: (id, form) => dispatch(editView({ id, form })),
|
||||
});
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps);
|
||||
Reference in New Issue
Block a user