Replace toggle button with static count display
This commit is contained in:
@@ -261,15 +261,15 @@ export default function Review() {
|
||||
<div className="action-col">
|
||||
{deal.transactions && deal.transactions.length > 0 && (
|
||||
<button
|
||||
className="btn btn-secondary btn-sm"
|
||||
onClick={() => toggleExpand(deal.id)}
|
||||
className="tag "
|
||||
// onClick={() => toggleExpand(deal.id)}
|
||||
title="查看关联明细"
|
||||
>
|
||||
{expandedDeals.has(deal.id) ? (
|
||||
<ChevronDown size={12} />
|
||||
) : (
|
||||
<ChevronRight size={12} />
|
||||
)}{" "}
|
||||
{/* {expandedDeals.has(deal.id) ? (*/}
|
||||
{/* <ChevronDown size={12} />*/}
|
||||
{/* ) : (*/}
|
||||
{/* <ChevronRight size={12} />*/}
|
||||
{/* )}{" "}*/}
|
||||
{deal.transactions.length}笔
|
||||
</button>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user