Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Use plain dates

dominik-zeglen12b5136ca679
diff --git a/saleor/static/dashboard-next/discounts/components/SaleSummary/SaleSummary.tsx b/saleor/static/dashboard-next/discounts/components/SaleSummary/SaleSummary.tsx
index 0986d3d9c9..c023d17d4b 100644
--- a/saleor/static/dashboard-next/discounts/components/SaleSummary/SaleSummary.tsx
+++ b/saleor/static/dashboard-next/discounts/components/SaleSummary/SaleSummary.tsx
@@ -69,7 +69,8 @@ const SaleSummary: React.StatelessComponent<SaleSummaryProps> = ({
<Typography variant="body2">{i18n.t("End Date")}</Typography>
<Typography>
{maybe<React.ReactNode>(
- () => (sale.endDate === null ? "-" : <Date date={sale.endDate} />),
+ () =>
+ sale.endDate === null ? "-" : <Date date={sale.endDate} plain />,
<Skeleton />
)}
</Typography>
diff --git a/saleor/static/dashboard-next/discounts/components/VoucherSummary/VoucherSummary.tsx b/saleor/static/dashboard-next/discounts/components/VoucherSummary/VoucherSummary.tsx
index ef6c9376bf..ecff947fa5 100644
--- a/saleor/static/dashboard-next/discounts/components/VoucherSummary/VoucherSummary.tsx
+++ b/saleor/static/dashboard-next/discounts/components/VoucherSummary/VoucherSummary.tsx
@@ -83,7 +83,11 @@ const VoucherSummary: React.StatelessComponent<VoucherSummaryProps> = ({
<Typography>
{maybe<React.ReactNode>(
() =>
- voucher.endDate === null ? "-" : <Date date={voucher.endDate} />,
+ voucher.endDate === null ? (
+ "-"
+ ) : (
+ <Date date={voucher.endDate} plain />
+ ),
<Skeleton />
)}
</Typography>