From 8160c5fdce7fd4580c86cd8545dc9bb4ccd272d5 Mon Sep 17 00:00:00 2001 From: Lukas Date: Wed, 5 Feb 2025 18:19:47 +0200 Subject: [PATCH] Fix post payout value --- components/post/PostContentCard.tsx | 46 ++++++++++++++++------------- 1 file changed, 25 insertions(+), 21 deletions(-) diff --git a/components/post/PostContentCard.tsx b/components/post/PostContentCard.tsx index eb5ee78ce..95bf47f4b 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 && ( -- GitLab