From d2b2fe88da6f9a2e74ba23084f4a1382d7eecc4f Mon Sep 17 00:00:00 2001 From: "focp212@naver.com" Date: Fri, 12 Sep 2025 18:00:58 +0900 Subject: [PATCH] .. --- src/entities/transaction/ui/list-item.tsx | 40 +++++++++++++---------- src/shared/ui/filter/button-groups.tsx | 2 ++ src/shared/ui/filter/select.tsx | 2 +- 3 files changed, 26 insertions(+), 18 deletions(-) diff --git a/src/entities/transaction/ui/list-item.tsx b/src/entities/transaction/ui/list-item.tsx index 46169c8..b1ae2cd 100644 --- a/src/entities/transaction/ui/list-item.tsx +++ b/src/entities/transaction/ui/list-item.tsx @@ -112,18 +112,25 @@ export const ListItem = ({ let rs = []; if(transactionCategory === TransactionCategory.AllTransaction){ rs.push( - <> +
{ getTime() } | { stateName } | { mid } - + { + (!!installmentMonth && parseInt(installmentMonth) > 1) && + <> + | + { installmentMonth }개월 할부 + + } +
); } else if(transactionCategory === TransactionCategory.CashReceipt){ rs.push( - <> +
{ getTime() } | { issueStatus } @@ -131,12 +138,12 @@ export const ListItem = ({ { paymentMethod } | { processResult } - +
); } else if(transactionCategory === TransactionCategory.Escrow){ rs.push( - <> +
{ getTime() } | { deliveryStatus } @@ -144,18 +151,25 @@ export const ListItem = ({ { settlementStatus } | { cancelStatus } - + { + (!!installmentMonth && parseInt(installmentMonth) > 1) && + <> + | + { installmentMonth }개월 할부 + + } +
); } else if(transactionCategory === TransactionCategory.Billing){ rs.push( - <> +
{ getTime() } | { processResult } | { paymentMethod } - +
); } return rs; @@ -172,15 +186,7 @@ export const ListItem = ({
{ getTitle() }
-
- { getDetail() } - { (!!installmentMonth && parseInt(installmentMonth) > 1) && - <> - | - { installmentMonth }개월 할부 - - } -
+ { getDetail() }
setter(btnGroups[i]?.value || '') } >{ btnGroups[i]?.name } @@ -22,6 +23,7 @@ export const FilterButtonGroups = ({ for(let i=0;i diff --git a/src/shared/ui/filter/select.tsx b/src/shared/ui/filter/select.tsx index d75be3e..39c629b 100644 --- a/src/shared/ui/filter/select.tsx +++ b/src/shared/ui/filter/select.tsx @@ -16,7 +16,7 @@ export const FilterSelect = ({ for(let i=0;i{ selectOptions[i]?.name } );