Archived
merge conflict fixes
This commit is contained in:
@@ -5,16 +5,15 @@ interface loginInfo {
|
||||
isLoggedIn: boolean;
|
||||
}
|
||||
|
||||
const AuthContext = createContext<loginInfo>({username: "", isLoggedIn: false});
|
||||
const AuthContext = createContext<loginInfo>({
|
||||
username: "",
|
||||
isLoggedIn: false,
|
||||
});
|
||||
|
||||
export const AuthProvider = ({ children }: {children: React.ReactNode}) => {
|
||||
const [auth] = useState<loginInfo>({username: "", isLoggedIn: false});
|
||||
export const AuthProvider = ({ children }: { children: React.ReactNode }) => {
|
||||
const [auth] = useState<loginInfo>({ username: "", isLoggedIn: false });
|
||||
|
||||
return (
|
||||
<AuthContext.Provider value={auth}>
|
||||
{children}
|
||||
</AuthContext.Provider>
|
||||
);
|
||||
return <AuthContext.Provider value={auth}>{children}</AuthContext.Provider>;
|
||||
};
|
||||
|
||||
export default AuthContext;
|
||||
export default AuthContext;
|
||||
|
||||
Reference in New Issue
Block a user