New component for testing

This commit is contained in:
wmwragg 2016-07-21 17:44:05 +01:00
parent 0958a6bb62
commit 633a3f4867
2 changed files with 40 additions and 0 deletions

View file

@ -35,6 +35,7 @@ module.exports.components['structures.RoomSubList'] = require('./components/stru
module.exports.components['structures.SearchBox'] = require('./components/structures/SearchBox');
module.exports.components['structures.ViewSource'] = require('./components/structures/ViewSource');
module.exports.components['views.elements.ImageView'] = require('./components/views/elements/ImageView');
module.exports.components['views.elements.Label'] = require('./components/views/elements/Label');
module.exports.components['views.elements.Spinner'] = require('./components/views/elements/Spinner');
module.exports.components['views.globals.GuestWarningBar'] = require('./components/views/globals/GuestWarningBar');
module.exports.components['views.globals.MatrixToolbar'] = require('./components/views/globals/MatrixToolbar');

View file

@ -0,0 +1,39 @@
/*
Copyright 2015, 2016 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: 'Label',
propTypes: {
label: React.PropTypes.string,
},
getInitialState: function() {
return({ label : "LABEL" });
},
render: function() {
return (
<div>
{ this.props.label }
</div>
);
}
});