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:
parent
e09e17f4e6
commit
8b7f40fb70
1 changed files with 4 additions and 4 deletions
|
@ -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 || '');
|
||||
|
|
Loading…
Add table
Reference in a new issue