Files
bigcapital/packages/webapp/src/store/accounts/accounts.actions.tsx
2025-11-03 21:40:24 +02:00

28 lines
532 B
TypeScript

// @ts-nocheck
import t from '@/store/types';
export const setAccountsTableState = (queries) => {
return {
type: t.ACCOUNTS_TABLE_STATE_SET,
payload: { queries },
};
};
/**
* Resets the accounts table state.
*/
export const resetAccountsTableState = () => {
return {
type: t.ACCOUNTS_TABLE_STATE_RESET,
};
};
/**
* Sets the selected rows for accounts table.
*/
export const setAccountsSelectedRows = (selectedRows) => {
return {
type: 'ACCOUNTS/SET_SELECTED_ROWS',
payload: selectedRows,
};
};