From f9dac3cba18a36eddf3fbed93d8060c91f3ab40b Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 27 May 2024 13:28:46 -0400 Subject: [PATCH] fix: Missing key prop warning --- app/components/Sharing/Collection/SharePopover.tsx | 3 ++- app/components/Sharing/Document/SharePopover.tsx | 3 ++- app/components/Sharing/components/CopyLinkButton.tsx | 7 +------ 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/app/components/Sharing/Collection/SharePopover.tsx b/app/components/Sharing/Collection/SharePopover.tsx index b53915fbd..3bbbfb3d4 100644 --- a/app/components/Sharing/Collection/SharePopover.tsx +++ b/app/components/Sharing/Collection/SharePopover.tsx @@ -270,15 +270,16 @@ function SharePopover({ collection, visible, onRequestClose }: Props) { const rightButton = picker ? ( pendingIds.length ? ( setPermission(value)} - key="invite" /> ) : null ) : ( diff --git a/app/components/Sharing/Document/SharePopover.tsx b/app/components/Sharing/Document/SharePopover.tsx index f3ae1ad79..0770d8086 100644 --- a/app/components/Sharing/Document/SharePopover.tsx +++ b/app/components/Sharing/Document/SharePopover.tsx @@ -240,15 +240,16 @@ function SharePopover({ const rightButton = picker ? ( pendingIds.length ? ( setPermission(value)} - key="invite" /> ) : null ) : ( diff --git a/app/components/Sharing/components/CopyLinkButton.tsx b/app/components/Sharing/components/CopyLinkButton.tsx index 7d40576b3..38d367f7c 100644 --- a/app/components/Sharing/components/CopyLinkButton.tsx +++ b/app/components/Sharing/components/CopyLinkButton.tsx @@ -31,12 +31,7 @@ export function CopyLinkButton({ }, [onCopy, t]); return ( - +