summaryrefslogtreecommitdiffstats
path: root/webapp/components/file_attachment_list.jsx
diff options
context:
space:
mode:
authorAsaad Mahmood <asaadmahmoodspin@users.noreply.github.com>2016-05-16 17:06:26 +0500
committerChristopher Speller <crspeller@gmail.com>2016-05-16 08:06:26 -0400
commit0258fcfa5c8da92351371169b66ce30462a34853 (patch)
treed69803cff43a633202b877738e514867f4424e0c /webapp/components/file_attachment_list.jsx
parent565b111234f5566da632533109e1b4f4044e7116 (diff)
downloadchat-0258fcfa5c8da92351371169b66ce30462a34853.tar.gz
chat-0258fcfa5c8da92351371169b66ce30462a34853.tar.bz2
chat-0258fcfa5c8da92351371169b66ce30462a34853.zip
Adding compact layout (#2991)
* Adding compact layout * Fixing ESLint error
Diffstat (limited to 'webapp/components/file_attachment_list.jsx')
-rw-r--r--webapp/components/file_attachment_list.jsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/webapp/components/file_attachment_list.jsx b/webapp/components/file_attachment_list.jsx
index 59fd56bc3..e4b841769 100644
--- a/webapp/components/file_attachment_list.jsx
+++ b/webapp/components/file_attachment_list.jsx
@@ -29,6 +29,7 @@ export default class FileAttachmentList extends React.Component {
filename={filenames[i]}
index={i}
handleImageClick={this.handleImageClick}
+ compactDisplay={this.props.compactDisplay}
/>
);
}
@@ -60,5 +61,7 @@ FileAttachmentList.propTypes = {
channelId: React.PropTypes.string,
// the user that owns the post that this is attached to
- userId: React.PropTypes.string
+ userId: React.PropTypes.string,
+
+ compactDisplay: React.PropTypes.bool
};