fix: restore telegram mini app auth

This commit is contained in:
3252a8
2026-05-22 14:47:01 +03:00
parent 9e56715e77
commit c82779e15b
5 changed files with 51 additions and 10 deletions
@@ -34,6 +34,7 @@
export let user = {};
export let userAgreementUrl = "";
export let userLanguage = "";
export let showLogout = true;
export let linkTelegramAccount = () => {};
export let logout = () => {};
@@ -187,10 +188,12 @@
<ArrowRight size={17} />
</button>
{/if}
<button class="settings-row settings-row-logout" type="button" onclick={logout}>
<UserRound size={21} />
<span><strong>{t("wa_logout")}</strong><small>{t("wa_end_session")}</small></span>
<ArrowRight size={17} />
</button>
{#if showLogout}
<button class="settings-row settings-row-logout" type="button" onclick={logout}>
<UserRound size={21} />
<span><strong>{t("wa_logout")}</strong><small>{t("wa_end_session")}</small></span>
<ArrowRight size={17} />
</button>
{/if}
</div>
</main>