Cleanup
This commit is contained in:
+1
-2
@@ -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']) {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user