diff --git a/src/components/ProductUpdates.tsx b/src/components/ProductUpdates.tsx index c8247ff8..b67d324a 100644 --- a/src/components/ProductUpdates.tsx +++ b/src/components/ProductUpdates.tsx @@ -15,6 +15,7 @@ import { import { useTranslations } from "next-intl"; import { Transition } from "@headlessui/react"; import * as React from "react"; +import { Popover, PopoverContent, PopoverTrigger } from "./ui/popover"; export default function ProductUpdates({ isCollapsed @@ -88,7 +89,7 @@ export default function ProductUpdates({ )} - 0} /> @@ -107,9 +108,12 @@ export default function ProductUpdates({ ); } -type ProductUpdatesPopupProps = { updates: ProductUpdate[]; show: boolean }; +type ProductUpdatesListPopupProps = { updates: ProductUpdate[]; show: boolean }; -function ProductUpdatesPopup({ updates, show }: ProductUpdatesPopupProps) { +function ProductUpdatesListPopup({ + updates, + show +}: ProductUpdatesListPopupProps) { const [open, setOpen] = React.useState(false); const t = useTranslations(); @@ -121,41 +125,44 @@ function ProductUpdatesPopup({ updates, show }: ProductUpdatesPopupProps) { }, [show]); return ( - -
-
- -
-
-

{t("productUpdateWhatsNew")}

- + + +
- -
-
+
+ +
+
+

+ {t("productUpdateWhatsNew")} +

+ + {updates[0].contents} + +
+
+ +
+ + + + Hello + + + ); }