mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 17:15:37 +01:00
Boards components.
Some checks failed
Node.js CI / build (postgresql, 18.18, 10) (push) Has been cancelled
Some checks failed
Node.js CI / build (postgresql, 18.18, 10) (push) Has been cancelled
This commit is contained in:
parent
7edddf15a7
commit
a39ebffd8b
20 changed files with 450 additions and 33 deletions
14
src/app/(main)/boards/BoardsDataTable.tsx
Normal file
14
src/app/(main)/boards/BoardsDataTable.tsx
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { DataGrid } from '@/components/common/DataGrid';
|
||||
import { useBoardsQuery, useNavigation } from '@/components/hooks';
|
||||
import { BoardsTable } from './BoardsTable';
|
||||
|
||||
export function BoardsDataTable() {
|
||||
const { teamId } = useNavigation();
|
||||
const query = useBoardsQuery({ teamId });
|
||||
|
||||
return (
|
||||
<DataGrid query={query} allowSearch={true} autoFocus={false} allowPaging={true}>
|
||||
{({ data }) => <BoardsTable data={data} />}
|
||||
</DataGrid>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue