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>
<script> <script>
export let href; export let href; // we don't care about other attributes
</script> </script>
<!-- we pass href explicitly so a11y doesn't scream at us -->
{#if href.startsWith('/') || host(href) === $page.host} {#if href.startsWith('/') || host(href) === $page.host}
<a sveltekit:prefetch {href} {...$$props}> <a sveltekit:prefetch {href}>
<slot></slot> <slot></slot>
</a> </a>
{:else} {:else}
<a {href} {...$$props}> <a {href}>
<slot></slot> <slot></slot>
</a> </a>
{/if} {/if}

View File

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