smooth log out
This commit is contained in:
@@ -117,6 +117,7 @@ export const AuthProvider = ({ children }: { children: React.ReactNode }) => {
|
||||
<CircularProgress />
|
||||
</Container>
|
||||
);
|
||||
|
||||
return (
|
||||
<AuthContext.Provider value={{ user: currentUser, logout }}>
|
||||
{currentUser ? <>{children}</> : <Login />}
|
||||
|
||||
Reference in New Issue
Block a user