Refactor navigation to use goto function

This commit is contained in:
Sean Morley
2024-03-30 21:46:36 +00:00
parent 8d653ddf6c
commit 960062b499
2 changed files with 13 additions and 4 deletions

View File

@@ -1,7 +1,8 @@
<script lang="ts">
import { goto } from '$app/navigation';
import campingDrawing from "$lib/assets/camping.svg";
function navToLog() {
window.location.href = '/log';
async function navToLog() {
goto('/log');
}
</script>