|
|
@ -23,46 +23,35 @@ export default function TransactionDetailItem({ |
|
|
|
color={detailTitleColor} |
|
|
|
color={detailTitleColor} |
|
|
|
fontWeight={FONT_WEIGHT.BOLD} |
|
|
|
fontWeight={FONT_WEIGHT.BOLD} |
|
|
|
variant={TYPOGRAPHY.H6} |
|
|
|
variant={TYPOGRAPHY.H6} |
|
|
|
className="transaction-detail-item__title" |
|
|
|
|
|
|
|
> |
|
|
|
> |
|
|
|
{detailTitle} |
|
|
|
{detailTitle} |
|
|
|
</Typography> |
|
|
|
</Typography> |
|
|
|
{detailText && ( |
|
|
|
<div className="transaction-detail-item__detail-values"> |
|
|
|
|
|
|
|
{detailText && ( |
|
|
|
|
|
|
|
<Typography variant={TYPOGRAPHY.H6} color={COLORS.UI4}> |
|
|
|
|
|
|
|
{detailText} |
|
|
|
|
|
|
|
</Typography> |
|
|
|
|
|
|
|
)} |
|
|
|
<Typography |
|
|
|
<Typography |
|
|
|
|
|
|
|
color={COLORS.BLACK} |
|
|
|
|
|
|
|
fontWeight={FONT_WEIGHT.BOLD} |
|
|
|
variant={TYPOGRAPHY.H6} |
|
|
|
variant={TYPOGRAPHY.H6} |
|
|
|
className="transaction-detail-item__detail-text" |
|
|
|
margin={[1, 1]} |
|
|
|
color={COLORS.UI4} |
|
|
|
|
|
|
|
> |
|
|
|
> |
|
|
|
{detailText} |
|
|
|
{detailTotal} |
|
|
|
</Typography> |
|
|
|
</Typography> |
|
|
|
)} |
|
|
|
</div> |
|
|
|
<Typography |
|
|
|
|
|
|
|
color={COLORS.BLACK} |
|
|
|
|
|
|
|
fontWeight={FONT_WEIGHT.BOLD} |
|
|
|
|
|
|
|
variant={TYPOGRAPHY.H6} |
|
|
|
|
|
|
|
className="transaction-detail-item__total" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{detailTotal} |
|
|
|
|
|
|
|
</Typography> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="transaction-detail-item__row"> |
|
|
|
<div className="transaction-detail-item__row"> |
|
|
|
{React.isValidElement(subTitle) ? ( |
|
|
|
{React.isValidElement(subTitle) ? ( |
|
|
|
<div className="transaction-detail-item__subtitle">{subTitle}</div> |
|
|
|
<div>{subTitle}</div> |
|
|
|
) : ( |
|
|
|
) : ( |
|
|
|
<Typography |
|
|
|
<Typography variant={TYPOGRAPHY.H7} color={COLORS.UI4}> |
|
|
|
variant={TYPOGRAPHY.H7} |
|
|
|
|
|
|
|
className="transaction-detail-item__subtitle" |
|
|
|
|
|
|
|
color={COLORS.UI4} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{subTitle} |
|
|
|
{subTitle} |
|
|
|
</Typography> |
|
|
|
</Typography> |
|
|
|
)} |
|
|
|
)} |
|
|
|
|
|
|
|
|
|
|
|
<Typography |
|
|
|
<Typography variant={TYPOGRAPHY.H7} color={COLORS.UI4} align="end"> |
|
|
|
variant={TYPOGRAPHY.H7} |
|
|
|
|
|
|
|
color={COLORS.UI4} |
|
|
|
|
|
|
|
className="transaction-detail-item__subtext" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{subText} |
|
|
|
{subText} |
|
|
|
</Typography> |
|
|
|
</Typography> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|