second to last commit hopefully final features and Ui refinements
This commit is contained in:
9
src/lib/stores/stampsStore.js
Normal file
9
src/lib/stores/stampsStore.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import { writable } from 'svelte/store';
|
||||
|
||||
// Holds this device/user's earned "passport stamps" (see firebase/stamps.js).
|
||||
// Populated by getStamps() on load and appended to live by
|
||||
// checkAndAwardStamp() whenever a new stamp is earned, so the bottom-nav
|
||||
// (mobile) and stamp-book button (desktop) in +page.svelte can react to
|
||||
// $stampsStore.length to switch between their empty/filled icon states
|
||||
// without needing a refetch.
|
||||
export const stampsStore = writable([]);
|
||||
Reference in New Issue
Block a user