merge conflict fixes

This commit is contained in:
Taehee Choi
2022-03-13 18:37:40 -07:00
parent 20e8c79bb9
commit 97ed807785
4 changed files with 81 additions and 99 deletions
+8 -9
View File
@@ -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;