diff --git a/src/lib/components/preferences/gameCollection.svelte b/src/lib/components/preferences/gameCollection.svelte index a80dc56..058d48e 100644 --- a/src/lib/components/preferences/gameCollection.svelte +++ b/src/lib/components/preferences/gameCollection.svelte @@ -2,7 +2,7 @@ import { browser } from '$app/env'; import { collectionStore } from '$root/lib/stores/collectionStore'; import { ToastType } from '$root/lib/types'; - import { SaveIcon } from '@rgossiaux/svelte-heroicons/outline'; + import { SaveIcon, TrashIcon } from '@rgossiaux/svelte-heroicons/outline'; import { toast } from '../toast/toast'; function saveCollection() { @@ -10,19 +10,26 @@ console.log('collectionStore', $collectionStore); if (!browser) return; localStorage.collection = JSON.stringify($collectionStore); - toast.send("Saved collection", { duration: 3000, type: ToastType.INFO }); + toast.send('Saved collection', { duration: 3000, type: ToastType.INFO }); } function clearCollection() { if (!browser) return; localStorage.collection = []; - toast.send("Cleared collection", { duration: 3000, type: ToastType.INFO }); + toast.send('Cleared collection', { duration: 3000, type: ToastType.INFO }); }