From c36b5a05e7037e91102ee06e012bfa57749cf587 Mon Sep 17 00:00:00 2001 From: ameer2468 <33054370+ameer2468@users.noreply.github.com> Date: Wed, 8 Oct 2025 12:29:40 +0300 Subject: [PATCH] only render share button for owners --- .../caps/components/CapCard/CapCard.tsx | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/apps/web/app/(org)/dashboard/caps/components/CapCard/CapCard.tsx b/apps/web/app/(org)/dashboard/caps/components/CapCard/CapCard.tsx index a907272801..c5ac6d40f7 100644 --- a/apps/web/app/(org)/dashboard/caps/components/CapCard/CapCard.tsx +++ b/apps/web/app/(org)/dashboard/caps/components/CapCard/CapCard.tsx @@ -349,15 +349,17 @@ export const CapCard = ({ "top-2 right-2 flex-col gap-2 z-[51]", )} > - { - e.stopPropagation(); - setIsSharingDialogOpen(true); - }} - className="delay-0" - icon={} - /> + {isOwner && ( + { + e.stopPropagation(); + setIsSharingDialogOpen(true); + }} + className="delay-0" + icon={} + /> + )}