diff --git a/services/web/frontend/js/features/symbol-palette/components/symbol-palette-close-button.js b/services/web/frontend/js/features/symbol-palette/components/symbol-palette-close-button.js index 0a2d3c02fc..98b4a447fb 100644 --- a/services/web/frontend/js/features/symbol-palette/components/symbol-palette-close-button.js +++ b/services/web/frontend/js/features/symbol-palette/components/symbol-palette-close-button.js @@ -1,9 +1,9 @@ -import { useEditorContext } from '../../../shared/context/editor-context' +import { useEditorPropertiesContext } from '@/features/ide-react/context/editor-properties-context' import { useTranslation } from 'react-i18next' import PropTypes from 'prop-types' export default function SymbolPaletteCloseButton() { - const { toggleSymbolPalette } = useEditorContext() + const { toggleSymbolPalette } = useEditorPropertiesContext() const { t } = useTranslation() const handleClick = () => { diff --git a/services/web/frontend/js/features/symbol-palette/components/symbol-palette-items.js b/services/web/frontend/js/features/symbol-palette/components/symbol-palette-items.js index 8d95439f5a..ad8d004a09 100644 --- a/services/web/frontend/js/features/symbol-palette/components/symbol-palette-items.js +++ b/services/web/frontend/js/features/symbol-palette/components/symbol-palette-items.js @@ -1,6 +1,6 @@ import { useCallback, useEffect, useRef, useState } from 'react' import PropTypes from 'prop-types' -import { useEditorContext } from '../../../shared/context/editor-context' +import { useEditorPropertiesContext } from '@/features/ide-react/context/editor-properties-context' import SymbolPaletteItem from './symbol-palette-item' export default function SymbolPaletteItems({ @@ -19,7 +19,7 @@ export default function SymbolPaletteItems({ const getItemRects = () => { return itemRefs.current.map(ref => ref?.getBoundingClientRect?.() ?? null) } - const { toggleSymbolPalette } = useEditorContext() + const { toggleSymbolPalette } = useEditorPropertiesContext() const handleKeyDown = useCallback( event => {