Skip to content

Commit

Permalink
[feat] rename grid and use new editor store
Browse files Browse the repository at this point in the history
  • Loading branch information
braebo committed Jan 13, 2022
1 parent cef0ef0 commit e2f74db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/ui/Bookmarks/Grid.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
// Utils
import { smoothHover } from '$lib/utils/smoothHover'
import { createEventDispatcher } from 'svelte'
import { editor } from '$lib/stores/bookmarkEditor'
import { scale } from 'svelte/transition'
const dispatch = createEventDispatcher()
let hovering: number | null = null
Expand Down Expand Up @@ -235,7 +234,8 @@
on:blur={() => handleItemMouseOut(i)}
class="edit"
transition:scale={{ duration: 150 }}
on:click|preventDefault={() => dispatch('showEditor', { i })}
on:click|preventDefault={() =>
editor.show(['edit', 'bookmark'], { id: bookmark.bookmark_id })}
>
<Edit />
</div>
Expand Down
Empty file.

0 comments on commit e2f74db

Please sign in to comment.