diff --git a/.changeset/tidy-pens-work.md b/.changeset/tidy-pens-work.md new file mode 100644 index 0000000000..d2199b86aa --- /dev/null +++ b/.changeset/tidy-pens-work.md @@ -0,0 +1,5 @@ +--- +'@backstage/core-components': patch +--- + +fix Sidebar Contexts deprecation message diff --git a/packages/core-components/src/layout/Sidebar/SidebarOpenStateContext.tsx b/packages/core-components/src/layout/Sidebar/SidebarOpenStateContext.tsx index 635306959a..7cb0e5b2c3 100644 --- a/packages/core-components/src/layout/Sidebar/SidebarOpenStateContext.tsx +++ b/packages/core-components/src/layout/Sidebar/SidebarOpenStateContext.tsx @@ -59,7 +59,7 @@ const defaultSidebarOpenStateContext = { * Context whether the `Sidebar` is open * * @public @deprecated - * Use `` + `useSidebar()` instead. + * Use `` + `useSidebarOpenState()` instead. */ export const LegacySidebarContext = createContext( defaultSidebarOpenStateContext,