[🐴] 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>
This commit is contained in:
parent
115041f4bf
commit
dd0f57e3e3
5 changed files with 210 additions and 4 deletions
|
@ -17,6 +17,7 @@ import {CenteredView} from '#/view/com/util/Views'
|
|||
import {atoms as a, useBreakpoints, useTheme} from '#/alf'
|
||||
import {Button, ButtonIcon, ButtonText} from '#/components/Button'
|
||||
import {DialogControlProps, useDialogControl} from '#/components/Dialog'
|
||||
import {MessagesNUX} from '#/components/dms/MessagesNUX'
|
||||
import {NewChat} from '#/components/dms/NewChat'
|
||||
import {useRefreshOnFocus} from '#/components/hooks/useRefreshOnFocus'
|
||||
import {PlusLarge_Stroke2_Corner0_Rounded as Plus} from '#/components/icons/Plus'
|
||||
|
@ -131,6 +132,7 @@ export function MessagesScreen({navigation, route}: Props) {
|
|||
if (conversations.length < 1) {
|
||||
return (
|
||||
<View style={a.flex_1}>
|
||||
<MessagesNUX />
|
||||
{gtMobile ? (
|
||||
<CenteredView sideBorders>
|
||||
<DesktopHeader
|
||||
|
@ -165,6 +167,7 @@ export function MessagesScreen({navigation, route}: Props) {
|
|||
|
||||
return (
|
||||
<View style={a.flex_1}>
|
||||
<MessagesNUX />
|
||||
{!gtMobile && (
|
||||
<ViewHeader
|
||||
title={_(msg`Messages`)}
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue