0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-15 03:01:37 -05:00

Added DEFAULT_FONT

This commit is contained in:
Peter Zimon 2024-10-08 16:39:59 +01:00 committed by Aileen Booker
parent e09e17f4e6
commit 8b7f40fb70

View file

@ -188,8 +188,8 @@ const BrandSettings: React.FC<{ values: BrandSettingValues, updateSetting: (key:
selectedOption={selectedHeadingFont}
title={'Heading font'}
onSelect={(option) => {
if (option?.value === 'Theme default') {
setHeadingFont('');
if (option?.value === DEFAULT_FONT) {
setHeadingFont(DEFAULT_FONT);
updateSetting('heading_font', '');
} else {
setHeadingFont(option?.value || '');
@ -203,8 +203,8 @@ const BrandSettings: React.FC<{ values: BrandSettingValues, updateSetting: (key:
selectedOption={selectedBodyFont}
title={'Body font'}
onSelect={(option) => {
if (option?.value === 'Theme default') {
setBodyFont('');
if (option?.value === DEFAULT_FONT) {
setBodyFont(DEFAULT_FONT);
updateSetting('body_font', '');
} else {
setBodyFont(option?.value || '');