Refactored various React components to use ES6 syntax and to match the style guide without any errors or warnings

Этот коммит содержится в:
hmhealey
2015-08-31 11:31:55 -04:00
родитель 72575ac7bd
Коммит 7d07bf6a79
25 изменённых файлов: 2078 добавлений и 1225 удалений

Просмотреть файл

@@ -1,12 +1,8 @@
// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved.
// See License.txt for license information.
module.exports = React.createClass({
displayName: 'FileUploadOverlay',
propTypes: {
overlayType: React.PropTypes.string
},
render: function() {
export default class FileUploadOverlay extends React.Component {
render() {
var overlayClass = 'file-overlay hidden';
if (this.props.overlayType === 'right') {
overlayClass += ' right-file-overlay';
@@ -23,4 +19,8 @@ module.exports = React.createClass({
</div>
);
}
});
}
FileUploadOverlay.propTypes = {
overlayType: React.PropTypes.string
};