2015-12-01 17:12:38 +01:00
|
|
|
/*
|
2016-01-07 05:17:56 +01:00
|
|
|
Copyright 2015, 2016 OpenMarket Ltd
|
2019-01-22 01:40:34 +01:00
|
|
|
Copyright 2019 New Vector Ltd
|
2015-12-01 17:12:38 +01: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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
'use strict';
|
|
|
|
|
2018-11-22 19:25:55 +01:00
|
|
|
const React = require('react');
|
2017-05-25 12:39:56 +02:00
|
|
|
import { _t } from 'matrix-react-sdk/lib/languageHandler';
|
2017-11-13 21:14:29 +01:00
|
|
|
import SettingsStore from 'matrix-react-sdk/lib/settings/SettingsStore';
|
2015-12-01 17:12:38 +01:00
|
|
|
|
|
|
|
module.exports = React.createClass({
|
2019-01-22 01:40:34 +01:00
|
|
|
displayName: 'VectorAuthFooter',
|
2015-12-01 19:31:13 +01:00
|
|
|
statics: {
|
2019-01-22 01:40:34 +01:00
|
|
|
replaces: 'AuthFooter',
|
2015-12-01 19:31:13 +01:00
|
|
|
},
|
2015-12-01 17:12:38 +01:00
|
|
|
|
|
|
|
render: function() {
|
2017-11-12 00:47:03 +01:00
|
|
|
// FIXME: replace this with a proper Status skin
|
2018-04-18 17:20:32 +02:00
|
|
|
// ...except then we wouldn't be able to switch to the Status theme at runtime.
|
2018-11-22 19:25:55 +01:00
|
|
|
if (SettingsStore.getValue("theme") === 'status') return <div />;
|
|
|
|
|
2015-12-01 17:12:38 +01:00
|
|
|
return (
|
2019-01-22 01:40:34 +01:00
|
|
|
<div className="mx_AuthFooter">
|
2016-09-19 16:18:49 +02:00
|
|
|
<a href="https://medium.com/@RiotChat">blog</a> ·
|
2016-09-19 16:32:39 +02:00
|
|
|
<a href="https://twitter.com/@RiotChat">twitter</a> ·
|
2017-08-30 21:06:19 +02:00
|
|
|
<a href="https://github.com/vector-im/riot-web">github</a> ·
|
2017-05-23 15:12:53 +02:00
|
|
|
<a href="https://matrix.org">{ _t('powered by Matrix') }</a>
|
2015-12-01 17:12:38 +01:00
|
|
|
</div>
|
|
|
|
);
|
2018-11-22 19:25:55 +01:00
|
|
|
},
|
2015-12-01 17:12:38 +01:00
|
|
|
});
|