Refactor: removed default exports.

This commit is contained in:
Mike Cao 2025-02-13 22:53:25 -08:00
parent cd944e14ce
commit f83a12d6cd
343 changed files with 555 additions and 1046 deletions

View file

@ -59,4 +59,4 @@ export function setDateRange(dateRange: string | object) {
store.setState({ dateRange });
}
export default store;
export const useApp = store;

View file

@ -6,4 +6,4 @@ export function setValue(key: string, value: any) {
store.setState({ [key]: value });
}
export default store;
export const useCache = store;

View file

@ -19,4 +19,4 @@ export function saveDashboard(settings) {
setItem(DASHBOARD_CONFIG, store.getState());
}
export default store;
export const useDashboard = store;

View file

@ -1,9 +0,0 @@
import { create } from 'zustand';
const store = create(() => ({}));
export function touch(key: string) {
store.setState({ [key]: Date.now() });
}
export default store;

View file

@ -52,4 +52,4 @@ export async function checkVersion() {
);
}
export default store;
export const useVersion = store;

View file

@ -32,4 +32,4 @@ export function setWebsiteDateCompare(websiteId: string, dateCompare: string) {
);
}
export default store;
export const useWebsites = store;