+ Password changed. You're still signed in here; any other sessions have been signed out. +
+ ); + } + + return ( + + ); +} + +export function ChangePasswordDialog() { + return ( + + ); +} diff --git a/csv-table-hub-main/src/components/session-menu.tsx b/csv-table-hub-main/src/components/session-menu.tsx index b2a8e4a..7308b21 100644 --- a/csv-table-hub-main/src/components/session-menu.tsx +++ b/csv-table-hub-main/src/components/session-menu.tsx @@ -1,8 +1,9 @@ -// Signed-in user, tenant and role, with sign-out (#96). +// Signed-in user, tenant and role, with change password (#117) and sign-out (#96). import { useNavigate } from "@tanstack/react-router"; import { LogOut } from "lucide-react"; import { Button } from "@/components/ui/button"; import { getSession, signOut } from "@/lib/session"; +import { ChangePasswordDialog } from "@/components/change-password"; export function SessionMenu() { const navigate = useNavigate(); @@ -13,6 +14,7 @@ export function SessionMenu() { {s.username} · {s.tenant} +