feat: reactive font size for ace editor + i18n support for font size settings strings

This commit is contained in:
liyasthomas
2021-08-14 21:40:56 +05:30
parent 691629890f
commit 9f639378ec
22 changed files with 60 additions and 43 deletions

View File

@@ -24,20 +24,7 @@ export const HoppAccentColors = [
export type HoppAccentColor = typeof HoppAccentColors[number]
export const HoppFontSizes = [
{
name: "Small",
code: "xs",
},
{
name: "Medium",
code: "sm",
},
{
name: "Large",
code: "base",
},
] as const
export const HoppFontSizes = ["small", "medium", "large"] as const
export type HoppFontSize = typeof HoppFontSizes[number]
@@ -90,7 +77,7 @@ export const defaultSettings: SettingsType = {
LEFT_SIDEBAR: true,
RIGHT_SIDEBAR: true,
ZEN_MODE: false,
FONT_SIZE: { name: "Small", code: "xs" },
FONT_SIZE: "small",
}
const validKeys = Object.keys(defaultSettings)