mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 14:44:58 +08:00
dc5c0928b2
Check that it puts the read marker in the right place, and check that the animation works. ... all of which has been surprisingly painful.
21 lines
430 B
JavaScript
21 lines
430 B
JavaScript
/* A dummy React component which we use for stubbing out app-level components
|
|
*/
|
|
'use strict';
|
|
|
|
var React = require('react');
|
|
|
|
module.exports = function(opts) {
|
|
opts = opts || {};
|
|
if (!opts.displayName) {
|
|
opts.displayName = 'StubComponent';
|
|
}
|
|
|
|
if (!opts.render) {
|
|
opts.render = function() {
|
|
return <div>{this.displayName}</div>;
|
|
}
|
|
}
|
|
|
|
return React.createClass(opts);
|
|
};
|