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}