auth: use set and update

This commit is contained in:
Xylight committed 2024-07-19 11:28:42 -07:00
1 parent 35ea654762
commit 0cdb91b20b
3 files changed
+24 -6

No files matched your search

@@ -0,0 +1 @@
<slot />
@@ -0,0 +1,16 @@
<script lang="ts">
import { profile } from '$lib/auth'
import { t } from '$lib/translations'
import { Spinner } from 'mono-svelte'
</script>
<svelte:head>
<title>{$t('profile.subscribed')}</title>
</svelte:head>
{#if $profile?.user}{:else}
<div class="h-full w-full flex flex-col justify-center items-center">
<Spinner width={40} />
<span>{$t('toast.userLoading')}</span>
</div>
{/if}