Added new trip plan creator and removed visit count stores

This commit is contained in:
Sean Morley
2024-05-06 23:13:32 +00:00
parent 75da1f4cc6
commit 01865951ac
19 changed files with 967 additions and 522 deletions

View File

@@ -2,14 +2,8 @@
export let data;
import { goto } from "$app/navigation";
import AdventureCard from "$lib/components/AdventureCard.svelte";
import { visitCount } from "$lib/utils/stores/visitCountStore.js";
import type { Adventure } from "$lib/utils/types.js";
let count = 0;
visitCount.subscribe((value) => {
count = value;
});
async function add(event: CustomEvent<Adventure>) {
let detailAdventure = event.detail;
@@ -25,8 +19,6 @@
if (response.status === 401) {
goto("/login");
} else {
visitCount.update((n) => n + 1);
}
}
</script>