From a1f1dde9a4948bd92eb38e6f12fa8b597643c542 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 31 Jan 2019 21:44:34 -0700 Subject: [PATCH] Remove flair from general user settings tab Fixes https://github.com/vector-im/riot-web/issues/8327 --- .../settings/tabs/GeneralUserSettingsTab.js | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/src/components/views/settings/tabs/GeneralUserSettingsTab.js b/src/components/views/settings/tabs/GeneralUserSettingsTab.js index a504953cab..bfcc7b945c 100644 --- a/src/components/views/settings/tabs/GeneralUserSettingsTab.js +++ b/src/components/views/settings/tabs/GeneralUserSettingsTab.js @@ -16,11 +16,6 @@ limitations under the License. import React from 'react'; import {_t} from "../../../../languageHandler"; -import MatrixClientPeg from "../../../../MatrixClientPeg"; -import GroupUserSettings from "../../groups/GroupUserSettings"; -import PropTypes from "prop-types"; -import {MatrixClient} from "matrix-js-sdk"; -import { DragDropContext } from 'react-beautiful-dnd'; import ProfileSettings from "../ProfileSettings"; import EmailAddresses from "../EmailAddresses"; import PhoneNumbers from "../PhoneNumbers"; @@ -37,10 +32,6 @@ const Modal = require("../../../../Modal"); const dis = require("../../../../dispatcher"); export default class GeneralUserSettingsTab extends React.Component { - static childContextTypes = { - matrixClient: PropTypes.instanceOf(MatrixClient), - }; - constructor() { super(); @@ -50,12 +41,6 @@ export default class GeneralUserSettingsTab extends React.Component { }; } - getChildContext() { - return { - matrixClient: MatrixClientPeg.get(), - }; - } - _onLanguageChange = (newLanguage) => { if (this.state.language === newLanguage) return; @@ -105,16 +90,10 @@ export default class GeneralUserSettingsTab extends React.Component { }; _renderProfileSection() { - // HACK/TODO: Using DragDropContext feels wrong, but we need it. return (
{_t("Profile")} - - {_t("Flair")} - - -
); }