mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 15:47:13 +01:00
Updated components build.
This commit is contained in:
parent
5f27ba149b
commit
56af91950a
53 changed files with 942 additions and 333 deletions
|
|
@ -1,8 +1,9 @@
|
|||
import { createContext, ReactNode } from 'react';
|
||||
import { Loading } from '@umami/react-zen';
|
||||
import { useUserQuery } from '@/components/hooks';
|
||||
import { User } from '@/generated/prisma/client';
|
||||
import { useUserQuery } from '@/components/hooks/queries/useUserQuery';
|
||||
|
||||
export const UserContext = createContext(null);
|
||||
export const UserContext = createContext<User>(null);
|
||||
|
||||
export function UserProvider({ userId, children }: { userId: string; children: ReactNode }) {
|
||||
const { data: user, isFetching, isLoading } = useUserQuery(userId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue