Skip to content

Commit

Permalink
refactor: Remove unused useTree hook from FileTree component
Browse files Browse the repository at this point in the history
  • Loading branch information
PolGubau committed Sep 21, 2024
1 parent d0ac089 commit 1a35734
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/ui/src/components/FileTree/FileTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,6 @@ type TreeContextProps = {

const TreeContext = createContext<TreeContextProps | null>(null)

const useTree = () => {
const context = useContext(TreeContext)
if (!context) {
throw new Error("useTree must be used within a TreeProvider")
}
return context
}

interface TreeViewComponentProps extends React.HTMLAttributes<HTMLDivElement> {}

type Direction = "rtl" | "ltr" | undefined
Expand Down

0 comments on commit 1a35734

Please sign in to comment.