no need for variadic props
This commit is contained in:
		| @@ -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} | ||||||
|   | |||||||
| @@ -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> | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user