Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey committed Sep 15, 2024
1 parent 19685b1 commit 482e722
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
3 changes: 1 addition & 2 deletions src/alf/fonts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']) {
Expand Down
10 changes: 0 additions & 10 deletions src/alf/util/fontScaling.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/storage/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 482e722

Please sign in to comment.