Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { GridTable } from "@dashboard/components/GridTable";
import Money from "@dashboard/components/Money";
import { UserAvatar } from "@dashboard/components/UserAvatar";
import { getUserInitials, getUserName, User } from "@dashboard/misc";
import { refundGridMessages } from "@dashboard/orders/components/OrderDetailsRefundTable/messages";
import { orderTransactionRefundEditUrl } from "@dashboard/orders/urls";
import {
OrderRefundDisplay,
Expand All @@ -23,6 +24,7 @@ interface OrderDetailsRefundLineProps {
export const OrderDetailsRefundLine = ({ refund, orderId }: OrderDetailsRefundLineProps) => {
const isEditable = OrderRefundsViewModel.canEditRefund(refund);
const intl = useIntl();
const noReasonTypeNorNote = !refund.reasonType && !refund.reasonNote;

return (
<GridTable.Row key={refund.id}>
Expand All @@ -40,6 +42,9 @@ export const OrderDetailsRefundLine = ({ refund, orderId }: OrderDetailsRefundLi
</GridTable.Cell>
<GridTable.Cell>
<Box>
{noReasonTypeNorNote && (
<Text size={2}>{intl.formatMessage(refundGridMessages.manualRefund)}</Text>
)}
{refund.reasonType && (
<Text size={2} fontWeight="medium">
{refund.reasonType}
Expand Down
Loading