Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
desertaxle committed Nov 6, 2024
1 parent 1b557e9 commit 61e5a81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui-v2/src/components/ui/sidebar/hooks.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";

type SidebarContext = {
export type SidebarContext = {
state: "expanded" | "collapsed";
open: boolean;
setOpen: (open: boolean) => void;
Expand Down
2 changes: 1 addition & 1 deletion ui-v2/src/components/ui/sidebar/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const SidebarProvider = React.forwardRef<
// This makes it easier to style the sidebar with Tailwind classes.
const state = open ? "expanded" : "collapsed";

const contextValue = React.useMemo<typeof SidebarContext>(
const contextValue = React.useMemo<SidebarContext>(
() => ({
state,
open,
Expand Down

0 comments on commit 61e5a81

Please sign in to comment.