Cleaned up ViewImageModal and FileAttachment and added some extra comments

Этот коммит содержится в:
hmhealey
2015-07-28 18:37:21 -04:00
родитель 782e7b03ad
Коммит de01a7e679
3 изменённых файлов: 27 добавлений и 11 удалений

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

@@ -8,9 +8,13 @@ var Constants = require('../utils/constants.jsx');
module.exports = React.createClass({
displayName: "FileAttachmentList",
propTypes: {
// a list of file pathes displayed by this
filenames: React.PropTypes.arrayOf(React.PropTypes.string).isRequired,
// the identifier of the modal dialog used to preview files
modalId: React.PropTypes.string.isRequired,
// the channel that this is part of
channelId: React.PropTypes.string,
// the user that owns the post that this is attached to
userId: React.PropTypes.string
},
getInitialState: function() {