Skip to content

Commit

Permalink
fix(@clayui/core): don't export TreeView as UNSAFE_TreeView
Browse files Browse the repository at this point in the history
In [3939f07](3939f07), we decided
to export the TreeView component as UNSAFE_TreeView. This doesn't have
any benefit since the component is still exported (and thus can be
imported), it just makes it look a bit "strange" when importing the
component, and there's nothing "unsafe" about this component.

Fixes #4528
Depends on #4531 #4532
  • Loading branch information
Julien Castelain committed Jan 4, 2022
1 parent 78f8585 commit fc54a6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/clay-core/docs/treeview.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import Editor from '$clayui.com/src/components/Editor';
import {Provider, UNSAFE_TreeView as TreeView} from '@clayui/core';
import {Provider, TreeView} from '@clayui/core';
import {ClayCheckbox as Checkbox} from '@clayui/form';
import Icon from '@clayui/icon';
import React from 'react';
Expand Down
2 changes: 1 addition & 1 deletion packages/clay-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ export {
} from '@clayui/modal';
export {Provider, useProvider} from '@clayui/provider';

export {TreeView as UNSAFE_TreeView} from './tree-view';
export {TreeView} from './tree-view';

0 comments on commit fc54a6e

Please sign in to comment.