Skip to content

Commit e2f74db

Browse files
committed
[feat] rename grid and use new editor store
1 parent cef0ef0 commit e2f74db

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/lib/ui/Bookmarks/Grid.svelte

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
1313
// Utils
1414
import { smoothHover } from '$lib/utils/smoothHover'
15-
import { createEventDispatcher } from 'svelte'
15+
import { editor } from '$lib/stores/bookmarkEditor'
1616
import { scale } from 'svelte/transition'
17-
const dispatch = createEventDispatcher()
1817
1918
let hovering: number | null = null
2019
@@ -235,7 +234,8 @@
235234
on:blur={() => handleItemMouseOut(i)}
236235
class="edit"
237236
transition:scale={{ duration: 150 }}
238-
on:click|preventDefault={() => dispatch('showEditor', { i })}
237+
on:click|preventDefault={() =>
238+
editor.show(['edit', 'bookmark'], { id: bookmark.bookmark_id })}
239239
>
240240
<Edit />
241241
</div>

src/lib/ui/Bookmarks/GridManager.svelte

Whitespace-only changes.

0 commit comments

Comments
 (0)