From 6462f8f2ab803d96cb8c8c555b5796514a4e4563 Mon Sep 17 00:00:00 2001 From: Sodbileg Gansukh Date: Wed, 13 Dec 2023 22:26:28 +0700 Subject: [PATCH] Fixed minor design issues in offers (#19363) fixes PROD-271, PROD-273 --- .../src/components/settings/growth/offers/AddOfferModal.tsx | 2 +- .../src/components/settings/growth/offers/EditOfferModal.tsx | 1 + .../src/components/settings/growth/offers/OffersIndex.tsx | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/admin-x-settings/src/components/settings/growth/offers/AddOfferModal.tsx b/apps/admin-x-settings/src/components/settings/growth/offers/AddOfferModal.tsx index 98241cb5e0..d56cd40a1b 100644 --- a/apps/admin-x-settings/src/components/settings/growth/offers/AddOfferModal.tsx +++ b/apps/admin-x-settings/src/components/settings/growth/offers/AddOfferModal.tsx @@ -623,7 +623,7 @@ const AddOfferModal = () => { updateRoute('offers'); }} backDropClick={false} - cancelLabel='Cancel' + cancelLabel='Close' deviceSelector={false} dirty={saveState === 'unsaved'} height='full' diff --git a/apps/admin-x-settings/src/components/settings/growth/offers/EditOfferModal.tsx b/apps/admin-x-settings/src/components/settings/growth/offers/EditOfferModal.tsx index 2b3d04c909..dbaa4aad34 100644 --- a/apps/admin-x-settings/src/components/settings/growth/offers/EditOfferModal.tsx +++ b/apps/admin-x-settings/src/components/settings/growth/offers/EditOfferModal.tsx @@ -254,6 +254,7 @@ const EditOfferModal: React.FC<{id: string}> = ({id}) => { updateRoute('offers'); }} backDropClick={false} + cancelLabel='Close' deviceSelector={false} dirty={saveState === 'unsaved'} height='full' diff --git a/apps/admin-x-settings/src/components/settings/growth/offers/OffersIndex.tsx b/apps/admin-x-settings/src/components/settings/growth/offers/OffersIndex.tsx index f2d03240a8..99b8b1a719 100644 --- a/apps/admin-x-settings/src/components/settings/growth/offers/OffersIndex.tsx +++ b/apps/admin-x-settings/src/components/settings/growth/offers/OffersIndex.tsx @@ -200,7 +200,7 @@ export const OffersIndexModal = () => { const buttons: ButtonProps[] = [ { key: 'cancel-modal', - label: 'Cancel', + label: 'Close', onClick: () => { modal.remove(); updateRoute('offers'); @@ -245,7 +245,7 @@ export const OffersIndexModal = () => {

{offersTabs.find(tab => tab.id === selectedTab)?.title} offers

-
+