Skip to content

Commit

Permalink
chore: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Oct 12, 2023
1 parent e5cb2ac commit 2142bb3
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions components/tree/demo/virtual-scroll.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Tree, Tooltip } from 'antd';
import { Tree } from 'antd';
import type { DataNode } from 'antd/es/tree';

const dig = (path = '0', level = 3) => {
Expand All @@ -22,13 +22,6 @@ const dig = (path = '0', level = 3) => {

const treeData = dig();

const App: React.FC = () => (
<Tree
treeData={treeData}
height={233}
defaultExpandAll
titleRender={(item) => <Tooltip title={item.title as any}>{item.title as any}</Tooltip>}
/>
);
const App: React.FC = () => <Tree treeData={treeData} height={233} defaultExpandAll />;

export default App;

0 comments on commit 2142bb3

Please sign in to comment.