From 52f3d7f18bdeaa2486f89a1a607ed41ac45f755b Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Tue, 1 Dec 2015 16:12:13 +0000 Subject: [PATCH] Add generic LoginFooter. Remove vector reference --- src/components/structures/login/Login.js | 8 ++---- src/components/views/login/LoginFooter.js | 31 +++++++++++++++++++++++ 2 files changed, 33 insertions(+), 6 deletions(-) create mode 100644 src/components/views/login/LoginFooter.js diff --git a/src/components/structures/login/Login.js b/src/components/structures/login/Login.js index e3ec87f8f2..dd47d5b907 100644 --- a/src/components/structures/login/Login.js +++ b/src/components/structures/login/Login.js @@ -159,6 +159,7 @@ module.exports = React.createClass({displayName: 'Login', render: function() { var Loader = sdk.getComponent("elements.Spinner"); + var LoginFooter = sdk.getComponent("login.LoginFooter"); var loader = this.state.busy ?
: null; return ( @@ -185,12 +186,7 @@ module.exports = React.createClass({displayName: 'Login', Create a new account
-
- blog  ·   - twitter  ·   - github  ·   - powered by Matrix -
+ diff --git a/src/components/views/login/LoginFooter.js b/src/components/views/login/LoginFooter.js new file mode 100644 index 0000000000..d486b3597e --- /dev/null +++ b/src/components/views/login/LoginFooter.js @@ -0,0 +1,31 @@ +/* +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'); + +module.exports = React.createClass({ + displayName: 'LoginFooter', + + render: function() { + return ( +
+ powered by Matrix +
+ ); + } +});