Remove flair from general user settings tab
Fixes https://github.com/vector-im/riot-web/issues/8327
This commit is contained in:
parent
7bbc302975
commit
a1f1dde9a4
1 changed files with 0 additions and 21 deletions
|
@ -16,11 +16,6 @@ limitations under the License.
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import {_t} from "../../../../languageHandler";
|
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 ProfileSettings from "../ProfileSettings";
|
||||||
import EmailAddresses from "../EmailAddresses";
|
import EmailAddresses from "../EmailAddresses";
|
||||||
import PhoneNumbers from "../PhoneNumbers";
|
import PhoneNumbers from "../PhoneNumbers";
|
||||||
|
@ -37,10 +32,6 @@ const Modal = require("../../../../Modal");
|
||||||
const dis = require("../../../../dispatcher");
|
const dis = require("../../../../dispatcher");
|
||||||
|
|
||||||
export default class GeneralUserSettingsTab extends React.Component {
|
export default class GeneralUserSettingsTab extends React.Component {
|
||||||
static childContextTypes = {
|
|
||||||
matrixClient: PropTypes.instanceOf(MatrixClient),
|
|
||||||
};
|
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
|
@ -50,12 +41,6 @@ export default class GeneralUserSettingsTab extends React.Component {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
getChildContext() {
|
|
||||||
return {
|
|
||||||
matrixClient: MatrixClientPeg.get(),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
_onLanguageChange = (newLanguage) => {
|
_onLanguageChange = (newLanguage) => {
|
||||||
if (this.state.language === newLanguage) return;
|
if (this.state.language === newLanguage) return;
|
||||||
|
|
||||||
|
@ -105,16 +90,10 @@ export default class GeneralUserSettingsTab extends React.Component {
|
||||||
};
|
};
|
||||||
|
|
||||||
_renderProfileSection() {
|
_renderProfileSection() {
|
||||||
// HACK/TODO: Using DragDropContext feels wrong, but we need it.
|
|
||||||
return (
|
return (
|
||||||
<div className="mx_SettingsTab_section">
|
<div className="mx_SettingsTab_section">
|
||||||
<span className="mx_SettingsTab_subheading">{_t("Profile")}</span>
|
<span className="mx_SettingsTab_subheading">{_t("Profile")}</span>
|
||||||
<ProfileSettings />
|
<ProfileSettings />
|
||||||
|
|
||||||
<span className="mx_SettingsTab_subheading">{_t("Flair")}</span>
|
|
||||||
<DragDropContext>
|
|
||||||
<GroupUserSettings />
|
|
||||||
</DragDropContext>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue