Client: PortalSettings: Customization: delete useless

This commit is contained in:
Viktor Fomin 2023-09-11 14:02:00 +03:00
parent 35f5ae7c0b
commit c8b75c10ea
4 changed files with 4 additions and 53 deletions

View File

@ -83,14 +83,6 @@ const DNSSettings = (props) => {
setHasScroll(scrollPortalName);
}
// TODO: Remove div with height 64 and remove settings-mobile class
const settingsMobile =
document.getElementsByClassName("settings-mobile")[0];
if (settingsMobile) {
settingsMobile.style.display = "none";
}
return () => window.removeEventListener("resize", checkInnerWidth);
}, []);
@ -249,11 +241,7 @@ const DNSSettings = (props) => {
{t("Common:LearnMore")}
</Link>
</div>
{(isMobileOnly && isSmallTablet()) || isSmallTablet() ? (
<StyledScrollbar stype="mediumBlack">{settingsBlock}</StyledScrollbar>
) : (
<> {settingsBlock}</>
)}
{settingsBlock}
<div className="send-request-container">{buttonContainer}</div>
</StyledSettingsComponent>
);

View File

@ -235,14 +235,6 @@ const LanguageAndTimeZone = (props) => {
setState((val) => ({ ...val, hasScroll: scrollLngTZSettings }));
}
// TODO: Remove div with height 64 and remove settings-mobile class
const settingsMobile =
document.getElementsByClassName("settings-mobile")[0];
if (settingsMobile) {
settingsMobile.style.display = "none";
}
if (language !== prevProps.current.language) {
i18n.changeLanguage(language).then(() => {
const newLocaleSelectedLanguage =
@ -506,12 +498,7 @@ const LanguageAndTimeZone = (props) => {
{t("Common:LearnMore")}
</Link>
</div>
{(isMobileOnly && isSmallTablet()) || isSmallTablet() ? (
<StyledScrollbar stype="mediumBlack">{settingsBlock}</StyledScrollbar>
) : (
<> {settingsBlock}</>
)}
{settingsBlock}
<SaveCancelButtons
tabIndex={3}
className="save-cancel-buttons"

View File

@ -100,14 +100,6 @@ const PortalRenaming = (props) => {
setHasScroll(scrollPortalName);
}
// TODO: Remove div with height 64 and remove settings-mobile class
const settingsMobile =
document.getElementsByClassName("settings-mobile")[0];
if (settingsMobile) {
settingsMobile.style.display = "none";
}
return () => window.removeEventListener("resize", checkInnerWidth);
}, []);
@ -326,11 +318,7 @@ const PortalRenaming = (props) => {
{t("Common:LearnMore")}
</Link>
</div>
{(isMobileOnly && isSmallTablet()) || isSmallTablet() ? (
<StyledScrollbar stype="mediumBlack">{settingsBlock}</StyledScrollbar>
) : (
<> {settingsBlock}</>
)}
{settingsBlock}
<SaveCancelButtons
tabIndex={11}
id="buttonsPortalRenaming"

View File

@ -135,14 +135,6 @@ const WelcomePageSettings = (props) => {
setState((val) => ({ ...val, hasScroll: scrollLngTZSettings }));
}
// TODO: Remove div with height 64 and remove settings-mobile class
const settingsMobile =
document.getElementsByClassName("settings-mobile")[0];
if (settingsMobile) {
settingsMobile.style.display = "none";
}
if (greetingSettings !== prevProps.greetingSettings) {
setState((val) => ({ ...val, greetingTitle: greetingSettings }));
}
@ -342,11 +334,7 @@ const WelcomePageSettings = (props) => {
{t("Common:LearnMore")}
</Link>
</div>
{(isMobileOnly && isSmallTablet()) || isSmallTablet() ? (
<StyledScrollbar stype="mediumBlack">{settingsBlock}</StyledScrollbar>
) : (
<> {settingsBlock}</>
)}
{settingsBlock}
<SaveCancelButtons
tabIndex={6}
id="buttonsWelcomePage"