Convert linkable
This commit is contained in:
parent
a566b49ec3
commit
c38d694727
|
@ -1,8 +1,8 @@
|
|||
import { get } from "svelte/store"
|
||||
import { link } from "svelte-spa-router"
|
||||
import { link, LinkActionOpts } from "svelte-spa-router"
|
||||
import { builderStore } from "stores"
|
||||
|
||||
export const linkable = (node, href) => {
|
||||
export const linkable = (node: HTMLElement, href?: LinkActionOpts) => {
|
||||
if (get(builderStore).inBuilder) {
|
||||
node.onclick = e => {
|
||||
e.preventDefault()
|
Loading…
Reference in New Issue