diff --git a/src/alf/fonts.ts b/src/alf/fonts.ts index cae6068c7c..05da233c7a 100644 --- a/src/alf/fonts.ts +++ b/src/alf/fonts.ts @@ -3,8 +3,7 @@ import {useFonts as defaultUseFonts} from 'expo-font' import {Device, device} from '#/storage' export function getFontScale() { - const fontScale = device.get(['fontScale']) || 1 - return fontScale + return device.get(['fontScale']) || 1 } export function setFontScale(fontScale: Device['fontScale']) { diff --git a/src/alf/util/fontScaling.ts b/src/alf/util/fontScaling.ts deleted file mode 100644 index 000d1b1689..0000000000 --- a/src/alf/util/fontScaling.ts +++ /dev/null @@ -1,10 +0,0 @@ -import {device} from '#/storage' - -export function set(fontScale: number) { - device.set(['fontScale'], fontScale) -} - -export function get() { - const fontScale = device.get(['fontScale']) || 1 - return fontScale -} diff --git a/src/storage/schema.ts b/src/storage/schema.ts index 11f840c445..1bffe646bb 100644 --- a/src/storage/schema.ts +++ b/src/storage/schema.ts @@ -2,7 +2,7 @@ * Device data that's specific to the device and does not vary based account */ export type Device = { - fontScale: number | undefined + fontScale: number fontFamily: 'system' | 'theme' lastNuxDialog: string | undefined }