From 6a442675d979d35f1f24ce64f785429fdcff0c21 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Mon, 26 Jan 2026 13:28:02 -0600 Subject: [PATCH] Cleanup --- src/storage/archive/schema.ts | 13 ++++++++++--- src/storage/schema.ts | 2 +- src/view/shell/index.web.tsx | 9 --------- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/storage/archive/schema.ts b/src/storage/archive/schema.ts index dcd1e9fe7d..492b25173b 100644 --- a/src/storage/archive/schema.ts +++ b/src/storage/archive/schema.ts @@ -1,3 +1,10 @@ -export type Device = { - test?: boolean -} +/** + * Data that's specific to the device and does not vary based account. + * Values here should be optional (since they may not have been saved + * yet), hence the `Partial`. + * + * See `#/storage/schema.ts` for examples. + */ +export type Device = Partial<{ + test: string +}> diff --git a/src/storage/schema.ts b/src/storage/schema.ts index d2baec1cfc..2dd99ace2d 100644 --- a/src/storage/schema.ts +++ b/src/storage/schema.ts @@ -2,7 +2,7 @@ import {type ID as PolicyUpdate202508} from '#/components/PolicyUpdateOverlay/up import {type Geolocation} from '#/geolocation/types' /** - * Device data that's specific to the device and does not vary based account + * Data that's specific to the device and does not vary based account */ export type Device = { /** diff --git a/src/view/shell/index.web.tsx b/src/view/shell/index.web.tsx index 1b0a13436b..28fed7152d 100644 --- a/src/view/shell/index.web.tsx +++ b/src/view/shell/index.web.tsx @@ -36,7 +36,6 @@ import {NoAccessScreen} from '#/ageAssurance/components/NoAccessScreen' import {RedirectOverlay} from '#/ageAssurance/components/RedirectOverlay' import {PassiveAnalytics} from '#/analytics/PassiveAnalytics' import {FlatNavigator, RoutesContainer} from '#/Navigation' -import {deviceArchive} from '#/storage/archive' import {Composer} from './Composer.web' import {DrawerContent} from './Drawer' @@ -50,14 +49,6 @@ function ShellInner() { useIntentHandler() useEffect(() => { - deviceArchive - .set(['test'], true) - .then(() => { - console.log('stored') - }) - .catch(e => { - console.error(e) - }) const unsubscribe = navigator.addListener('state', () => { closeAllActiveElements() })