2015-12-01 19:49:15 +03:00
|
|
|
/*
|
2016-01-07 07:06:39 +03:00
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
2015-12-01 19:49:15 +03:00
|
|
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
|
2017-05-30 17:09:57 +03:00
|
|
|
import React from 'react';
|
2019-08-30 12:27:51 +03:00
|
|
|
import createReactClass from 'create-react-class';
|
2017-05-30 17:09:57 +03:00
|
|
|
import { _t } from '../../../languageHandler';
|
2015-12-01 19:49:15 +03:00
|
|
|
|
2019-08-30 12:27:51 +03:00
|
|
|
module.exports = createReactClass({
|
2015-12-01 19:49:15 +03:00
|
|
|
displayName: 'CustomServerDialog',
|
|
|
|
|
|
|
|
render: function() {
|
|
|
|
return (
|
|
|
|
<div className="mx_ErrorDialog">
|
2016-01-13 18:32:41 +03:00
|
|
|
<div className="mx_Dialog_title">
|
2017-10-11 19:56:17 +03:00
|
|
|
{ _t("Custom Server Options") }
|
2015-12-01 19:49:15 +03:00
|
|
|
</div>
|
|
|
|
<div className="mx_Dialog_content">
|
2019-01-29 06:50:49 +03:00
|
|
|
<p>{_t(
|
|
|
|
"You can use the custom server options to sign into other " +
|
|
|
|
"Matrix servers by specifying a different homeserver URL. This " +
|
|
|
|
"allows you to use this app with an existing Matrix account on a " +
|
|
|
|
"different homeserver.",
|
|
|
|
)}</p>
|
|
|
|
<p>{_t(
|
|
|
|
"You can also set a custom identity server, but you won't be " +
|
|
|
|
"able to invite users by email address, or be invited by email " +
|
|
|
|
"address yourself.",
|
|
|
|
)}</p>
|
2015-12-01 19:49:15 +03:00
|
|
|
</div>
|
|
|
|
<div className="mx_Dialog_buttons">
|
|
|
|
<button onClick={this.props.onFinished} autoFocus={true}>
|
2017-10-11 19:56:17 +03:00
|
|
|
{ _t("Dismiss") }
|
2015-12-01 19:49:15 +03:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
2017-10-11 19:56:17 +03:00
|
|
|
},
|
2015-12-01 19:49:15 +03:00
|
|
|
});
|