Skip to content

Commit ad79b3f

Browse files
committed
remove suffix
1 parent f8faeee commit ad79b3f

File tree

2 files changed

+1
-7
lines changed
  • packages/app/src/app/pages/Sandbox/Editor/Workspace/Dependencies/AddFont/FontPicker

2 files changed

+1
-7
lines changed

packages/app/src/app/pages/Sandbox/Editor/Workspace/Dependencies/AddFont/FontPicker/List.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@ type Props = {
77
onSelection: (e: any) => void;
88
activeFontFamily: string;
99
expanded: boolean;
10-
suffix: string;
1110
};
1211

1312
const 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}

packages/app/src/app/pages/Sandbox/Editor/Workspace/Dependencies/AddFont/FontPicker/index.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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
)}

0 commit comments

Comments
 (0)