9 | {message} 10 |
11 | ))} 12 | > 13 | )} 14 | > 15 | ) 16 | 17 | export default InputError 18 | -------------------------------------------------------------------------------- /nextjs/src/components/Label.js: -------------------------------------------------------------------------------- 1 | const Label = ({ className, children, ...props }) => ( 2 | 7 | ) 8 | 9 | export default Label 10 | -------------------------------------------------------------------------------- /nextjs/src/components/Layouts/AppLayout.js: -------------------------------------------------------------------------------- 1 | import Navigation from '@/components/Layouts/Navigation' 2 | import { useAuth } from '@/contexts/AuthContext'; 3 | 4 | const AppLayout = ({ header, children }) => { 5 | // const { user } = useAuth({ middleware: 'auth' }) 6 | const { user } = useAuth(); 7 | 8 | return ( 9 |101 | {state.loading && Loading...} 102 | {paragraph} 103 |
104 | > 105 |
33 | src/pages/index.js
34 |
35 | .
36 | {user?.email}
13 | 14 |