feat(web): store albums sorting policy in local storage (#2966)

This commit is contained in:
Ethan Margaillan 2023-06-26 18:54:20 +02:00 committed by GitHub
parent d078aea32b
commit e803bc909f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 5 deletions

View file

@ -37,3 +37,11 @@ export const mapSettings = persisted<MapSettings>('map-settings', {
});
export const videoViewerVolume = persisted<number>('video-viewer-volume', 1, {});
export interface AlbumViewSettings {
sortBy: string;
}
export const albumViewSettings = persisted<AlbumViewSettings>('album-view-settings', {
sortBy: 'Most recent photo'
});