about summary refs log tree commit diff
path: root/src/components/moderation/PostAlerts.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-05-31 12:14:11 -0500
committerGitHub <noreply@github.com>2024-05-31 12:14:11 -0500
commit2bb36948198b9a0787544258bde72b4d3c6d78b0 (patch)
tree97fcb2db666eeb2f05e481c4ca47ae4e99cb37d6 /src/components/moderation/PostAlerts.tsx
parentcd3b502b343e5e79d9a6df77d08935829b655f55 (diff)
downloadvoidsky-2bb36948198b9a0787544258bde72b4d3c6d78b0.tar.zst
[🐴] Add labels to chats (#4293)
* Add labels to chat list

* Add to convo header

* Prevent click through on PostAlert buttons

* Fix space

* Fix alignment
Diffstat (limited to 'src/components/moderation/PostAlerts.tsx')
-rw-r--r--src/components/moderation/PostAlerts.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/moderation/PostAlerts.tsx b/src/components/moderation/PostAlerts.tsx
index 5a33bbc80..0b48b51d1 100644
--- a/src/components/moderation/PostAlerts.tsx
+++ b/src/components/moderation/PostAlerts.tsx
@@ -64,7 +64,9 @@ function PostLabel({
     <>
       <Button
         label={desc.name}
-        onPress={() => {
+        onPress={e => {
+          e.preventDefault()
+          e.stopPropagation()
           control.open()
         }}>
         {({hovered, pressed}) => (