implement datatable sorting on non-analytics tables. (website/board/link/pixel/team/admin)
This commit is contained in:
1 parent
b5c4dbfa56
commit
5ccfb6d0a5
39 files changed
+322
-100
No files matched your search
@@ -3,7 +3,7 @@ import { useNavigation } from './useNavigation';
|
||||
|
||||
export function usePageParameters() {
|
||||
const {
|
||||
query: { page, pageSize, search },
|
||||
query: { page, pageSize, search, orderBy, sortDescending },
|
||||
} = useNavigation();
|
||||
|
||||
return useMemo(() => {
|
||||
@@ -11,6 +11,8 @@ export function usePageParameters() {
|
||||
page,
|
||||
pageSize,
|
||||
search,
|
||||
orderBy,
|
||||
sortDescending,
|
||||
};
|
||||
}, [page, pageSize, search]);
|
||||
}, [orderBy, page, pageSize, search, sortDescending]);
|
||||
}
|
||||
Reference in new issue
Block a user