add store to update user profile picture when set

This commit is contained in:
Paul Paffe
2023-07-04 00:24:19 -04:00
parent a65c79de27
commit 98c1364f44
3 changed files with 25 additions and 10 deletions
+4
View File
@@ -1,5 +1,6 @@
import { browser } from '$app/environment';
import { persisted } from 'svelte-local-storage-store';
import { writable } from 'svelte/store';
const initialTheme = browser && !window.matchMedia('(prefers-color-scheme: dark)').matches ? 'light' : 'dark';
@@ -46,3 +47,6 @@ export interface AlbumViewSettings {
export const albumViewSettings = persisted<AlbumViewSettings>('album-view-settings', {
sortBy: 'Most recent photo',
});
export const lastUpdatedProfilePicture = persisted<Number>('last-updated-profile-picture', 0, {});