From 05a6121934f9169e4f9e2e21cbbfc450d6ffe9fb Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Tue, 1 Dec 2015 16:27:48 +0000 Subject: [PATCH] Add default LoginHeader --- src/components/structures/login/Login.js | 7 +++-- src/components/views/login/LoginHeader.js | 31 +++++++++++++++++++++++ 2 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 src/components/views/login/LoginHeader.js diff --git a/src/components/structures/login/Login.js b/src/components/structures/login/Login.js index dd47d5b907..54cd9e3efb 100644 --- a/src/components/structures/login/Login.js +++ b/src/components/structures/login/Login.js @@ -151,7 +151,7 @@ module.exports = React.createClass({displayName: 'Login', return (
Sorry, this homeserver is using a login which is not - recognised by Vector ({step}) + recognised ({step})
); } @@ -159,15 +159,14 @@ module.exports = React.createClass({displayName: 'Login', render: function() { var Loader = sdk.getComponent("elements.Spinner"); + var LoginHeader = sdk.getComponent("login.LoginHeader"); var LoginFooter = sdk.getComponent("login.LoginFooter"); var loader = this.state.busy ?
: null; return (
-
- vector -
+

Sign in

{ this.componentForStep(this._getCurrentFlowStep()) } diff --git a/src/components/views/login/LoginHeader.js b/src/components/views/login/LoginHeader.js new file mode 100644 index 0000000000..c64016413b --- /dev/null +++ b/src/components/views/login/LoginHeader.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: 'LoginHeader', + + render: function() { + return ( +
+ Matrix +
+ ); + } +});