Lint/format

This commit is contained in:
Jon Staab
2024-10-09 16:15:09 -07:00
parent 09c3668afd
commit 866f5765de
36 changed files with 124 additions and 155 deletions
+8 -6
View File
@@ -1,5 +1,4 @@
<script lang="ts">
import {page} from "$app/stores"
import {displayRelayUrl} from "@welshman/util"
import {userProfile} from "@welshman/app"
import Avatar from "@lib/components/Avatar.svelte"
@@ -11,7 +10,7 @@
import MenuSettings from "@app/components/MenuSettings.svelte"
import {userMembership, getMembershipUrls} from "@app/state"
import {pushModal} from "@app/modal"
import {makeSpacePath, getPrimaryNavItemIndex} from "@app/routes"
import {makeSpacePath} from "@app/routes"
const addSpace = () => pushModal(SpaceAdd)
@@ -22,14 +21,17 @@
const showSettingsMenu = () => pushModal(MenuSettings)
</script>
<div class="relative w-14 flex-shrink-0 bg-base-100 pt-4 hidden sm:block">
<div class="relative hidden w-14 flex-shrink-0 bg-base-100 pt-4 sm:block">
<div class="flex h-full flex-col justify-between">
<div>
<PrimaryNavItem href="/home" class="tooltip-right">
<Avatar src={$userProfile?.picture} class="!h-10 !w-10" />
</PrimaryNavItem>
{#each getMembershipUrls($userMembership) as url (url)}
<PrimaryNavItem title={displayRelayUrl(url)} href={makeSpacePath(url)} class="tooltip-right">
<PrimaryNavItem
title={displayRelayUrl(url)}
href={makeSpacePath(url)}
class="tooltip-right">
<SpaceAvatar {url} />
</PrimaryNavItem>
{/each}
@@ -50,8 +52,8 @@
<slot />
<div class="fixed bottom-0 left-0 right-0 h-14 bg-base-100 sm:hidden z-nav">
<div class="flex justify-between max-w-sm m-auto px-2">
<div class="fixed bottom-0 left-0 right-0 z-nav h-14 bg-base-100 sm:hidden">
<div class="m-auto flex max-w-sm justify-between px-2">
<PrimaryNavItem title="Home" on:click={showHomeMenu}>
<Avatar icon="home-smile" class="!h-10 !w-10" />
</PrimaryNavItem>