🐛 add env to useDb and apply prettier
tinyedge/deploy Deployed by TinyEdge

This commit is contained in:
2026-08-07 13:28:26 +02:00
parent 67727f96ab
commit cbe1b42f6e
54 changed files with 5492 additions and 2406 deletions
+8 -5
View File
@@ -1,11 +1,14 @@
const STORAGE_KEY = 'stb:last-payment-link'
const STORAGE_KEY = 'stb:last-payment-link';
type StorageLike = Pick<Storage, 'getItem' | 'setItem'>
type StorageLike = Pick<Storage, 'getItem' | 'setItem'>;
export function readCachedPaymentLink(storage: StorageLike): string | null {
return storage.getItem(STORAGE_KEY) || null
return storage.getItem(STORAGE_KEY) || null;
}
export function writeCachedPaymentLink(storage: StorageLike, link: string): void {
storage.setItem(STORAGE_KEY, link)
export function writeCachedPaymentLink(
storage: StorageLike,
link: string,
): void {
storage.setItem(STORAGE_KEY, link);
}