about summary refs log tree commit diff
path: root/src/components/verification
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2025-04-21 12:08:05 -0500
committerGitHub <noreply@github.com>2025-04-21 12:08:05 -0500
commitd5dc065a839f1498c6096e6e1ac6badb4059e775 (patch)
tree0829955bdc89859d5fe5743de96b7ffcd9c0d304 /src/components/verification
parent0278c7a0b4827dc6f49a622233737b61c28bb27f (diff)
downloadvoidsky-d5dc065a839f1498c6096e6e1ac6badb4059e775.tar.zst
Make whole verifier clickable, no nested interactives (#8249)
Diffstat (limited to 'src/components/verification')
-rw-r--r--src/components/verification/VerificationsDialog.tsx22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/components/verification/VerificationsDialog.tsx b/src/components/verification/VerificationsDialog.tsx
index 42e7369ee..554149d9e 100644
--- a/src/components/verification/VerificationsDialog.tsx
+++ b/src/components/verification/VerificationsDialog.tsx
@@ -211,14 +211,22 @@ function VerifierCard({
             </>
           ) : profile && moderationOpts ? (
             <>
-              <ProfileCard.Avatar
+              <ProfileCard.Link
                 profile={profile}
-                moderationOpts={moderationOpts}
-              />
-              <ProfileCard.NameAndHandle
-                profile={profile}
-                moderationOpts={moderationOpts}
-              />
+                style={[a.flex_row, a.align_center, a.gap_sm, a.flex_1]}
+                onPress={() => {
+                  outerDialogControl.close()
+                }}>
+                <ProfileCard.Avatar
+                  profile={profile}
+                  moderationOpts={moderationOpts}
+                  disabledPreview
+                />
+                <ProfileCard.NameAndHandle
+                  profile={profile}
+                  moderationOpts={moderationOpts}
+                />
+              </ProfileCard.Link>
               {canAdminister && (
                 <View>
                   <Button