diff --git a/components/post/PostContentCard.tsx b/components/post/PostContentCard.tsx index eb5ee78ceebf5ffe8ef6e10f4dad3099ec6760d8..95bf47f4b476cf9b4ffbab8c0d8d2891de2a14a9 100644 --- a/components/post/PostContentCard.tsx +++ b/components/post/PostContentCard.tsx @@ -1,7 +1,10 @@ import Link from "next/link"; import { ChevronDown, ChevronUp, ThumbsUp } from "lucide-react"; -import { formatAndDelocalizeFromTime ,formatAndDelocalizeTime } from "@/utils/TimeUtils"; +import { + formatAndDelocalizeFromTime, + formatAndDelocalizeTime, +} from "@/utils/TimeUtils"; import { Card, CardHeader, CardContent, CardFooter } from "../ui/card"; import { changeHBDToDollarsDisplay } from "@/utils/StringUtils"; import Hive from "@/types/Hive"; @@ -36,7 +39,8 @@ const PostContentCard: React.FC = ({ }) => { if (!data) return; - const { category, author, created, body, title, total_payout_value } = data; + const { category, author, created, body, title, pending_payout_value } = data; + return (
@@ -49,26 +53,26 @@ const PostContentCard: React.FC = ({ @{author} - - - - - {formatAndDelocalizeFromTime(created)} - - -
-

{formatAndDelocalizeTime(created)}

-
-
-
-
+ + + + {formatAndDelocalizeFromTime(created)} + + +
+

{formatAndDelocalizeTime(created)}

+
+
+
+
-
{changeHBDToDollarsDisplay(total_payout_value)}
+
{changeHBDToDollarsDisplay(pending_payout_value)}
{title && (