1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

Make tabs be their own panels

This commit is contained in:
Travis Ralston
2019-01-18 15:07:11 -07:00
parent 5adfc09237
commit 15709040e7
5 changed files with 46 additions and 126 deletions

View File

@@ -16,7 +16,6 @@ limitations under the License.
import React from 'react';
import PropTypes from 'prop-types';
import sdk from '../../../index';
import {Tab, TabbedView} from "../../structures/TabbedView";
import {_td} from "../../../languageHandler";
@@ -27,14 +26,14 @@ export default class UserSettingsDialog extends React.Component {
_getTabs() {
return [
new Tab(_td("General"), <div>General Test</div>),
new Tab(_td("Account"), <div>Account Test</div>),
new Tab(_td("General"), "", <div>General Test</div>),
new Tab(_td("Account"), "", <div>Account Test</div>),
];
}
render() {
return (
<TabbedView onExit={this.props.onFinished} tabs={this._getTabs()} />
<TabbedView tabs={this._getTabs()} />
// <UserSettings
// onClose={this.props.onFinished}
// brand={SdkConfig.get().brand}