From a113c9202f827018b18e3338eb532ebe16c32f24 Mon Sep 17 00:00:00 2001 From: Jonatan Witoszek Date: Wed, 25 May 2022 10:53:19 +0200 Subject: [PATCH] Update voucher creation text for "Only once per order" (#2059) * Update voucher creation text for "Only once per order" * Update snapshots --- locale/defaultMessages.json | 8 ++++---- src/discounts/components/VoucherValue/VoucherValue.tsx | 4 ++-- src/storybook/__snapshots__/Stories.test.ts.snap | 10 +++++----- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/locale/defaultMessages.json b/locale/defaultMessages.json index 23db50c16..9a05135e6 100644 --- a/locale/defaultMessages.json +++ b/locale/defaultMessages.json @@ -928,10 +928,6 @@ "context": "e-mail or full name", "string": "Customer" }, - "5c2JVF": { - "context": "voucher application, switch button", - "string": "Only once per order" - }, "5dLpx0": { "context": "references attribute type", "string": "References" @@ -4638,6 +4634,10 @@ "context": "attribute can be searched in storefront", "string": "Use as filter" }, + "Y3zr/B": { + "context": "voucher application, switch button", + "string": "Apply only to a single cheapest eligible product" + }, "Y4cy0i": { "context": "dialog header", "string": "Ending preorder" diff --git a/src/discounts/components/VoucherValue/VoucherValue.tsx b/src/discounts/components/VoucherValue/VoucherValue.tsx index d00af0b3f..4dc6a8514 100644 --- a/src/discounts/components/VoucherValue/VoucherValue.tsx +++ b/src/discounts/components/VoucherValue/VoucherValue.tsx @@ -194,8 +194,8 @@ const VoucherValue: React.FC = props => { label={ <> diff --git a/src/storybook/__snapshots__/Stories.test.ts.snap b/src/storybook/__snapshots__/Stories.test.ts.snap index 953ae56de..4ba83cda5 100644 --- a/src/storybook/__snapshots__/Stories.test.ts.snap +++ b/src/storybook/__snapshots__/Stories.test.ts.snap @@ -90021,7 +90021,7 @@ exports[`Storyshots Views / Discounts / Voucher create default 1`] = ` - Only once per order + Apply only to a single cheapest eligible product
@@ -91594,7 +91594,7 @@ exports[`Storyshots Views / Discounts / Voucher create form errors 1`] = ` - Only once per order + Apply only to a single cheapest eligible product
@@ -93313,7 +93313,7 @@ exports[`Storyshots Views / Discounts / Voucher details default 1`] = ` - Only once per order + Apply only to a single cheapest eligible product
@@ -95665,7 +95665,7 @@ exports[`Storyshots Views / Discounts / Voucher details form errors 1`] = ` - Only once per order + Apply only to a single cheapest eligible product
@@ -98038,7 +98038,7 @@ exports[`Storyshots Views / Discounts / Voucher details loading 1`] = ` - Only once per order + Apply only to a single cheapest eligible product