mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-19 20:29:17 +00:00
feat: add queue filter to tickets list
This commit is contained in:
@@ -9,6 +9,7 @@ const useTickets = ({
|
||||
status,
|
||||
date,
|
||||
showAll,
|
||||
queueIds,
|
||||
withUnreadMessages,
|
||||
}) => {
|
||||
const [loading, setLoading] = useState(true);
|
||||
@@ -27,6 +28,7 @@ const useTickets = ({
|
||||
status,
|
||||
date,
|
||||
showAll,
|
||||
queueIds,
|
||||
withUnreadMessages,
|
||||
},
|
||||
});
|
||||
@@ -41,7 +43,15 @@ const useTickets = ({
|
||||
fetchTickets();
|
||||
}, 500);
|
||||
return () => clearTimeout(delayDebounceFn);
|
||||
}, [searchParam, pageNumber, status, date, showAll, withUnreadMessages]);
|
||||
}, [
|
||||
searchParam,
|
||||
pageNumber,
|
||||
status,
|
||||
date,
|
||||
showAll,
|
||||
queueIds,
|
||||
withUnreadMessages,
|
||||
]);
|
||||
|
||||
return { tickets, loading, hasMore };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user