Skip to content

Commit

Permalink
fix: comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pomadev committed Feb 17, 2024
1 parent 951a248 commit d6d2ead
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/use-user.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ export type UseUser = () => UserContext;
*
* if (isLoading) return <div>Loading...</div>;
* if (error) return <div>{error.message}</div>;
* if (!user) return <Link href="/api/auth/login"><a>Login</a></Link>;
* return <div>Hello {user.name}, <Link href="/api/auth/logout"><a>Logout</a></Link></div>;
* if (!user) return <a href="/api/auth/login">Login</a>;
* return <div>Hello {user.name}, <a href="/api/auth/logout">Logout</a></div>;
* }
* ```
*
Expand Down

0 comments on commit d6d2ead

Please sign in to comment.