From f9c8d330ff713ddcd28b7ffe9dd84588ff2275d1 Mon Sep 17 00:00:00 2001 From: Emil Gulamov <125820963+mearashadowfax@users.noreply.github.com> Date: Tue, 2 Jul 2024 18:00:58 +0400 Subject: [PATCH] Fix ClipboardJS not defined --- src/components/ui/buttons/SocialShare.astro | 62 +++++++++++++-------- 1 file changed, 39 insertions(+), 23 deletions(-) diff --git a/src/components/ui/buttons/SocialShare.astro b/src/components/ui/buttons/SocialShare.astro index 643b3ab..21f0db9 100644 --- a/src/components/ui/buttons/SocialShare.astro +++ b/src/components/ui/buttons/SocialShare.astro @@ -1,7 +1,10 @@ --- import Icon from "@components/ui/icons/Icon.astro"; // Destructure the properties from Astro.props -const { pageTitle, title = Astro.currentLocale === "fr" ? "Partager" : "Share", } = Astro.props; +const { + pageTitle, + title = Astro.currentLocale === "fr" ? "Partager" : "Share", +} = Astro.props; // Define TypeScript interface for the properties interface Props { @@ -88,7 +91,7 @@ const socialPlatforms: SocialPlatform[] = [