From b6e8b3c622ff4b3f19bd35f0be79eb48755b3630 Mon Sep 17 00:00:00 2001 From: pomadev Date: Sat, 17 Feb 2024 22:56:01 +0900 Subject: [PATCH] fix: comment --- src/client/use-user.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/use-user.tsx b/src/client/use-user.tsx index 4940b435..94ca3244 100644 --- a/src/client/use-user.tsx +++ b/src/client/use-user.tsx @@ -162,7 +162,7 @@ export type UseUser = () => UserContext; * * ```js * // pages/profile.js - * import Link from 'next/link'; + * 'use client'; * import { useUser } from '@auth0/nextjs-auth0/client'; * * export default function Profile() { @@ -170,8 +170,8 @@ export type UseUser = () => UserContext; * * if (isLoading) return
Loading...
; * if (error) return
{error.message}
; - * if (!user) return Login; - * return
Hello {user.name}, Logout
; + * if (!user) return Login; + * return
Hello {user.name}, Logout
; * } * ``` *