From 42eefcc5c9130327f52fa9f04a25c7bf58f8e46b Mon Sep 17 00:00:00 2001 From: Viktor Fomin Date: Wed, 17 May 2023 14:31:02 +0300 Subject: [PATCH] Client: PortalSettings: Common: fix link color --- .../common/Customization/dns-settings.js | 25 +++++++++---------- .../common/sub-components/common-tooltips.js | 4 +-- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/packages/client/src/pages/PortalSettings/categories/common/Customization/dns-settings.js b/packages/client/src/pages/PortalSettings/categories/common/Customization/dns-settings.js index 11ee12b2fe..8c4dff057d 100644 --- a/packages/client/src/pages/PortalSettings/categories/common/Customization/dns-settings.js +++ b/packages/client/src/pages/PortalSettings/categories/common/Customization/dns-settings.js @@ -28,10 +28,10 @@ const DNSSettings = (props) => { setIsLoadedDNSSettings, isLoadedPage, helpLink, - theme, initSettings, setIsLoaded, isSettingPaid, + currentColorScheme, } = props; const [hasScroll, setHasScroll] = useState(false); const isLoadedSetting = isLoaded && tReady; @@ -53,9 +53,8 @@ const DNSSettings = (props) => { } // TODO: Remove div with height 64 and remove settings-mobile class - const settingsMobile = document.getElementsByClassName( - "settings-mobile" - )[0]; + const settingsMobile = + document.getElementsByClassName("settings-mobile")[0]; if (settingsMobile) { settingsMobile.style.display = "none"; @@ -96,7 +95,11 @@ const DNSSettings = (props) => { }, [isSmallTablet, setIsCustomizationView]); const tooltipDNSSettingsTooltip = ( - + ); const settingsBlock = ( @@ -169,22 +172,18 @@ const DNSSettings = (props) => { }; export default inject(({ auth, common }) => { - const { theme, helpLink } = auth.settingsStore; - const { - isLoaded, - setIsLoadedDNSSettings, - initSettings, - setIsLoaded, - } = common; + const { helpLink, currentColorScheme } = auth.settingsStore; + const { isLoaded, setIsLoadedDNSSettings, initSettings, setIsLoaded } = + common; const { currentQuotaStore } = auth; const { isBrandingAndCustomizationAvailable } = currentQuotaStore; return { - theme, isLoaded, setIsLoadedDNSSettings, helpLink, initSettings, setIsLoaded, isSettingPaid: isBrandingAndCustomizationAvailable, + currentColorScheme, }; })(withLoading(withTranslation(["Settings", "Common"])(observer(DNSSettings)))); diff --git a/packages/client/src/pages/PortalSettings/categories/common/sub-components/common-tooltips.js b/packages/client/src/pages/PortalSettings/categories/common/sub-components/common-tooltips.js index 8b65c3030d..7df8c6e8fe 100644 --- a/packages/client/src/pages/PortalSettings/categories/common/sub-components/common-tooltips.js +++ b/packages/client/src/pages/PortalSettings/categories/common/sub-components/common-tooltips.js @@ -102,7 +102,7 @@ export const CustomTitlesTooltip = ({ t }) => { export const DNSSettingsTooltip = ({ t, - theme, + currentColorScheme, helpLink, organizationName, }) => { @@ -119,7 +119,7 @@ export const DNSSettingsTooltip = ({ and our specialists will help you with the settings.