migrate: change settings from a store to a state

This commit is contained in:
Xylight committed 2024-10-25 21:09:32 -07:00
1 parent ffcd9faa96
commit d597349887
128 files changed
+1010 -1144

No files matched your search

@@ -5,10 +5,10 @@
import { CommandLine, Icon } from 'svelte-hero-icons'
interface Props {
open?: boolean;
open?: boolean
}
let { open = $bindable(false) }: Props = $props();
let { open = $bindable(false) }: Props = $props()
function handleKeydown(event: KeyboardEvent) {
if (
@@ -25,8 +25,8 @@
{#if open}
<Modal bind:open>
{#snippet title()}
<span class="flex items-center gap-1">
{#snippet customTitle()}
<span class="flex items-center gap-1">
<svg
width="24"
height="24"
@@ -40,7 +40,7 @@
</svg>
{$t('nav.commands.prompt')}
</span>
{/snippet}
{/snippet}
{#await import('./Commands.svelte')}
<div class="h-96 flex flex-col gap-2 items-center justify-center">
<Spinner width={32} />