mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03: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.
20 lines
430 B
JavaScript
20 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);
|
|
};
|