Skip to content

Commit

Permalink
Update .changeset/honest-moles-divide.md
Browse files Browse the repository at this point in the history
Co-authored-by: Cole Bemis <colebemis@github.com>
  • Loading branch information
radglob and colebemis authored Nov 21, 2022
1 parent 1a440fb commit 12beef7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .changeset/honest-moles-divide.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@
"@primer/react": patch
---

Delete TreeView.LinkItem.
Delete `TreeView.LinkItem`. Use `TreeView.Item` and call a navigation function inside the `onSelect` callback instead:

```diff
- <TreeView.LinkItem href="#">...
+ <TreeView.Item onSelect={() => navigate('#')}>...
```

0 comments on commit 12beef7

Please sign in to comment.