mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 16:45:35 +01:00
Updates to team components.
This commit is contained in:
parent
102f5b78b1
commit
dbb3801e66
28 changed files with 173 additions and 159 deletions
|
|
@ -2,7 +2,9 @@
|
|||
import { useApi } from './useApi';
|
||||
import { useFilterQuery } from './useFilterQuery';
|
||||
import { useLogin } from './useLogin';
|
||||
import useCache from 'store/cache';
|
||||
import useModified from 'store/modified';
|
||||
|
||||
const selector = (state: any) => state?.websites;
|
||||
|
||||
export function useWebsites(
|
||||
{ userId, teamId }: { userId?: string; teamId?: string },
|
||||
|
|
@ -10,7 +12,7 @@ export function useWebsites(
|
|||
) {
|
||||
const { get } = useApi();
|
||||
const { user } = useLogin();
|
||||
const modified = useCache((state: any) => state?.websites);
|
||||
const modified = useModified(selector);
|
||||
|
||||
return useFilterQuery({
|
||||
queryKey: ['websites', { userId, teamId, modified, ...params }],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue