summaryrefslogtreecommitdiffstats
path: root/web/react/components
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-08-13 12:07:32 -0700
committerReed Garmsen <rgarmsen2295@gmail.com>2015-08-13 12:07:32 -0700
commit912ca8e8dd2f69d8a15429f3ab4bbb7ac178ab8a (patch)
tree0bf0eaa86f20b6a319fec890506808445160c1c6 /web/react/components
parentafe028ae3a63ff341cbaf89b7841e977fb0061fd (diff)
downloadchat-912ca8e8dd2f69d8a15429f3ab4bbb7ac178ab8a.tar.gz
chat-912ca8e8dd2f69d8a15429f3ab4bbb7ac178ab8a.tar.bz2
chat-912ca8e8dd2f69d8a15429f3ab4bbb7ac178ab8a.zip
Changed location of file upload overlay
Diffstat (limited to 'web/react/components')
-rw-r--r--web/react/components/file_upload_overlay.jsx16
-rw-r--r--web/react/components/post_list.jsx18
2 files changed, 21 insertions, 13 deletions
diff --git a/web/react/components/file_upload_overlay.jsx b/web/react/components/file_upload_overlay.jsx
new file mode 100644
index 000000000..5f8ef0b0c
--- /dev/null
+++ b/web/react/components/file_upload_overlay.jsx
@@ -0,0 +1,16 @@
+// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+module.exports = React.createClass({
+ displayName: 'FileUploadOverlay',
+ render: function() {
+ return (
+ <div className='center-file-overlay invisible'>
+ <div>
+ <i className='fa fa-upload'></i>
+ <span>Drop a file to upload it.</span>
+ </div>
+ </div>
+ );
+ }
+});
diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx
index f45650279..83f806b79 100644
--- a/web/react/components/post_list.jsx
+++ b/web/react/components/post_list.jsx
@@ -463,19 +463,11 @@ module.exports = React.createClass({
}
return (
- <div>
- <div className='file-overlay center-file-overlay invisible'>
- <div>
- <i className="fa fa-upload"></i>
- <span>Drop a file to upload it.</span>
- </div>
- </div>
- <div ref="postlist" className="post-list-holder-by-time">
- <div className="post-list__table">
- <div className="post-list__content">
- { more_messages }
- { postCtls }
- </div>
+ <div ref="postlist" className="post-list-holder-by-time">
+ <div className="post-list__table">
+ <div className="post-list__content">
+ { more_messages }
+ { postCtls }
</div>
</div>
</div>