mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 14:17:13 +01:00
Pixel/link metrics pages.
This commit is contained in:
parent
789b8b36d8
commit
8e766e2db7
42 changed files with 530 additions and 49 deletions
6
src/components/hooks/context/useLink.ts
Normal file
6
src/components/hooks/context/useLink.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import { LinkContext } from '@/app/(main)/links/LinkProvider';
|
||||
import { useContext } from 'react';
|
||||
|
||||
export function useLink() {
|
||||
return useContext(LinkContext);
|
||||
}
|
||||
6
src/components/hooks/context/usePixel.ts
Normal file
6
src/components/hooks/context/usePixel.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import { PixelContext } from '@/app/(main)/pixels/PixelProvider';
|
||||
import { useContext } from 'react';
|
||||
|
||||
export function usePixel() {
|
||||
return useContext(PixelContext);
|
||||
}
|
||||
6
src/components/hooks/context/useTeam.ts
Normal file
6
src/components/hooks/context/useTeam.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import { TeamContext } from '@/app/(main)/teams/TeamProvider';
|
||||
import { useContext } from 'react';
|
||||
|
||||
export function useTeam() {
|
||||
return useContext(TeamContext);
|
||||
}
|
||||
6
src/components/hooks/context/useWebsite.ts
Normal file
6
src/components/hooks/context/useWebsite.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import { WebsiteContext } from '@/app/(main)/websites/WebsiteProvider';
|
||||
import { useContext } from 'react';
|
||||
|
||||
export function useWebsite() {
|
||||
return useContext(WebsiteContext);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue