Add first, empty item
[MAILPOET-2849]
This commit is contained in:
@ -83,11 +83,17 @@ const FontSelect = ({
|
|||||||
}: Props) => {
|
}: Props) => {
|
||||||
const fonts = [
|
const fonts = [
|
||||||
{
|
{
|
||||||
label: 'standard',
|
label: 'Theme’s default fonts',
|
||||||
|
value: undefined,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'Standard fonts',
|
||||||
|
value: '',
|
||||||
options: [],
|
options: [],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'custom',
|
label: 'Custom fonts',
|
||||||
|
value: '',
|
||||||
options: [],
|
options: [],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
@ -100,8 +106,8 @@ const FontSelect = ({
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
standardFonts.forEach((fontName) => fonts[0].options.push(buildOption(fontName)));
|
standardFonts.forEach((fontName) => fonts[1].options.push(buildOption(fontName)));
|
||||||
customFonts.forEach((fontName) => fonts[1].options.push(buildOption(fontName)));
|
customFonts.forEach((fontName) => fonts[2].options.push(buildOption(fontName)));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Select
|
<Select
|
||||||
|
Reference in New Issue
Block a user