mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-06 02:41:54 +03:00
d3f9a3aeb5
Fixing 1000s of lint issues. Some rules cannot be `--fix`ed but this goes some way to linting the entire codebase.
20 lines
435 B
JavaScript
20 lines
435 B
JavaScript
/* A dummy React component which we use for stubbing out app-level components
|
|
*/
|
|
'use strict';
|
|
|
|
const 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);
|
|
};
|