From 8bdaff57caeba674b1c0247318c48fa39fa0e70b Mon Sep 17 00:00:00 2001 From: Lindy <33708359+Lindysen@users.noreply.github.com> Date: Tue, 28 Jul 2020 23:00:55 +0800 Subject: [PATCH] style(Coupon): insert a space after currency (#6888) * feat(Coupon): add space * feat(couponCell): update unit test --- src/coupon-cell/index.tsx | 2 +- src/coupon-list/test/__snapshots__/index.spec.js.snap | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coupon-cell/index.tsx b/src/coupon-cell/index.tsx index dbad85936..f4d763ee7 100644 --- a/src/coupon-cell/index.tsx +++ b/src/coupon-cell/index.tsx @@ -27,7 +27,7 @@ function formatValue(props: CouponCellProps) { if (coupon) { const value = coupon.value || coupon.denominations || 0; - return `-${currency}${(value / 100).toFixed(2)}`; + return `-${currency} ${(value / 100).toFixed(2)}`; } return coupons.length === 0 ? t('tips') : t('count', coupons.length); diff --git a/src/coupon-list/test/__snapshots__/index.spec.js.snap b/src/coupon-list/test/__snapshots__/index.spec.js.snap index cbbd843d0..b6db0680b 100644 --- a/src/coupon-list/test/__snapshots__/index.spec.js.snap +++ b/src/coupon-list/test/__snapshots__/index.spec.js.snap @@ -49,7 +49,7 @@ exports[`render coupon cell 1`] = ` exports[`render coupon cell with coupon 1`] = `
优惠券
-
-¥1.00
+
-¥ 1.00
`;