Beispiel #1
0
const mapDispatchToProps = (dispatch: any, ownProps: any) => {
    return {
        sendLoginDetailsToServer: bindActionCreators(actions().sendLoginDetailsToServer, dispatch),
        sendSignupDetailsToServer: bindActionCreators(actions().sendSignupDetailsToServer, dispatch)

    }
}
Beispiel #2
0
const getActions = () => {
  if (actions) {
    return actions
  }
  actions = bindActionCreators(newTabActions, store.dispatch.bind(store))
  return actions
}
Beispiel #3
0
export const mapDispatchToProps = (dispatch) => bindActionCreators({
	onAvatarChange: CurrentUserActions.uploadAvatar,
	onUserDataChange: CurrentUserActions.updateUser,
	onPasswordChange: CurrentUserActions.updateUserPassword,
	onGenerateApiKey: CurrentUserActions.generateApiKey,
	onDeleteApiKey: CurrentUserActions.deleteApiKey
}, dispatch);
Beispiel #4
0
export const mapDispatchToProps = (dispatch) => bindActionCreators({
	fetchMetadata: BimActions.fetchMetadata,
	setComponentState: BimActions.setComponentState,
	clearStarredMetadata: StarredMetaActions.clearStarredMeta,
	addMetaRecordToStarred: StarredMetaActions.addToStarredMeta,
	removeMetaRecordFromStarred: StarredMetaActions.removeFromStarredMeta,
	showConfirmDialog: DialogActions.showConfirmDialog
}, dispatch);
Beispiel #5
0
 mapDispatchToThis(dispatch)  {
   return bindActionCreators({
       increment: CounterActions.increment,
       decrement: CounterActions.decrement,
       incrementIfOdd: CounterActions.incrementIfOdd,
       incrementAsync: CounterActions.incrementAsync
   }, dispatch);
 }
export const mapDispatchToProps = (dispatch) =>
	bindActionCreators(
		{
			fetchQuotaInfo: CurrentUserActions.fetchQuotaInfo,
			fetchBillingData: BillingActions.fetchBillingData,
			changeSubscription: BillingActions.changeSubscription
		},
		dispatch
	);
Beispiel #7
0
export const mapDispatchToProps = (dispatch) => bindActionCreators({
	addUser: UserManagementActions.addUser,
	removeUser: UserManagementActions.removeUser,
	updateJob: UserManagementActions.updateJob,
	updatePermissions: UserManagementActions.updatePermissions,
	onUsersSearch: UserManagementActions.getUsersSuggestions,
	clearUsersSuggestions: UserManagementActions.clearUsersSuggestions,
	fetchQuotaInfo: TeamspacesActions.fetchQuotaInfo
}, dispatch);
 dispatch => ({
   nodeBalancerConfigActions: bindActionCreators(
     {
       getAllNodeBalancerConfigs,
       createNodeBalancerConfig,
       updateNodeBalancerConfig,
       deleteNodeBalancerConfig
     },
     dispatch
   )
 })
export const mapDispatchToProps = (dispatch) => bindActionCreators({
	sendGetNotifications: NotificationsActions.sendGetNotifications,
	sendUpdateNotificationRead: NotificationsActions.sendUpdateNotificationRead,
	sendUpdateAllNotificationsRead: NotificationsActions.sendUpdateAllNotificationsRead,
	sendDeleteNotification: NotificationsActions.sendDeleteNotification,
	confirmSendDeleteAllNotifications: NotificationsActions.confirmSendDeleteAllNotifications,
	upsertNotification: NotificationsActions.upsertNotification,
	deleteNotification: NotificationsActions.deleteNotification,
	showUpdatedFailedError: NotificationsActions.showUpdatedFailedError,
	setDrawerPanelState: NotificationsActions.setDrawerPanelState
}, dispatch);
 dispatch => ({
   nodeBalancerActions: bindActionCreators(
     {
       getAllNodeBalancersWithConfigs,
       getAllNodeBalancers,
       createNodeBalancer,
       deleteNodeBalancer,
       updateNodeBalancer,
     },
     dispatch,
   ),
 }),