We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 696a695 commit 2169b42Copy full SHA for 2169b42
apps/web/app/(org)/dashboard/caps/components/CapCard/CapCard.tsx
@@ -349,15 +349,17 @@ export const CapCard = ({
349
"top-2 right-2 flex-col gap-2 z-[51]",
350
)}
351
>
352
- <CapCardButton
353
- tooltipContent="Share"
354
- onClick={(e) => {
355
- e.stopPropagation();
356
- setIsSharingDialogOpen(true);
357
- }}
358
- className="delay-0"
359
- icon={<FontAwesomeIcon icon={faShare} />}
360
- />
+ {isOwner && (
+ <CapCardButton
+ tooltipContent="Share"
+ onClick={(e) => {
+ e.stopPropagation();
+ setIsSharingDialogOpen(true);
+ }}
+ className="delay-0"
+ icon={<FontAwesomeIcon icon={faShare} />}
361
+ />
362
+ )}
363
364
<CapCardButton
365
tooltipContent="Download Cap"
0 commit comments