Merge pull request #11817 from Sarabadu/deprecate-warning-fix

fix deprecate message
This commit is contained in:
Johan Haals
2022-06-03 09:06:41 +02:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-components': patch
---
fix Sidebar Contexts deprecation message
@@ -59,7 +59,7 @@ const defaultSidebarOpenStateContext = {
* Context whether the `Sidebar` is open
*
* @public @deprecated
* Use `<SidebarContextProvider>` + `useSidebar()` instead.
* Use `<SidebarOpenStateProvider>` + `useSidebarOpenState()` instead.
*/
export const LegacySidebarContext = createContext<SidebarContextType>(
defaultSidebarOpenStateContext,