mirror of
https://github.com/umami-software/umami.git
synced 2026-02-15 01:55:36 +01:00
Refactored forms and pages.
This commit is contained in:
parent
1325abe31d
commit
6253d55790
57 changed files with 209 additions and 208 deletions
|
|
@ -4,10 +4,6 @@ import { DateRange } from 'lib/types';
|
|||
|
||||
const store = create(() => ({}));
|
||||
|
||||
export function getWebsiteDateRange(websiteId: string) {
|
||||
return store.getState()?.[websiteId];
|
||||
}
|
||||
|
||||
export function setWebsiteDateRange(websiteId: string, dateRange: DateRange) {
|
||||
store.setState(
|
||||
produce(state => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue