/* Copyright 2019 New Vector Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ import React from 'react'; import PropTypes from 'prop-types'; import {Tab, TabbedView} from "../../structures/TabbedView"; import {_t, _td} from "../../../languageHandler"; import AccessibleButton from "../elements/AccessibleButton"; import GeneralSettingsTab from "../settings/tabs/GeneralSettingsTab"; import dis from '../../../dispatcher'; export class TempTab extends React.Component { // TODO: Ditch this static propTypes = { onClose: PropTypes.func.isRequired, }; componentDidMount(): void { dis.dispatch({action: "view_old_user_settings"}); this.props.onClose(); } render() { return
Hello World
; } } export default class UserSettingsDialog extends React.Component { static propTypes = { onFinished: PropTypes.func.isRequired, }; _getTabs() { return [ new Tab(_td("General"), , ), new Tab(_td("Notifications"), ,
Notifications Test
), new Tab(_td("Preferences"), ,
Preferences Test
), new Tab(_td("Voice & Video"), ,
Voice Test
), new Tab(_td("Security & Privacy"), ,
Security Test
), new Tab(_td("Help & About"), ,
Help Test
), new Tab(_td("Visit old settings"), , ), ]; } render() { return (
{_t("Settings")}
// ); } }