misc: change login button to always be 'accounts' button

This commit is contained in:
Xyphyn committed 2023-08-24 16:59:11 -07:00
1 parent 2c3865ee30
commit 27b748d194
1 file changed
+9 -16
+9 -16
View File
@@ -227,22 +227,15 @@
<Icon src={Bookmark} mini width={16} /> Saved <Icon src={Bookmark} mini width={16} /> Saved
</MenuButton> </MenuButton>
{/if} {/if}
{#if $profileData.profiles.length == 0} <MenuButton link href="/accounts">
<MenuButton link href="/login"> <Icon src={UserGroup} mini width={16} />
<Icon src={ArrowLeftOnRectangle} mini width={16} /> Accounts
Log in <span
</MenuButton> class="text-xs font-bold bg-slate-100 dark:bg-zinc-700 px-2 py-0.5 rounded-md ml-auto"
{:else} >
<MenuButton link href="/accounts"> {$profileData.profiles.length}
<Icon src={UserGroup} mini width={16} /> </span>
Accounts </MenuButton>
<span
class="text-xs font-bold bg-slate-100 dark:bg-zinc-700 px-2 py-0.5 rounded-md ml-auto"
>
{$profileData.profiles.length}
</span>
</MenuButton>
{/if}
<hr class="dark:opacity-10 w-[90%] my-2 mx-auto" /> <hr class="dark:opacity-10 w-[90%] my-2 mx-auto" />
<li class="text-xs px-4 py-1 my-1 opacity-80">App</li> <li class="text-xs px-4 py-1 my-1 opacity-80">App</li>
<MenuButton link href="/settings"> <MenuButton link href="/settings">