From 1cf9caecd69e3a2b5ecebb54cb040841384affe3 Mon Sep 17 00:00:00 2001 From: Juan Pablo Garcia Ripa Date: Thu, 2 Jun 2022 17:38:58 +0200 Subject: [PATCH] fix deprecate message Signed-off-by: Juan Pablo Garcia Ripa --- .changeset/tidy-pens-work.md | 5 +++++ .../src/layout/Sidebar/SidebarOpenStateContext.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/tidy-pens-work.md 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,