diff --git a/src/skins/vector/skindex.js b/src/skins/vector/skindex.js index 87baeffb..7c7468c7 100644 --- a/src/skins/vector/skindex.js +++ b/src/skins/vector/skindex.js @@ -31,6 +31,7 @@ skin['rooms.RoomTile'] = require('../../components/views/rooms/RoomDNDView'); skin['structures.CreateRoom'] = require('matrix-react-sdk/lib/components/structures/CreateRoom'); +skin['structures.UserSettings'] = require('matrix-react-sdk/lib/components/structures/UserSettings'); // TODO: Fix this so matrix-react-sdk stuff is in react SDK skindex? skin['avatars.RoomAvatar'] = require('matrix-react-sdk/lib/components/views/avatars/RoomAvatar'); @@ -92,7 +93,6 @@ skin['organisms.RoomDirectory'] = require('./views/organisms/RoomDirectory'); skin['organisms.RoomList'] = require('./views/organisms/RoomList'); skin['organisms.RoomSubList'] = require('./views/organisms/RoomSubList'); skin['organisms.RoomView'] = require('./views/organisms/RoomView'); -skin['organisms.UserSettings'] = require('./views/organisms/UserSettings'); skin['organisms.ViewSource'] = require('./views/organisms/ViewSource'); skin['pages.CompatibilityPage'] = require('./views/pages/CompatibilityPage'); skin['pages.MatrixChat'] = require('./views/pages/MatrixChat'); diff --git a/src/skins/vector/views/organisms/UserSettings.js b/src/skins/vector/views/organisms/UserSettings.js deleted file mode 100644 index d99a391a..00000000 --- a/src/skins/vector/views/organisms/UserSettings.js +++ /dev/null @@ -1,124 +0,0 @@ -/* -Copyright 2015 OpenMarket 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. -*/ - -'use strict'; - -var React = require('react'); -var sdk = require('matrix-react-sdk') -var MatrixClientPeg = require('matrix-react-sdk/lib/MatrixClientPeg'); - -var UserSettingsController = require('matrix-react-sdk/lib/controllers/organisms/UserSettings') - -var Modal = require('matrix-react-sdk/lib/Modal'); - -module.exports = React.createClass({ - displayName: 'UserSettings', - mixins: [UserSettingsController], - - editAvatar: function() { - var url = MatrixClientPeg.get().mxcUrlToHttp(this.state.avatarUrl); - var ChangeAvatar = sdk.getComponent('settings.ChangeAvatar'); - var avatarDialog = ( -