Skip to content

Commit

Permalink
fix: Truncate cols of connector transaction ID in Payment ops (#1855)
Browse files Browse the repository at this point in the history
  • Loading branch information
kanikabansal-juspay authored Dec 9, 2024
1 parent 70881b4 commit b481bd8
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions src/screens/Transaction/Order/OrderEntity.res
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,14 @@ let getCellForSummary = (order, summaryColType): Table.cell => {
| OrderQuantity => Text(order.order_quantity)
| ProductName => Text(order.product_name)
| ErrorMessage => Text(order.error_message)
| ConnectorTransactionID => DisplayCopyCell(order.connector_transaction_id)
| ConnectorTransactionID =>
CustomCell(
<HelperComponents.CopyTextCustomComp
customTextCss="max-w-xs truncate whitespace-nowrap"
displayValue=order.connector_transaction_id
/>,
"",
)
}
}

Expand Down Expand Up @@ -715,7 +722,14 @@ let getCell = (order, colType: colType): Table.cell => {
| CancellationReason => Text(order.cancellation_reason)
| ErrorCode => Text(order.error_code)
| ErrorMessage => Text(order.error_message)
| ConnectorTransactionID => Text(order.connector_transaction_id)
| ConnectorTransactionID =>
CustomCell(
<HelperComponents.CopyTextCustomComp
customTextCss="max-w-xs truncate whitespace-nowrap"
displayValue=order.connector_transaction_id
/>,
"",
)
| ProfileId => Text(order.profile_id)
| Refunds =>
Text(
Expand Down

0 comments on commit b481bd8

Please sign in to comment.