Removed deactivate method from User Settings tabs (#3271)

Этот коммит содержится в:
Harrison Healey
2016-06-07 08:20:58 -04:00
коммит произвёл Joram Wilander
родитель 22245eee70
Коммит d9e8eb619a
3 изменённых файлов: 4 добавлений и 30 удалений

Просмотреть файл

@@ -41,12 +41,15 @@ export default class UserSettingsDisplay extends React.Component {
this.handleFont = this.handleFont.bind(this);
this.updateSection = this.updateSection.bind(this);
this.updateState = this.updateState.bind(this);
this.deactivate = this.deactivate.bind(this);
this.createCollapseSection = this.createCollapseSection.bind(this);
this.state = getDisplayStateFromStores();
}
componentWillUnmount() {
Utils.applyFont(PreferenceStore.get(Preferences.CATEGORY_DISPLAY_SETTINGS, 'selected_font', Constants.DEFAULT_FONT));
}
handleSubmit() {
const userId = UserStore.getCurrentId();
@@ -136,10 +139,6 @@ export default class UserSettingsDisplay extends React.Component {
}
}
deactivate() {
this.updateState();
}
createCollapseSection() {
if (this.props.activeSection === 'collapse') {
const collapseFormat = [false, false];