File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed
packages/app/src/app/pages/Sandbox/Editor/Workspace/Dependencies/AddFont/FontPicker Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,13 @@ type Props = {
77 onSelection : ( e : any ) => void ;
88 activeFontFamily : string ;
99 expanded : boolean ;
10- suffix : string ;
1110} ;
1211
1312const FontList = ( {
1413 fonts,
1514 onSelection,
1615 activeFontFamily,
1716 expanded,
18- suffix,
1917} : Props ) => {
2018 const [ searchTerm , setSearchTerm ] = useState ( '' ) ;
2119
@@ -43,7 +41,7 @@ const FontList = ({
4341 < FontLI key = { font . family } >
4442 < FontFamily
4543 type = "button"
46- id = { `font-button-${ getFontId ( font . family ) } ${ suffix } ` }
44+ id = { `font-button-${ getFontId ( font . family ) } ` }
4745 active = { font . family === activeFontFamily }
4846 onClick = { onSelection }
4947 onKeyPress = { onSelection }
Original file line number Diff line number Diff line change @@ -51,11 +51,8 @@ export const FontPicker = ({
5151 const fonts : Font [ ] =
5252 fontManager && Array . from ( fontManager . getFonts ( ) . values ( ) ) ;
5353
54- console . log ( fontManager . selectorSuffix ) ;
55-
5654 return (
5755 // id={`font-picker${fontManager && fontManager.selectorSuffix}`}
58-
5956 < >
6057 < SelectedFont
6158 type = "button"
@@ -73,7 +70,6 @@ export const FontPicker = ({
7370 onSelection = { onSelection }
7471 activeFontFamily = { activeFontFamily }
7572 expanded = { expanded }
76- suffix = { fontManager . selectorSuffix }
7773 />
7874 </ OutsideClickHandler >
7975 ) }
You can’t perform that action at this time.
0 commit comments