({treeProps = {}, rowProps = {}})
| 299 | }; |
| 300 | |
| 301 | let DynamicTree = ({treeProps = {}, rowProps = {}}) => ( |
| 302 | <Tree |
| 303 | defaultExpandedKeys={ |
| 304 | new Set([ |
| 305 | 'projects', |
| 306 | 'project-2', |
| 307 | 'project-5', |
| 308 | 'reports', |
| 309 | 'reports-1', |
| 310 | 'reports-1A', |
| 311 | 'reports-1AB' |
| 312 | ]) |
| 313 | } |
| 314 | aria-label="test dynamic tree" |
| 315 | items={rows} |
| 316 | onExpandedChange={onExpandedChange} |
| 317 | onSelectionChange={onSelectionChange} |
| 318 | {...treeProps}> |
| 319 | {(item: any) => ( |
| 320 | <DynamicTreeItem childItems={item.childItems} textValue={item.name} {...rowProps}> |
| 321 | {item.name} |
| 322 | </DynamicTreeItem> |
| 323 | )} |
| 324 | </Tree> |
| 325 | ); |
| 326 | |
| 327 | let DynamicSectionTree = ({treeProps = {}, rowProps = {}}) => ( |
| 328 | <Tree |
nothing calls this directly
no outgoing calls
no test coverage detected