mirror of
https://github.com/umami-software/umami.git
synced 2026-02-05 21:27:20 +01:00
DataTable refactor.
This commit is contained in:
parent
92ccc64e47
commit
6846355c63
17 changed files with 94 additions and 114 deletions
|
|
@ -25,13 +25,13 @@ export function DataTable({
|
|||
const { page, pageSize, count } = pageInfo || {};
|
||||
const noResults = Boolean(query && data?.length === 0);
|
||||
|
||||
const handleChange = () => {
|
||||
onChange?.({ query, page });
|
||||
const handleChange = value => {
|
||||
onChange?.({ query: value, page });
|
||||
};
|
||||
|
||||
const handleSearch = value => {
|
||||
setQuery(value);
|
||||
handleChange();
|
||||
handleChange(value);
|
||||
};
|
||||
|
||||
const handlePageChange = page => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue