mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-22 06:51:21 +02:00
Revert "Use GeminiScrollbarWrapper in Flair settings of UserSettings"
This reverts commit 3b5fb3ae3015b1bae0bf483f4360222392ad419b.
This commit is contained in:
parent
8b2446f803
commit
a142f4405a
@ -16,6 +16,7 @@ limitations under the License.
|
|||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
|
import GeminiScrollbar from 'react-gemini-scrollbar';
|
||||||
import sdk from '../../../index';
|
import sdk from '../../../index';
|
||||||
import { MatrixClient } from 'matrix-js-sdk';
|
import { MatrixClient } from 'matrix-js-sdk';
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
@ -54,15 +55,14 @@ export default React.createClass({
|
|||||||
text = _t('Loading...');
|
text = _t('Loading...');
|
||||||
} else if (groups.length > 0) {
|
} else if (groups.length > 0) {
|
||||||
const GroupPublicityToggle = sdk.getComponent('groups.GroupPublicityToggle');
|
const GroupPublicityToggle = sdk.getComponent('groups.GroupPublicityToggle');
|
||||||
const GeminiScrollbarWrapper = sdk.getComponent('elements.GeminiScrollbarWrapper');
|
|
||||||
const groupPublicityToggles = groups.map((groupId, index) => {
|
const groupPublicityToggles = groups.map((groupId, index) => {
|
||||||
return <GroupPublicityToggle key={index} groupId={groupId} />;
|
return <GroupPublicityToggle key={index} groupId={groupId} />;
|
||||||
});
|
});
|
||||||
text = _t('Display your community flair in rooms configured to show it.');
|
text = _t('Display your community flair in rooms configured to show it.');
|
||||||
scrollbox = <div className="mx_GroupUserSettings_groupPublicity_scrollbox">
|
scrollbox = <div className="mx_GroupUserSettings_groupPublicity_scrollbox">
|
||||||
<GeminiScrollbarWrapper>
|
<GeminiScrollbar>
|
||||||
{ groupPublicityToggles }
|
{ groupPublicityToggles }
|
||||||
</GeminiScrollbarWrapper>
|
</GeminiScrollbar>
|
||||||
</div>;
|
</div>;
|
||||||
} else {
|
} else {
|
||||||
text = _t("You're not currently a member of any communities.");
|
text = _t("You're not currently a member of any communities.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user