Skip to content

Commit

Permalink
[docs] Fix playground
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Feb 5, 2024
1 parent e83bda9 commit 75a13eb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src-docs/src/views/tree_view/playground.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import { EuiTreeView, EuiIcon } from '../../../../src/components';
import { EuiTreeViewClass } from '../../../../src/components/tree_view/tree_view';
import {
propUtilityForPlayground,
generateCustomProps,
} from '../../services/playground';

export const TreeViewConfig = () => {
const docgenInfo = Array.isArray(EuiTreeView.__docgenInfo)
? EuiTreeView.__docgenInfo[0]
: EuiTreeView.__docgenInfo;
const docgenInfo = Array.isArray(EuiTreeViewClass.__docgenInfo)
? EuiTreeViewClass.__docgenInfo[0]
: EuiTreeViewClass.__docgenInfo;
const propsToUse = propUtilityForPlayground(docgenInfo.props);

delete propsToUse.theme;

propsToUse.display = {
...propsToUse.display,
defaultValue: 'default',
Expand Down

0 comments on commit 75a13eb

Please sign in to comment.