Cleanup
This commit is contained in:
@@ -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
|
||||
}>
|
||||
|
||||
@@ -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 = {
|
||||
/**
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user