mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-31 15:09:39 +02:00
pass user object to user context
This commit is contained in:
parent
a300908442
commit
e40ff5d716
6 changed files with 23 additions and 12 deletions
|
@ -1,3 +1,4 @@
|
|||
import { GetUserResponse } from "@server/routers/user";
|
||||
import { createContext } from "react";
|
||||
|
||||
export const UserContext = createContext<boolean | null>(null);
|
||||
export const UserContext = createContext<GetUserResponse | null>(null);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue