Use AnyProfileVIew
This commit is contained in:
@@ -2,7 +2,7 @@ import React, {memo, useMemo} from 'react'
|
||||
import {Image, Pressable, StyleSheet, View} from 'react-native'
|
||||
import {Image as RNImage} from 'react-native-image-crop-picker'
|
||||
import Svg, {Circle, Path, Rect} from 'react-native-svg'
|
||||
import {AppBskyActorDefs, ModerationUI} from '@atproto/api'
|
||||
import {ModerationUI} from '@atproto/api'
|
||||
import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome'
|
||||
import {msg, Trans} from '@lingui/macro'
|
||||
import {useLingui} from '@lingui/react'
|
||||
@@ -31,6 +31,7 @@ import {Link} from '#/components/Link'
|
||||
import {MediaInsetBorder} from '#/components/MediaInsetBorder'
|
||||
import * as Menu from '#/components/Menu'
|
||||
import {ProfileHoverCard} from '#/components/ProfileHoverCard'
|
||||
import * as atp from '#/types/atproto'
|
||||
import {openCamera, openCropper, openPicker} from '../../../lib/media/picker'
|
||||
|
||||
export type UserAvatarType = 'user' | 'algo' | 'list' | 'labeler'
|
||||
@@ -54,7 +55,7 @@ interface EditableUserAvatarProps extends BaseUserAvatarProps {
|
||||
|
||||
interface PreviewableUserAvatarProps extends BaseUserAvatarProps {
|
||||
moderation?: ModerationUI
|
||||
profile: Omit<AppBskyActorDefs.ProfileViewBasic, '$type'>
|
||||
profile: atp.profile.AnyProfileView
|
||||
disableHoverCard?: boolean
|
||||
onBeforePress?: () => void
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user