no need for variadic props

This commit is contained in:
Joseph Montanaro 2021-10-19 14:30:48 -07:00
parent 19fb0e3986
commit 6a856c1942
2 changed files with 4 additions and 5 deletions

View File

@ -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}

View File

@ -6,7 +6,6 @@
<script>
export let title, date;
let pDate = new Date(date);
</script>