From 112b5dae4a45a98b29f3076dbc729d852a9ff468 Mon Sep 17 00:00:00 2001 From: Bradley Shellnut Date: Wed, 3 Aug 2022 23:32:18 -0700 Subject: [PATCH] Update icons in preferences. --- .../preferences/gameCollection.svelte | 33 ++++++++++++++----- 1 file changed, 25 insertions(+), 8 deletions(-) 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 }); }
- - + Your Collection +
+ + +
\ No newline at end of file +