diff --git a/src/frontend/src/components/headerComponent/index.tsx b/src/frontend/src/components/headerComponent/index.tsx
index c74cdaa76..2a7219fed 100644
--- a/src/frontend/src/components/headerComponent/index.tsx
+++ b/src/frontend/src/components/headerComponent/index.tsx
@@ -7,8 +7,17 @@ import { alertContext } from "../../contexts/alertContext";
import { AuthContext } from "../../contexts/authContext";
import { darkContext } from "../../contexts/darkContext";
import { TabsContext } from "../../contexts/tabsContext";
+import { gradients } from "../../utils/styleUtils";
import IconComponent from "../genericIconComponent";
import { Button } from "../ui/button";
+import {
+ DropdownMenu,
+ DropdownMenuContent,
+ DropdownMenuItem,
+ DropdownMenuLabel,
+ DropdownMenuSeparator,
+ DropdownMenuTrigger,
+} from "../ui/dropdown-menu";
import { Separator } from "../ui/separator";
import MenuBar from "./components/menuBar";
@@ -17,7 +26,7 @@ export default function Header(): JSX.Element {
const { dark, setDark } = useContext(darkContext);
const { notificationCenter } = useContext(alertContext);
const location = useLocation();
- const { logout, autoLogin, isAdmin } = useContext(AuthContext);
+ const { logout, autoLogin, isAdmin, userData } = useContext(AuthContext);
const { stars } = useContext(darkContext);
const navigate = useNavigate();
@@ -31,40 +40,6 @@ export default function Header(): JSX.Element {
{flows.findIndex((f) => tabId === f.id) !== -1 && tabId !== "" && (
)}
- {!autoLogin && location.pathname !== `/flow/${tabId}` && (
- {
- logout();
- navigate("/login");
- }}
- className="text-sm font-medium text-muted-foreground transition-colors hover:text-primary cursor-pointer mx-5"
- >
- Sign out
-
- )}
-
- {location.pathname === "/admin" && (
- {
- navigate("/");
- }}
- className="text-sm font-medium text-muted-foreground transition-colors hover:text-primary cursor-pointer"
- >
- Home
-
- )}
-
- {isAdmin &&
- !autoLogin &&
- location.pathname !== "/admin" &&
- location.pathname !== `/flow/${tabId}` && (
- navigate("/admin")}
- >
- Admin page
-
- )}
@@ -156,6 +131,40 @@ export default function Header(): JSX.Element {
/>
)}
+ {!autoLogin && (
+ <>
+
+
+
+
+
+
+ My Account
+
+ {isAdmin && (
+ navigate("/admin")}>
+ Admin Page
+
+ )}
+ {
+ logout();
+ navigate("/login");
+ }}
+ >
+ Sign Out
+
+
+
+ >
+ )}
diff --git a/src/frontend/src/components/inputComponent/index.tsx b/src/frontend/src/components/inputComponent/index.tsx
index 987c53a8f..46acdc1b0 100644
--- a/src/frontend/src/components/inputComponent/index.tsx
+++ b/src/frontend/src/components/inputComponent/index.tsx
@@ -30,6 +30,7 @@ export default function InputComponent({
{isForm ? (
) : (
{
handleInput({ target: { name: "username", value } });
}}
@@ -129,12 +130,12 @@ export default function LoginPage(): JSX.Element {
-
+
-