UPDATE: Dynamically change profile picture on UserPage, without requiring page reload
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user