Cleanup
This commit is contained in:
+1
-2
@@ -3,8 +3,7 @@ import {useFonts as defaultUseFonts} from 'expo-font'
|
|||||||
import {Device, device} from '#/storage'
|
import {Device, device} from '#/storage'
|
||||||
|
|
||||||
export function getFontScale() {
|
export function getFontScale() {
|
||||||
const fontScale = device.get(['fontScale']) || 1
|
return device.get(['fontScale']) || 1
|
||||||
return fontScale
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function setFontScale(fontScale: Device['fontScale']) {
|
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
|
* Device data that's specific to the device and does not vary based account
|
||||||
*/
|
*/
|
||||||
export type Device = {
|
export type Device = {
|
||||||
fontScale: number | undefined
|
fontScale: number
|
||||||
fontFamily: 'system' | 'theme'
|
fontFamily: 'system' | 'theme'
|
||||||
lastNuxDialog: string | undefined
|
lastNuxDialog: string | undefined
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user