no need for variadic props
This commit is contained in:
parent
19fb0e3986
commit
6a856c1942
@ -13,16 +13,16 @@
|
||||
</script>
|
||||
|
||||
<script>
|
||||
export let href;
|
||||
export let href; // we don't care about other attributes
|
||||
</script>
|
||||
|
||||
<!-- we pass href explicitly so a11y doesn't scream at us -->
|
||||
|
||||
{#if href.startsWith('/') || host(href) === $page.host}
|
||||
<a sveltekit:prefetch {href} {...$$props}>
|
||||
<a sveltekit:prefetch {href}>
|
||||
<slot></slot>
|
||||
</a>
|
||||
{:else}
|
||||
<a {href} {...$$props}>
|
||||
<a {href}>
|
||||
<slot></slot>
|
||||
</a>
|
||||
{/if}
|
||||
|
@ -6,7 +6,6 @@
|
||||
<script>
|
||||
export let title, date;
|
||||
let pDate = new Date(date);
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user