mirror of
https://github.com/umami-software/umami.git
synced 2026-02-18 11:35:37 +01:00
Session details screen.
This commit is contained in:
parent
c3c3b46ef6
commit
f32bf0a2e0
21 changed files with 252 additions and 33 deletions
12
src/components/hooks/queries/useSessionActivity.ts
Normal file
12
src/components/hooks/queries/useSessionActivity.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { useApi } from './useApi';
|
||||
|
||||
export function useSessionActivity(websiteId: string, sessionId: string) {
|
||||
const { get, useQuery } = useApi();
|
||||
|
||||
return useQuery({
|
||||
queryKey: ['session:activity', { websiteId, sessionId }],
|
||||
queryFn: () => {
|
||||
return get(`/websites/${websiteId}/sessions/${sessionId}/activity`);
|
||||
},
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue