Browse Source

fix: 5887 【bcwin网站】客户端中下分记录符号有误

Before 7 months ago
parent
commit
89f91c7afa
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/app/[locale]/(navbar)/transactions/components/Message.tsx

+ 5 - 2
src/app/[locale]/(navbar)/transactions/components/Message.tsx

@@ -22,8 +22,11 @@ const Message = (props: Props) => {
                         <div className={"flex justify-between pb-[0.0694rem]"}>
                             <p>{item.title}</p>
                             <p>
-                                <span className={"text-[green]"}>+ {item.amount}</span>
-                                {/*<span className={"text-[#acacac]"}></span>*/}
+                                {item.amount > 0 ? (
+                                    <span className={"text-[green]"}>+{item.amount}</span>
+                                ) : (
+                                    <span className={"text-[red]"}>{item.amount}</span>
+                                )}
                             </p>
                         </div>
                         <div className={"flex items-center pb-[0.0694rem]"}>