Skip to content

Commit

Permalink
Svelte 5 linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SapiensAnatis committed Oct 22, 2024
1 parent 128254a commit a4a92d2
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
)}
{...$$restProps}
>
<div class="mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" />
<div class="mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"></div>
<slot />
</DrawerPrimitive.Content>
</DrawerPrimitive.Portal>
4 changes: 2 additions & 2 deletions Website/src/routes/(main)/(home)/linkButton.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts">
import type { ComponentType } from 'svelte';
import type { Component } from 'svelte';
import { Button } from '$shadcn/components/ui/button/index.js';
export let href: string;
export let icon: ComponentType;
export let icon: Component;
</script>

<Button variant="secondary" {href}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<NotebookPen aria-hidden={true} size={25} />
<h2 id="staged-changes-title" class="m-0 text-xl font-bold">Staged changes</h2>
{#if $changesCount > 90}
<div class="flex-grow" />
<div class="flex-grow"></div>
<p class="text-sm font-normal text-muted-foreground">{$changesCount} / 100</p>
{/if}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
<div>
<CharaIcon chara={unit.chara} />
</div>
<span class={spacerClass} />
<span class={spacerClass}></span>
<div class="flex items-start">
<DragonIcon dragon={unit.dragon} />
<WeaponIcon weapon={unit.weapon} />
<TalismanIcon talisman={unit.talisman} />
</div>
<span class={spacerClass} />
<span class={spacerClass}></span>
<div class="flex items-start">
{#each unit.crests.slice(0, 3) as abilityCrest}
<AbilityCrestIcon {abilityCrest} rarity={5} />
Expand All @@ -47,7 +47,7 @@
<AbilityCrestIcon abilityCrest={sindomAbilityCrest} rarity={6} />
{/each}
</div>
<span class={spacerClass} />
<span class={spacerClass}></span>
{#if unit.position === 1 || coop}
<div class="flex items-start">
{#each unit.sharedSkills as skill}
Expand Down
2 changes: 1 addition & 1 deletion Website/src/routes/(main)/headerContents.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</script>

<h1 class="scroll-m-20 text-2xl font-bold tracking-tight md:text-3xl">Dawnshard</h1>
<div class="flex-grow" />
<div class="flex-grow"></div>
<Button on:click={toggleMode} variant="outline" size="icon" data-loaded={jsLoaded}>
<Sun
class="absolute size-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"
Expand Down
4 changes: 2 additions & 2 deletions Website/src/routes/(main)/news/pagination.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
Previous
</Button>
{:else}
<span class="col-span-2" aria-hidden="true" />
<span class="col-span-2" aria-hidden="true"></span>
{/if}
<p class="col-span-1 text-center text-sm">
{currentPage} / {numPages}
Expand All @@ -38,7 +38,7 @@
<ChevronRight size="16" class="ml-2" aria-hidden="true" />
</Button>
{:else}
<span class="grid-cols-2" aria-hidden="true" />
<span class="grid-cols-2" aria-hidden="true"></span>
{/if}
</div>
</div>
4 changes: 2 additions & 2 deletions Website/src/routes/webview/news/iconButton.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts">
import type { ComponentType } from 'svelte';
import type { Component } from 'svelte';
import { Button } from '$shadcn/components/ui/button';
export let href: string;
export let icon: ComponentType;
export let icon: Component;
</script>

<Button variant="secondary" {href}>
Expand Down

0 comments on commit a4a92d2

Please sign in to comment.