diff --git a/ui/app/[locale]/AppMasthead.tsx b/ui/app/[locale]/AppMasthead.tsx index 2e0afefc1..6e2cc604a 100644 --- a/ui/app/[locale]/AppMasthead.tsx +++ b/ui/app/[locale]/AppMasthead.tsx @@ -18,10 +18,12 @@ import { QuestionCircleIcon, } from "@/libs/patternfly/react-icons"; import logo from "@/public/Logo-Red_Hat-AMQ-A-Reverse-RGB.svg"; +import { FeedbackModal } from "@patternfly/react-user-feedback"; import { useSession } from "next-auth/react"; import { useTranslations } from "next-intl"; import Image from "next/image"; import Link from "next/link"; +import { useState } from "react"; import { UserDropdown } from "./UserDropdown"; export function AppMasthead() { @@ -29,71 +31,89 @@ export function AppMasthead() { const { data } = useSession(); const { user } = data || {}; const { toggleSidebar } = useAppLayout(); - + const [isFeedbackModalOpen, setIsFeedbackModalOpen] = useState(false); + const openFeedbackModal = () => { + setIsFeedbackModalOpen(true); + }; + const closeFeedbackModal = () => { + setIsFeedbackModalOpen(false); + }; return ( - - - - - - - - - {t("common.title")} - - - - - - + <> + + + + + + + + + {t("common.title")} + + + + + - -