diff --git a/components/user_settings/user_settings_display.jsx b/components/user_settings/user_settings_display.jsx
index 06b5f6332182..430cffd06f1d 100644
--- a/components/user_settings/user_settings_display.jsx
+++ b/components/user_settings/user_settings_display.jsx
@@ -254,14 +254,17 @@ export default class UserSettingsDisplay extends React.Component {
];
return (
-
+
);
}
@@ -277,11 +280,14 @@ export default class UserSettingsDisplay extends React.Component {
};
return (
-
+
);
}
@@ -317,7 +323,7 @@ export default class UserSettingsDisplay extends React.Component {
const isEnableLinkPreviews = global.window.mm_config.EnableLinkPreviews === 'true';
let linkPreviewSection = null;
- let divider = null;
+
if (isEnableLinkPreviews) {
linkPreviewSection = this.createSection({
section: 'linkpreview',
@@ -347,7 +353,6 @@ export default class UserSettingsDisplay extends React.Component {
message: 'When available, the first web link in a message will show a preview of the website content below the message.'
}
});
- divider = ;
}
const clockSection = this.createSection({
@@ -448,14 +453,17 @@ export default class UserSettingsDisplay extends React.Component {
userLocale = global.window.mm_config.DefaultClientLocale;
}
languagesSection = (
- {
- this.updateSection('');
- e.preventDefault();
- }}
- />
+
+
{
+ this.updateSection('');
+ e.preventDefault();
+ }}
+ />
+
+
);
} else {
let locale;
@@ -466,31 +474,37 @@ export default class UserSettingsDisplay extends React.Component {
}
languagesSection = (
-
- }
- width='medium'
- describe={locale}
- updateSection={() => {
- this.updateSection('languages');
- }}
- />
+
+
+ }
+ width='medium'
+ describe={locale}
+ updateSection={() => {
+ this.updateSection('languages');
+ }}
+ />
+
+
);
}
let themeSection;
if (global.mm_config.EnableThemeSelection !== 'false') {
themeSection = (
-
+
);
}
@@ -535,17 +549,11 @@ export default class UserSettingsDisplay extends React.Component {
{themeSection}
-
{clockSection}
- {divider}
{linkPreviewSection}
-
{collapseSection}
-
{messageDisplaySection}
-
{channelDisplayModeSection}
-
{languagesSection}
@@ -556,7 +564,6 @@ export default class UserSettingsDisplay extends React.Component {
UserSettingsDisplay.propTypes = {
user: PropTypes.object,
updateSection: PropTypes.func,
- updateTab: PropTypes.func,
activeSection: PropTypes.string,
closeModal: PropTypes.func.isRequired,
collapseModal: PropTypes.func.isRequired,