mirror of
https://github.com/immich-app/immich.git
synced 2025-12-23 17:25:11 +03:00
refactor(web): simplify some stores (#11695)
* refactor(web): simplify some stores * make writable
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { writable } from 'svelte/store';
|
||||
import { readonly, writable } from 'svelte/store';
|
||||
|
||||
function createPurchaseStore() {
|
||||
const isPurcharsed = writable(false);
|
||||
@@ -8,9 +8,7 @@ function createPurchaseStore() {
|
||||
}
|
||||
|
||||
return {
|
||||
isPurchased: {
|
||||
subscribe: isPurcharsed.subscribe,
|
||||
},
|
||||
isPurchased: readonly(isPurcharsed),
|
||||
setPurchaseStatus,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user