fix(types): replace ShareData with inline type to fix lint errors

This commit is contained in:
Gigi
2025-10-13 18:26:36 +02:00
parent eeb40306da
commit b7896be507

View File

@@ -260,8 +260,8 @@ const ContentPanel: React.FC<ContentPanelProps> = ({
const handleShareVideoUrl = async () => {
try {
if (selectedUrl && (navigator as unknown as { share?: (d: ShareData) => Promise<void> }).share) {
await (navigator as unknown as { share: (d: ShareData) => Promise<void> }).share({ title: title || 'Video', url: selectedUrl })
if (selectedUrl && (navigator as { share?: (d: { title?: string; url?: string }) => Promise<void> }).share) {
await (navigator as { share: (d: { title?: string; url?: string }) => Promise<void> }).share({ title: title || 'Video', url: selectedUrl })
} else if (selectedUrl) {
await navigator.clipboard.writeText(selectedUrl)
}