From 744ccfbfb7a8688dffaa7541f00656f34d12fb0c Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Mon, 21 Apr 2025 11:25:34 -0500 Subject: [PATCH] Make whole verifier clickable, no nested interactives --- src/components/ProfileCard.tsx | 16 ++++++++++++-- .../verification/VerificationsDialog.tsx | 22 +++++++++++++------ 2 files changed, 29 insertions(+), 9 deletions(-) diff --git a/src/components/ProfileCard.tsx b/src/components/ProfileCard.tsx index c97911a3f5..aa5830eb9b 100644 --- a/src/components/ProfileCard.tsx +++ b/src/components/ProfileCard.tsx @@ -16,7 +16,7 @@ import {useProfileShadow} from '#/state/cache/profile-shadow' import {useProfileFollowMutationQueue} from '#/state/queries/profile' import {useSession} from '#/state/session' import * as Toast from '#/view/com/util/Toast' -import {PreviewableUserAvatar} from '#/view/com/util/UserAvatar' +import {PreviewableUserAvatar, UserAvatar} from '#/view/com/util/UserAvatar' import {atoms as a, useTheme} from '#/alf' import { Button, @@ -130,17 +130,29 @@ export function Link({ export function Avatar({ profile, moderationOpts, + onPress, + disabledPreview, }: { profile: bsky.profile.AnyProfileView moderationOpts: ModerationOpts + onPress?: () => void + disabledPreview?: boolean }) { const moderation = moderateProfile(profile, moderationOpts) - return ( + return disabledPreview ? ( + + ) : ( ) } diff --git a/src/components/verification/VerificationsDialog.tsx b/src/components/verification/VerificationsDialog.tsx index d61823968d..edf28596e3 100644 --- a/src/components/verification/VerificationsDialog.tsx +++ b/src/components/verification/VerificationsDialog.tsx @@ -213,14 +213,22 @@ function VerifierCard({ ) : profile && moderationOpts ? ( <> - - + style={[a.flex_row, a.align_center, a.gap_sm, a.flex_1]} + onPress={() => { + outerDialogControl.close() + }}> + + + {canAdminister && (