Skip to content

Commit

Permalink
fix: svelte check warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
paring-chan committed Sep 22, 2024
1 parent 336c677 commit 50bc9bf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/Icon.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
role="img"
style="width: {size}px; height: {size}px; {style}"
class="icon {getIconClass(icon)}"
/>
></div>

<style lang="scss">
.icon {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/form/ImageSelector.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<input type="file" accept="image/*" bind:files hidden bind:this={inputRef} />

{#if src}
<div class="image" style="--url: url('{src}');" />
<div class="image" style="--url: url('{src}');"></div>
{/if}

<Menu placement="bottom-start">
Expand Down
11 changes: 9 additions & 2 deletions src/lib/components/nav/Nav.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,18 @@
import LogoIcon from '$lib/components/nav/LogoIcon.svelte'
import NavLink from '$lib/components/nav/NavLink.svelte'
export let user: User | null
interface Props {
user: User | null
}
const { user }: Props = $props()
// export let user: User | null
const ctx = getGlobalContext()
$: mainUrl = ctx.urls.main
// $: mainUrl = ctx.urls.main
const mainUrl = $derived(ctx.urls.main)
</script>

<nav class="nav-container">
Expand Down

0 comments on commit 50bc9bf

Please sign in to comment.