From 3713273560049d0563a9303c46df6b2b2fde065a Mon Sep 17 00:00:00 2001 From: Sodbileg Gansukh Date: Wed, 13 Dec 2023 14:40:40 +0700 Subject: [PATCH] Dark mode improvements for offers (#19352) fixes PROD-262, PROD-261 --- apps/admin-x-design-system/src/global/SortMenu.tsx | 4 ++-- apps/admin-x-design-system/src/global/form/TextArea.tsx | 2 +- apps/admin-x-design-system/src/global/form/TextField.tsx | 2 +- .../src/components/settings/growth/offers/AddOfferModal.tsx | 4 ++-- .../components/settings/growth/offers/EditOfferModal.tsx | 2 +- .../src/components/settings/growth/offers/OffersIndex.tsx | 6 +++--- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/admin-x-design-system/src/global/SortMenu.tsx b/apps/admin-x-design-system/src/global/SortMenu.tsx index c0bb216a11..49eb41364f 100644 --- a/apps/admin-x-design-system/src/global/SortMenu.tsx +++ b/apps/admin-x-design-system/src/global/SortMenu.tsx @@ -66,7 +66,7 @@ const SortMenu: React.FC = ({ return (
-
Sort by
+
Sort by
{localItems.map(item => ( : null} diff --git a/apps/admin-x-design-system/src/global/form/TextArea.tsx b/apps/admin-x-design-system/src/global/form/TextArea.tsx index 163ebb1b35..d8c8fd3301 100644 --- a/apps/admin-x-design-system/src/global/form/TextArea.tsx +++ b/apps/admin-x-design-system/src/global/form/TextArea.tsx @@ -95,7 +95,7 @@ const TextArea: React.FC = ({ onFocus={handleFocus} {...props}> - {title && {title}} + {title && {title}} {hint && {hint}} {maxLength && Max length is {maxLength}}
diff --git a/apps/admin-x-design-system/src/global/form/TextField.tsx b/apps/admin-x-design-system/src/global/form/TextField.tsx index 5e62848785..83630ce98b 100644 --- a/apps/admin-x-design-system/src/global/form/TextField.tsx +++ b/apps/admin-x-design-system/src/global/form/TextField.tsx @@ -126,7 +126,7 @@ const TextField: React.FC = ({ return (
{field} - {title && {title}} + {title && {title}} {hint && {hint}}
); 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 70cb6ad3e3..8376aa0b19 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 @@ -31,7 +31,7 @@ interface OfferType { } const ButtonSelect: React.FC<{type: OfferType, checked: boolean, onClick: () => void}> = ({type, checked, onClick}) => { - const checkboxClass = checked ? 'bg-black text-white' : 'border border-grey-300'; + const checkboxClass = checked ? 'bg-black text-white dark:bg-white dark:text-black' : 'border border-grey-300 dark:border-grey-800'; return (