31 lines
704 B
TypeScript
31 lines
704 B
TypeScript
import { LinkPaymentShippingListProps } from '../../model/types';
|
|
import { ListDateGroup } from '../list-date-group';
|
|
|
|
export const LinkPaymentShippingHistoryList = ({
|
|
additionalServiceCategory,
|
|
listItems
|
|
}: LinkPaymentShippingListProps) => {
|
|
|
|
const getListDateGroup = () => {
|
|
let rs = [];
|
|
for (const [key, value] of Object.entries(listItems)) {
|
|
rs.push(
|
|
<ListDateGroup
|
|
additionalServiceCategory={additionalServiceCategory}
|
|
key={key}
|
|
date={key}
|
|
items={value}
|
|
></ListDateGroup>
|
|
);
|
|
}
|
|
return rs;
|
|
};
|
|
|
|
return (
|
|
<>
|
|
<div className="transaction-list">
|
|
{getListDateGroup()}
|
|
</div>
|
|
</>
|
|
)
|
|
}; |