best way to save what you love
Svelte collaborationdownloaderinstagramjavascriptmusicredditsocial-mediasoundcloudsveltetiktoktwittertypescriptvideovimeovkwebappyoutubeyoutube-downloader
web/DonateShareCard: hide twitter button in russia
wukko6bda6dab03a9
diff --git a/web/src/components/donate/DonateShareCard.svelte b/web/src/components/donate/DonateShareCard.svelteindex 4f534b29..86f69908 100644--- a/web/src/components/donate/DonateShareCard.svelte+++ b/web/src/components/donate/DonateShareCard.svelte@@ -1,6 +1,7 @@<script lang="ts">import { contacts } from "$lib/env";import { device } from "$lib/device";+ import locale from "$lib/i18n/locale";import { t } from "$lib/i18n/translations";import { openURL, copyURL, shareURL } from "$lib/download";@@ -82,16 +83,18 @@{$t("button.star")}</button>- <button- id="action-button-twitter"- class="action-button"- on:click={async () => openURL(contacts.twitter)}- >- <div class="action-button-icon">- <IconBrandTwitter />- </div>- {$t("button.follow")}- </button>+ {#if $locale !== "ru"}+ <button+ id="action-button-twitter"+ class="action-button"+ on:click={async () => openURL(contacts.twitter)}+ >+ <div class="action-button-icon">+ <IconBrandTwitter />+ </div>+ {$t("button.follow")}+ </button>+ {/if}</div></div><div