mirror of
https://github.com/lukevella/rallly.git
synced 2025-06-09 06:01:49 +02:00
🎨 Improve participant definition (#1337)
This commit is contained in:
parent
12110be7c7
commit
4e7b391a9f
19 changed files with 269 additions and 238 deletions
|
@ -28,7 +28,7 @@ const userSchema = z.object({
|
|||
export const UserContext = React.createContext<{
|
||||
user: z.infer<typeof userSchema>;
|
||||
refresh: (data?: Record<string, unknown>) => Promise<Session | null>;
|
||||
ownsObject: (obj: { userId: string | null }) => boolean;
|
||||
ownsObject: (obj: { userId?: string | null }) => boolean;
|
||||
} | null>(null);
|
||||
|
||||
export const useUser = () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue