Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
radubrehar committed Oct 28, 2024
1 parent 18129a4 commit 11d4f25
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/src/pages/tests/table/treegrid/tree-sort.page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as React from 'react';

import {
DataSourceApi,
InfiniteTableColumn,
TreeDataSource,
TreeGrid,
Expand Down Expand Up @@ -56,14 +55,11 @@ const columns: Record<string, InfiniteTableColumn<FileSystemNode>> = {
size: { field: 'size', type: 'number' },
};

export default function DataTestPage() {
const [dataSourceApi, setDataSourceApi] =
React.useState<DataSourceApi<FileSystemNode> | null>(null);
export default function App() {
return (
<React.StrictMode>
<div className="flex flex-col gap-2 bg-black justify-start p-10">
<TreeDataSource<FileSystemNode>
onReady={setDataSourceApi}
data={nodes}
debugMode
primaryKey="id"
Expand Down

0 comments on commit 11d4f25

Please sign in to comment.