Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Arturo Montejo Ráez
/
WBT2425_0
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
20
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7209211d
authored
Mar 12, 2025
by
Arturo Montejo Ráez
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
changes
parent
934d84e8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
6 deletions
react/src/app/components/avatar.js
react/src/app/layout.js
react/src/app/profile/edit/page.js
react/src/app/components/avatar.js
View file @
7209211d
import
{
useState
,
useRef
,
useEffect
}
from
'react'
;
import
Link
from
'next/link'
;
import
{
FontAwesomeIcon
}
from
'@fortawesome/react-fontawesome'
import
{
faUser
}
from
'@fortawesome/free-solid-svg-icons'
import
{
FontAwesomeIcon
}
from
'@fortawesome/react-fontawesome'
;
import
{
faUser
}
from
'@fortawesome/free-solid-svg-icons'
;
export
default
function
Avatar
()
{
const
[
isOpen
,
setIsOpen
]
=
useState
(
false
);
...
...
@@ -48,7 +48,7 @@ export default function Avatar() {
className
=
"block px-4 py-2 text-gray-800 hover:bg-gray-100"
onClick
=
{()
=>
setIsOpen
(
false
)}
>
Edit
Profile
Edit
Profile
<
/Link
>
<
button
onClick
=
{
handleLogout
}
...
...
react/src/app/layout.js
View file @
7209211d
// app/layout.js
import
Navbar
from
'./components/navbar'
;
import
'./globals.css'
;
...
...
react/src/app/profile/edit/page.js
View file @
7209211d
// app/profile/edit/page.js
"use client"
;
import
{
useState
}
from
'react'
;
...
...
@@ -28,7 +27,6 @@ export default function EditProfile() {
return
(
<
div
className
=
"max-w-md mx-auto"
>
<
h1
className
=
"text-2xl font-bold mb-6"
>
Edit
Your
Profile
<
/h1
>
<
form
onSubmit
=
{
handleSubmit
}
className
=
"space-y-4"
>
<
div
>
<
label
htmlFor
=
"name"
className
=
"block mb-1 font-medium"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment