diff --git a/frontend/src/components/UserInfo.tsx b/frontend/src/components/UserInfo.tsx
new file mode 100644
index 0000000..e69de29
diff --git a/frontend/src/components/header/Navbar.tsx b/frontend/src/components/header/Navbar.tsx
index fa1b108..97ff3f4 100644
--- a/frontend/src/components/header/Navbar.tsx
+++ b/frontend/src/components/header/Navbar.tsx
@@ -29,7 +29,7 @@ export default function Navbar() {
diff --git a/frontend/src/components/header/NavbarMenuItem.tsx b/frontend/src/components/header/NavbarMenuItem.tsx
index c9f898d..7ccafce 100644
--- a/frontend/src/components/header/NavbarMenuItem.tsx
+++ b/frontend/src/components/header/NavbarMenuItem.tsx
@@ -3,7 +3,7 @@ import React from "react";
export default function NavbarMenuItem({icon, label, ...linkProps}: NavLinkProps & { icon: string, label: string }) {
return (
-
+
diff --git a/frontend/src/components/header/ProfileDropdownMenu.tsx b/frontend/src/components/header/ProfileDropdownMenu.tsx
index e4006ca..e0a03de 100644
--- a/frontend/src/components/header/ProfileDropdownMenu.tsx
+++ b/frontend/src/components/header/ProfileDropdownMenu.tsx
@@ -1,38 +1,47 @@
import {useAuth} from "../../hooks/use-auth";
-import {Link} from "react-router-dom";
+import {Link, useHistory} from "react-router-dom";
import React from "react";
import styles from './ProfileDropdownMenu.module.css';
export default function ProfileDropdownMenu() {
- const auth = useAuth();
+ const {user, logout} = useAuth();
+ const history = useHistory();
+
+ const {name, username} = user!;
+
+ const signOut = () => {
+ logout();
+ history.push("/");
+ };
return (
-
Hello {auth.user?.name}
+
Hello {name}
-
-
-
-
- Profile
-
-
-
-
-
-
-
- Help
-
+
+
+
+
+
+ Profile
+
-
-
-
-
- Sign out
-
+ {/**/}
+ {/* */}
+ {/* */}
+ {/* */}
+ {/* */}
+ {/* Help*/}
+ {/* */}
+ {/**/}
+ {/*
*/}
+
+
+
+
+ Sign out
);
diff --git a/frontend/src/components/profile/ProfilePage.module.css b/frontend/src/components/profile/ProfilePage.module.css
new file mode 100644
index 0000000..e69de29
diff --git a/frontend/src/components/profile/ProfilePage.tsx b/frontend/src/components/profile/ProfilePage.tsx
new file mode 100644
index 0000000..e69de29