about summary refs log tree commit diff
path: root/src/screens/Messages/Settings.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-05-17 20:24:06 +0100
committerGitHub <noreply@github.com>2024-05-17 14:24:06 -0500
commitdd0f57e3e3188389bc8ef364e81e4a00405a9a26 (patch)
tree0d7c2012685185e5a3e3fe942d45058e67e730dc /src/screens/Messages/Settings.tsx
parent115041f4bfa537579deb4b8aa92ddb200de4d48e (diff)
downloadvoidsky-dd0f57e3e3188389bc8ef364e81e4a00405a9a26.tar.zst
[🐴] NUX (#4062)
* remove type assertion

* DMs NUX

* delete button for testing

* tweak styles and copy

* rm log

* style tweaks

* reduce amount of words

* Fix not showing on first load

* Spacing tweaks

---------

Co-authored-by: Eric Bailey <git@esb.lol>
Diffstat (limited to 'src/screens/Messages/Settings.tsx')
-rw-r--r--src/screens/Messages/Settings.tsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/screens/Messages/Settings.tsx b/src/screens/Messages/Settings.tsx
index a9c35dba7..7dbf027f9 100644
--- a/src/screens/Messages/Settings.tsx
+++ b/src/screens/Messages/Settings.tsx
@@ -1,10 +1,8 @@
 import React, {useCallback} from 'react'
 import {View} from 'react-native'
-import {AppBskyActorDefs} from '@atproto/api'
 import {msg, Trans} from '@lingui/macro'
 import {useLingui} from '@lingui/react'
 import {NativeStackScreenProps} from '@react-navigation/native-stack'
-import {UseQueryResult} from '@tanstack/react-query'
 
 import {CommonNavigatorParams} from '#/lib/routes/types'
 import {useGate} from '#/lib/statsig/statsig'
@@ -30,7 +28,7 @@ export function MessagesSettingsScreen({}: Props) {
   const {currentAccount} = useSession()
   const {data: profile} = useProfileQuery({
     did: currentAccount!.did,
-  }) as UseQueryResult<AppBskyActorDefs.ProfileViewDetailed, Error>
+  })
   const {preferences, setPref} = useBackgroundNotificationPreferences()
 
   const {mutate: updateDeclaration} = useUpdateActorDeclaration({