Client: PortalSettings: Customization: delete useless
This commit is contained in:
parent
35f5ae7c0b
commit
c8b75c10ea
@ -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>
|
||||
);
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user