From 482e72280b5d85a9591a4bd075abcaf412a3060b Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Sun, 15 Sep 2024 13:05:30 -0500 Subject: [PATCH] Cleanup --- src/alf/fonts.ts | 3 +-- src/alf/util/fontScaling.ts | 10 ---------- src/storage/schema.ts | 2 +- 3 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 src/alf/util/fontScaling.ts 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 }