mirror of
https://github.com/umami-software/umami.git
synced 2026-02-05 13:17:19 +01:00
Use context hooks.
This commit is contained in:
parent
00adb00d2d
commit
600a3d28c3
13 changed files with 46 additions and 44 deletions
6
src/components/hooks/context/useUser.ts
Normal file
6
src/components/hooks/context/useUser.ts
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import { UserContext } from '@/app/(main)/admin/users/[userId]/UserProvider';
|
||||
import { useContext } from 'react';
|
||||
|
||||
export function useUser() {
|
||||
return useContext(UserContext);
|
||||
}
|
||||
|
|
@ -4,6 +4,7 @@
|
|||
export * from './context/useLink';
|
||||
export * from './context/usePixel';
|
||||
export * from './context/useTeam';
|
||||
export * from './context/useUser';
|
||||
export * from './context/useWebsite';
|
||||
|
||||
// Query hooks
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue