diff --git a/src/share/ShareModal.tsx b/src/share/ShareModal.tsx index a3ccf8dd..2d85f714 100644 --- a/src/share/ShareModal.tsx +++ b/src/share/ShareModal.tsx @@ -52,12 +52,14 @@ export default function ShareModal({ }, [setShouldRespondToKeyboardCommands]); const renderButton = ( + key: string, icon: ReactNode, action: () => void, embedded?: boolean, tooltip?: string, ) => {renderButton( + 'copy', , () => { navigator.clipboard.writeText(pathShare); @@ -141,6 +144,7 @@ export default function ShareModal({ {SOCIAL_NETWORKS.map(key => key === 'qrcode' ? ( renderButton( + 'qrcode', showQR ? : , () => setShowQR(q => !q), false, @@ -161,6 +165,7 @@ export default function ShareModal({ )} {typeof navigator !== 'undefined' && navigator.share && renderButton( + 'share', , () => navigator.share({ title: navigatorTitle,