Client: PortalSettings: Common: fix link color

This commit is contained in:
Viktor Fomin 2023-05-17 14:31:02 +03:00
parent a5980de23a
commit 42eefcc5c9
2 changed files with 14 additions and 15 deletions

View File

@ -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 = (
<DNSSettingsTooltip t={t} theme={theme} helpLink={helpLink} />
<DNSSettingsTooltip
t={t}
currentColorScheme={currentColorScheme}
helpLink={helpLink}
/>
);
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))));

View File

@ -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.
</Trans>
<Link
color={theme.client.settings.common.linkColorHelp}
color={currentColorScheme.main.accent}
className="display-block font-size"
isHovered={true}
target="_blank"