mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 05:37:20 +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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue