Skip to content

Commit 8ad0750

Browse files
committed
Remove async from functions
1 parent 7e86244 commit 8ad0750

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

src/lib/components/NoteDialog.svelte

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
1616
$: heading = note?.reference ?? '';
1717
18-
export async function showModal() {
18+
export function showModal() {
1919
if (note !== undefined) {
2020
text = note.text;
2121
modal.showModal();
2222
} else {
23-
console.log('No note available!')
23+
console.log('No note available!');
2424
}
2525
}
2626
@@ -29,7 +29,7 @@
2929
selectedVerses.reset();
3030
}
3131
32-
async function onEditNote(){
32+
function onEditNote() {
3333
if (note !== undefined) goto(`${base}/notes/edit/${note.date}`);
3434
}
3535
</script>
@@ -38,18 +38,14 @@
3838
<svelte:fragment slot="content">
3939
<div id="container" class="flex flex-col justify-evenly">
4040
<div class="w-full flex justify-between items-center">
41-
<div
42-
class="annotation-item-title w-full pb-3 font-bold"
43-
>
41+
<div class="annotation-item-title w-full pb-3 font-bold">
4442
{heading}
4543
</div>
46-
<button class="dy-btn dy-btn-ghost dy-btn-circle"
47-
on:click={onEditNote}
48-
>
49-
<EditIcon />
50-
</button>
44+
<button class="dy-btn dy-btn-ghost dy-btn-circle" on:click={onEditNote}>
45+
<EditIcon />
46+
</button>
5147
</div>
52-
48+
5349
<div style:word-wrap="break-word" class="mt-2">
5450
{#if text !== undefined}
5551
{#each text.split(/\r?\n/) as line}
@@ -66,5 +62,3 @@
6662
</div>
6763
</svelte:fragment>
6864
</Modal>
69-
70-

0 commit comments

Comments
 (0)