Change some ProjectLink components into Link

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2023-07-04 14:52:51 +02:00
parent fc05770775
commit 33594b732f
2 changed files with 47 additions and 18 deletions
+2 -1
View File
@@ -5,6 +5,7 @@
import { push, routeToPath, useDefaultNavigation } from "@app/lib/router";
export let route: Route;
export let title: string | undefined = undefined;
const dispatch = createEventDispatcher<{
afterNavigate: never;
@@ -21,6 +22,6 @@
}
</script>
<a on:click={navigateToRoute} href={routeToPath(route)}>
<a on:click={navigateToRoute} href={routeToPath(route)} {title}>
<slot />
</a>