Rename noteStore to note-store

This commit is contained in:
John
2024-12-29 17:58:24 -05:00
parent f8f39b92c3
commit 4094296a4c
2 changed files with 10 additions and 10 deletions

View File

@@ -2,7 +2,7 @@
import { Drawer, getDrawerStore, getToastStore } from '@skeletonlabs/skeleton';
import type { DrawerSettings, DrawerStore } from '@skeletonlabs/skeleton';
import { onMount } from 'svelte';
import { noteStore } from '$lib/store/noteStore';
import { noteStore } from '$lib/store/note-store';
import { afterNavigate, beforeNavigate } from '$app/navigation';
const drawerStore = getDrawerStore();
@@ -94,14 +94,14 @@
{/if}
</header>
<div class="m-4">
<textarea
bind:this={textareaEl}
bind:value={$noteStore.content}
on:input={adjustTextareaHeight}
on:keydown={handleKeydown}
class="w-full min-h-screen p-2 rounded-container-token text-primary-800 resize-none"
placeholder="Enter your text here..."
/>
<textarea
bind:this={textareaEl}
bind:value={$noteStore.content}
on:input={adjustTextareaHeight}
on:keydown={handleKeydown}
class="w-full min-h-screen p-2 rounded-container-token text-primary-800 resize-none"
placeholder="Enter your text here..."
/>
</div>
<footer class="flex justify-between pb-4 items-center">
<span class="text-sm opacity-70">

View File

@@ -112,4 +112,4 @@ ${content}`; // Original content preserved as-is
};
}
export const noteStore = createNoteStore();
export const noteStore = createNoteStore();