Fix naming of SidebarStateContext import

Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
Philipp Hugenroth
2022-01-10 10:32:56 +01:00
parent 2c876194a0
commit 4ae04a2c2f
@@ -31,7 +31,7 @@ import { EntityName } from '@backstage/catalog-model';
import { useApi, configApiRef } from '@backstage/core-plugin-api';
import { scmIntegrationsApiRef } from '@backstage/integration-react';
import { BackstageTheme } from '@backstage/theme';
import { SidebarPinStateContext } from '@backstage/core-components';
import { SidebarStateContext } from '@backstage/core-components';
import { techdocsStorageApiRef } from '../../api';
@@ -146,7 +146,7 @@ export const useTechDocsReaderDom = (entityRef: EntityName): Element | null => {
const [dom, setDom] = useState<HTMLElement | null>(null);
// sidebar pinned status to be used in computing CSS style injections
const { isPinned } = useContext(SidebarPinStateContext);
const { isPinned } = useContext(SidebarStateContext);
const updateSidebarPosition = useCallback(() => {
if (!dom || !sidebars) return;