diff --git a/components/TestimonyCard/TestimonyItem.tsx b/components/TestimonyCard/TestimonyItem.tsx index 5d072d235..c619bb03b 100644 --- a/components/TestimonyCard/TestimonyItem.tsx +++ b/components/TestimonyCard/TestimonyItem.tsx @@ -1,5 +1,5 @@ import { useTranslation } from "next-i18next" -import { ReactNode, useState } from "react" +import { MouseEventHandler, ReactNode, useState } from "react" import { ButtonProps } from "react-admin" import { ToastContainer } from "react-bootstrap" import Image from "react-bootstrap/Image" @@ -21,17 +21,20 @@ import { UserInfoHeader } from "./UserInfoHeader" type FooterButtonProps = Omit & { className?: string children?: ReactNode + onClick?: MouseEventHandler | undefined } const FooterButton = ({ variant = "text", className, - children + children, + onClick }: FooterButtonProps) => { return ( @@ -135,6 +138,7 @@ export const TestimonyItem = ({ {canExpand && ( setShowAllTestimony(true)} > @@ -168,7 +172,11 @@ export const TestimonyItem = ({ )} - setIsReporting(true)}> + setIsReporting(true)} + > {t("reportModal.report")}