Skip to content

Commit b845d73

Browse files
feat: show day, month and year in confirm product details summary (#869)
1 parent 9b2a61b commit b845d73

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/components/product/confirmProductDetailsPage/ConfirmProductDetails.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,13 @@ export default function ConfirmProductDetails({
425425
<ContentValue tag="p">
426426
{redemptionPeriod[0] && redemptionPeriod[1] && (
427427
<>
428-
{dayjs(redemptionPeriod[0]).format("MMM DD")} -{" "}
429-
{dayjs(redemptionPeriod[1]).format("MMM DD")}
428+
{dayjs(redemptionPeriod[0]).format(
429+
CONFIG.shortDateFormat
430+
)}{" "}
431+
-{" "}
432+
{dayjs(redemptionPeriod[1]).format(
433+
CONFIG.shortDateFormat
434+
)}
430435
</>
431436
)}
432437
</ContentValue>
@@ -444,11 +449,11 @@ export default function ConfirmProductDetails({
444449
{offerValidityPeriod[0] && offerValidityPeriod[1] && (
445450
<>
446451
{dayjs(offerValidityPeriod[0]).format(
447-
CONFIG.shortMonthWithDay
452+
CONFIG.shortDateFormat
448453
)}{" "}
449454
-{" "}
450455
{dayjs(offerValidityPeriod[1]).format(
451-
CONFIG.shortMonthWithDay
456+
CONFIG.shortDateFormat
452457
)}
453458
</>
454459
)}

0 commit comments

Comments
 (0)