Skip to content

Commit

Permalink
fix small error
Browse files Browse the repository at this point in the history
  • Loading branch information
Clue355 committed Jul 15, 2024
1 parent c77029d commit 94f0bdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions context/AuthContextProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ type UserCredentials = {

type AuthContextType = {
getUser: () => Promise<IUser | undefined>;
setIsSignedIn: React.Dispatch<React.SetStateAction<boolean>>;
login: (user: UserCredentials) => Promise<void | Error>; // eslint-disable-line no-unused-vars
logoutAccount: () => Promise<void | Error>;
isSignedIn: boolean;
};

export const AuthContext = createContext<AuthContextType | null>(null);
Expand Down Expand Up @@ -117,7 +117,7 @@ export const AuthContextProvider = ({
const contextValue = useMemo(
() => ({
getUser,
setIsSignedIn,
isSignedIn,
login,
logoutAccount,
}),
Expand Down

0 comments on commit 94f0bdf

Please sign in to comment.