UPDATE: Dynamically change profile picture on UserPage, without requiring page reload

This commit is contained in:
Chris-1010
2025-03-03 12:14:16 +00:00
parent 45b62a06fc
commit 3012e8ebd1
6 changed files with 112 additions and 116 deletions

View File

@@ -5,10 +5,12 @@ interface AuthContextType {
username: string | null;
userId: number | null;
isLive: boolean;
profilePicture: string | null;
setIsLoggedIn: (value: boolean) => void;
setUsername: (value: string | null) => void;
setUserId: (value: number | null) => void;
setIsLive: (value: boolean) => void;
setProfilePicture: (value: string | null) => void;
}
export const AuthContext = createContext<AuthContextType | undefined>(undefined);