mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 21:30:31 +00:00
feat: fix items list datatable.
This commit is contained in:
@@ -1,10 +1,27 @@
|
||||
import { useCallback } from 'react';
|
||||
import { useDispatch } from 'react-redux';
|
||||
import { dashboardPageTitle } from 'store/dashboard/dashboard.actions';
|
||||
|
||||
export const useDashboardPageTitle = () => {
|
||||
export const useDispatchAction = (action) => {
|
||||
const dispatch = useDispatch();
|
||||
|
||||
return (pageTitle) => {
|
||||
dispatch(dashboardPageTitle(pageTitle));
|
||||
}
|
||||
return useCallback(
|
||||
(payload) => {
|
||||
dispatch(action(payload));
|
||||
},
|
||||
[dispatch, action],
|
||||
);
|
||||
};
|
||||
|
||||
export const useDashboardPageTitle = () => {
|
||||
return useDispatchAction(dashboardPageTitle);
|
||||
};
|
||||
|
||||
export const useSetAccountsTableQuery = () => {
|
||||
|
||||
};
|
||||
|
||||
export const useAccountsTableQuery = () => {
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user