Pixel/links development. New validations folder. More refactoring.
This commit is contained in:
14
src/app/(main)/pixels/PixelsDataTable.tsx
Normal file
14
src/app/(main)/pixels/PixelsDataTable.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { usePixelsQuery, useNavigation } from '@/components/hooks';
|
||||
import { PixelsTable } from './PixelsTable';
|
||||
import { DataGrid } from '@/components/common/DataGrid';
|
||||
|
||||
export function PixelsDataTable() {
|
||||
const { teamId } = useNavigation();
|
||||
const query = usePixelsQuery({ teamId });
|
||||
|
||||
return (
|
||||
<DataGrid query={query} allowSearch={true} autoFocus={false} allowPaging={true}>
|
||||
{({ data }) => <PixelsTable data={data} />}
|
||||
</DataGrid>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user