mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-28 05:44:01 +02:00
pass user object to user context
This commit is contained in:
parent
61fca6a1f6
commit
41cbde1474
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