fix: framer-motion warning for missing key prop

This commit is contained in:
Tom Moor
2024-01-30 22:29:45 -05:00
parent 1490c3a14b
commit a960d8cee5

View File

@@ -213,12 +213,17 @@ function SharePopover({
const doneButton = picker ? ( const doneButton = picker ? (
invitedInSession.length ? ( invitedInSession.length ? (
<ButtonSmall onClick={hidePicker} neutral> <ButtonSmall onClick={hidePicker} key="done" neutral>
{t("Done")} {t("Done")}
</ButtonSmall> </ButtonSmall>
) : null ) : null
) : ( ) : (
<Tooltip tooltip={t("Copy link")} delay={500} placement="top"> <Tooltip
tooltip={t("Copy link")}
delay={500}
placement="top"
key="copy-link"
>
<CopyToClipboard <CopyToClipboard
text={urlify(documentPath(document))} text={urlify(documentPath(document))}
onCopy={handleCopied} onCopy={handleCopied}