Skip to content

Commit

Permalink
v1.0.3 - add react display names to components
Browse files Browse the repository at this point in the history
  • Loading branch information
MrLightful committed Oct 15, 2024
1 parent a6e949d commit 9d96027
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shadncn-tree-view",
"version": "1.0.2",
"version": "1.0.3",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
3 changes: 3 additions & 0 deletions src/tree-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ const TreeView = React.forwardRef<HTMLDivElement, TreeProps>(
)
}
)
TreeView.displayName = 'TreeView'

type TreeItemProps = TreeProps & {
selectedItemId?: string
Expand Down Expand Up @@ -163,6 +164,7 @@ const TreeItem = React.forwardRef<HTMLDivElement, TreeItemProps>(
)
}
)
TreeItem.displayName = 'TreeItem'

const TreeNode = ({
item,
Expand Down Expand Up @@ -273,6 +275,7 @@ const TreeLeaf = React.forwardRef<
)
}
)
TreeLeaf.displayName = 'TreeLeaf'

const AccordionTrigger = React.forwardRef<
React.ElementRef<typeof AccordionPrimitive.Trigger>,
Expand Down

0 comments on commit 9d96027

Please sign in to comment.