diff --git a/src/App/components/Hints/Hints.jsx b/src/App/components/Hints/Hints.jsx index ffe414f3..dda4c6f8 100644 --- a/src/App/components/Hints/Hints.jsx +++ b/src/App/components/Hints/Hints.jsx @@ -3,6 +3,7 @@ import { createPortal } from 'react-dom' import { useConfig } from '../../store/configContext.js' import { useService } from '../../store/serviceContext.js' import { useApp } from '../../store/appContext.js' +import { htmlToPlainText } from '../../../utils/htmlToPlainText.js' /** * Renders the active keyboard hint as a toast portaled into im-o-app__main. @@ -44,7 +45,7 @@ export const Hints = () => {
, layoutRefs.mainRef.current diff --git a/src/App/components/Hints/Hints.test.jsx b/src/App/components/Hints/Hints.test.jsx index a0cb0f55..b3ee2bcf 100644 --- a/src/App/components/Hints/Hints.test.jsx +++ b/src/App/components/Hints/Hints.test.jsx @@ -49,7 +49,7 @@ describe('Hints — rendering', () => { render() const desc = mainEl.querySelector('#test-map-keyboard-desc') expect(desc).toBeTruthy() - expect(desc.innerHTML).toBe('Shift + ?') + expect(desc.innerHTML).toBe('Shift + ?') }) it('renders no hint content when there is no active hint', () => {