mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-20 17:28:32 +02:00
enable 2fa flow
This commit is contained in:
parent
b1afba191e
commit
9e50a580a5
33 changed files with 605 additions and 2084 deletions
|
@ -1,4 +1,11 @@
|
|||
import { GetUserResponse } from "@server/routers/user";
|
||||
import { createContext } from "react";
|
||||
|
||||
export const UserContext = createContext<GetUserResponse | null>(null);
|
||||
interface UserContextType {
|
||||
user: GetUserResponse;
|
||||
updateUser: (updatedUser: Partial<GetUserResponse>) => void;
|
||||
}
|
||||
|
||||
const UserContext = createContext<UserContextType | undefined>(undefined);
|
||||
|
||||
export default UserContext;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue