mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 01:25:37 +01:00
Converted user and website settings.
This commit is contained in:
parent
4c24e54fdd
commit
b5c6194f36
59 changed files with 363 additions and 554 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { createContext, ReactNode, useEffect } from 'react';
|
||||
import { Loading } from '@umami/react-zen';
|
||||
import { useModified, useUser } from '@/components/hooks';
|
||||
import { Loading } from 'react-basics';
|
||||
|
||||
export const UserContext = createContext(null);
|
||||
|
||||
|
|
@ -18,5 +18,5 @@ export function UserProvider({ userId, children }: { userId: string; children: R
|
|||
return <Loading position="page" />;
|
||||
}
|
||||
|
||||
return <UserContext.Provider value={user}>{children}</UserContext.Provider>;
|
||||
return <UserContext.Provider value={{ ...user, modified }}>{children}</UserContext.Provider>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue