diff --git a/src/screens/Tabs/Me/SettingsFontsize.tsx b/src/screens/Tabs/Me/SettingsFontsize.tsx index 60c2d167..87e733f8 100644 --- a/src/screens/Tabs/Me/SettingsFontsize.tsx +++ b/src/screens/Tabs/Me/SettingsFontsize.tsx @@ -11,7 +11,7 @@ import { adaptiveScale } from '@utils/styles/scaling' import { useTheme } from '@utils/styles/ThemeManager' import React from 'react' import { useTranslation } from 'react-i18next' -import { StyleSheet, View } from 'react-native' +import { View } from 'react-native' import { ScrollView } from 'react-native-gesture-handler' export const mapFontsizeToName = (size: StorageGlobal['app.font_size']) => { diff --git a/src/utils/storage/actions.ts b/src/utils/storage/actions.ts index 1c367b3e..919f0854 100644 --- a/src/utils/storage/actions.ts +++ b/src/utils/storage/actions.ts @@ -43,7 +43,7 @@ export const useGlobalStorage = { : never, number: (key: T) => { if (Platform.OS === 'ios') { - return useMMKVString(key, storage.global) as NonNullable extends number + return useMMKVNumber(key, storage.global) as NonNullable extends number ? [StorageGlobal[T], (valud: StorageGlobal[T]) => void] : never } else {