Skip to content

Commit

Permalink
add_voucher_used-info#3972 (#4161)
Browse files Browse the repository at this point in the history
* add_voucher_used-info#3972

* suggested-update_voucher-used
  • Loading branch information
itsjainrishi authored Sep 19, 2023
1 parent 8d75629 commit d4e3052
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions locale/defaultMessages.json
Original file line number Diff line number Diff line change
Expand Up @@ -6326,6 +6326,10 @@
"context": "sort shipping methods by zone, section header",
"string": "Shipping By Zone"
},
"h65vZI": {
"context": "times voucher used",
"string": "Used"
},
"h75GAF": {
"context": "voucher",
"string": "Times used"
Expand Down
9 changes: 9 additions & 0 deletions src/discounts/components/VoucherSummary/VoucherSummary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,15 @@ const VoucherSummary: React.FC<VoucherSummaryProps> = ({
<Skeleton />,
)}
</Typography>
<FormSpacer />
<Typography variant="caption">
<FormattedMessage
id="h65vZI"
defaultMessage="Used"
description="times voucher used"
/>
</Typography>
<Typography>{voucher?.used ?? <Skeleton />}</Typography>
</CardContent>
</Card>
);
Expand Down

0 comments on commit d4e3052

Please sign in to comment.