mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
web/DonateShareCard: hide twitter button in russia
This commit is contained in:
parent
d1a2d768d9
commit
6bda6dab03
1 changed files with 13 additions and 10 deletions
|
@ -1,6 +1,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { contacts } from "$lib/env";
|
import { contacts } from "$lib/env";
|
||||||
import { device } from "$lib/device";
|
import { device } from "$lib/device";
|
||||||
|
import locale from "$lib/i18n/locale";
|
||||||
import { t } from "$lib/i18n/translations";
|
import { t } from "$lib/i18n/translations";
|
||||||
|
|
||||||
import { openURL, copyURL, shareURL } from "$lib/download";
|
import { openURL, copyURL, shareURL } from "$lib/download";
|
||||||
|
@ -82,16 +83,18 @@
|
||||||
{$t("button.star")}
|
{$t("button.star")}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
{#if $locale !== "ru"}
|
||||||
id="action-button-twitter"
|
<button
|
||||||
class="action-button"
|
id="action-button-twitter"
|
||||||
on:click={async () => openURL(contacts.twitter)}
|
class="action-button"
|
||||||
>
|
on:click={async () => openURL(contacts.twitter)}
|
||||||
<div class="action-button-icon">
|
>
|
||||||
<IconBrandTwitter />
|
<div class="action-button-icon">
|
||||||
</div>
|
<IconBrandTwitter />
|
||||||
{$t("button.follow")}
|
</div>
|
||||||
</button>
|
{$t("button.follow")}
|
||||||
|
</button>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|
Loading…
Reference in a new issue