We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3a33267 + 15fd418 commit ac00369Copy full SHA for ac00369
src/components/Header/index.tsx
@@ -31,6 +31,10 @@ const Header = () => {
31
history.push('/minute');
32
}, [history]);
33
34
+ const handleNavigateToUserUpdate = useCallback(() => {
35
+ history.push('/user/update');
36
+ }, [history]);
37
+
38
return (
39
<StyledHeader>
40
<section className="shortOptions">
@@ -48,7 +52,9 @@ const Header = () => {
48
52
</figure>
49
53
50
54
<section className="usernameAndLogout">
51
- <h1>{user?.name || 'Nome do usuário'}</h1>
55
+ <button type="button" onClick={handleNavigateToUserUpdate}>
56
+ <h1>{user?.name || 'Nome do usuário'}</h1>
57
+ </button>
58
59
<button type="button" onClick={handleLogout}>
60
<img src={logoutIcon} alt="logout" />
0 commit comments