|
| 1 | +/* |
| 2 | +Copyright 2015 OpenMarket Ltd |
| 3 | +
|
| 4 | +Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | +you may not use this file except in compliance with the License. |
| 6 | +You may obtain a copy of the License at |
| 7 | +
|
| 8 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +
|
| 10 | +Unless required by applicable law or agreed to in writing, software |
| 11 | +distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | +See the License for the specific language governing permissions and |
| 14 | +limitations under the License. |
| 15 | +*/ |
| 16 | + |
| 17 | +var React = require("react"); |
| 18 | + |
| 19 | +module.exports = React.createClass({ |
| 20 | + displayName: 'VectorCustomServerDialog', |
| 21 | + |
| 22 | + render: function() { |
| 23 | + console.log("State: %s", JSON.stringify(this.state)); |
| 24 | + console.log("Props: %s", JSON.stringify(this.props)); |
| 25 | + return ( |
| 26 | + <div className="mx_ErrorDialog"> |
| 27 | + <div className="mx_ErrorDialogTitle"> |
| 28 | + Custom Server Options |
| 29 | + </div> |
| 30 | + <div className="mx_Dialog_content"> |
| 31 | + <span> |
| 32 | + You can use the custom server options to log into other Matrix |
| 33 | + servers by specifying a different Home server URL. |
| 34 | + <br/> |
| 35 | + This allows you to use Vector with an existing Matrix account on |
| 36 | + a different Home server. |
| 37 | + <br/> |
| 38 | + <br/> |
| 39 | + You can also set a custom Identity server but this will affect |
| 40 | + people's ability to find you if you use a server in a group other |
| 41 | + than the main Matrix.org group. |
| 42 | + </span> |
| 43 | + </div> |
| 44 | + <div className="mx_Dialog_buttons"> |
| 45 | + <button onClick={this.props.onFinished} autoFocus={true}> |
| 46 | + Dismiss |
| 47 | + </button> |
| 48 | + </div> |
| 49 | + </div> |
| 50 | + ); |
| 51 | + } |
| 52 | +}); |
0 commit comments