@@ -21,15 +21,14 @@ import { useFormManagerStore } from '../../../store.js';
2121import { PatternEditComponent } from '../../types.js' ;
2222import styles from './richTextPatternEditStyles.module.css' ;
2323
24- import boldSvg from './images/format_bold.svg' ;
25- import italicSvg from './images/format_italic.svg' ;
26- import bulletListSvg from './images/format_list_bulleted.svg' ;
27- import orderedListSvg from './images/format_list_numbered.svg' ;
28- import headingSvg from './images/format_h2.svg' ;
29- import subheadingSvg from './images/format_h3.svg' ;
24+ import boldSvg from './images/format_bold.svg?url ' ;
25+ import italicSvg from './images/format_italic.svg?url ' ;
26+ import bulletListSvg from './images/format_list_bulleted.svg?url ' ;
27+ import orderedListSvg from './images/format_list_numbered.svg?url ' ;
28+ import headingSvg from './images/format_h2.svg?url ' ;
29+ import subheadingSvg from './images/format_h3.svg?url ' ;
3030
31- // eslint-disable-next-line @typescript-eslint/no-explicit-any
32- const icons : Record < string , string | any > = {
31+ const icons : Record < string , string > = {
3332 'format_h2.svg' : headingSvg ,
3433 'format_h3.svg' : subheadingSvg ,
3534 'format_bold.svg' : boldSvg ,
@@ -39,7 +38,7 @@ const icons: Record<string, string | any> = {
3938} ;
4039
4140const getIconPath = ( iconPath : string ) => {
42- return Object . values ( icons [ iconPath ] ) [ 0 ] as string ;
41+ return icons [ iconPath ] ;
4342} ;
4443
4544interface MenuBarProps {
0 commit comments