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

@@ -13,7 +13,6 @@
import mapDrawing from "$lib/assets/adventure_map.svg";
import EditModal from "$lib/components/EditModal.svelte";
import { generateRandomString } from "$lib";
import { visitCount } from "$lib/utils/stores/visitCountStore";
import MoreFieldsInput from "$lib/components/CreateNewAdventure.svelte";
import {
addAdventure,
@@ -36,11 +35,6 @@
isLoading = false;
});
let count = 0;
visitCount.subscribe((value) => {
count = value;
});
function showToast(action: string) {
toastAction = action;
isShowingToast = true;
@@ -141,7 +135,6 @@
// remove adventure from array where id matches
adventures = [];
showToast("Adventure removed successfully!");
visitCount.set(0);
})
.catch((error) => {
console.error("Error:", error);