summaryrefslogtreecommitdiffstats
path: root/web/react/components/file_attachment_list.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-07-28 18:37:21 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-07-29 10:18:58 -0400
commitde01a7e6797a0d5c73bccc709639ff4ba328b744 (patch)
treee61c1044456152f63e43e3183ec84776ab7fe31f /web/react/components/file_attachment_list.jsx
parent782e7b03adc6cf322dd7d9a95490d264399a5a90 (diff)
downloadchat-de01a7e6797a0d5c73bccc709639ff4ba328b744.tar.gz
chat-de01a7e6797a0d5c73bccc709639ff4ba328b744.tar.bz2
chat-de01a7e6797a0d5c73bccc709639ff4ba328b744.zip
Cleaned up ViewImageModal and FileAttachment and added some extra comments
Diffstat (limited to 'web/react/components/file_attachment_list.jsx')
-rw-r--r--web/react/components/file_attachment_list.jsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/react/components/file_attachment_list.jsx b/web/react/components/file_attachment_list.jsx
index 5f2690fdf..b92442957 100644
--- a/web/react/components/file_attachment_list.jsx
+++ b/web/react/components/file_attachment_list.jsx
@@ -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() {