@@ -2,7 +2,7 @@ import React, { Component, PropTypes } from 'react';
22import DropZone from '../common/DropZone' ;
33import GlyphButton from '../common/GlyphButton' ;
44import FileInfo from '../common/FileInfo' ;
5- import { Grid , Col , Row } from 'react-bootstrap' ;
5+ import { Col , Row , Glyphicon } from 'react-bootstrap' ;
66
77import fetch from 'isomorphic-fetch' ;
88
@@ -24,7 +24,6 @@ export default class FileUpload extends Component {
2424
2525 onClick = ( ) => {
2626 // TODO Handle response status for upload service
27-
2827 const { files } = this . state ;
2928 const { url } = this . props ;
3029
@@ -47,14 +46,20 @@ export default class FileUpload extends Component {
4746 < div >
4847 < Row >
4948 < Col xs = { 2 } md = { 2 } >
50- < p align = "center" >
51- < b > Attachments</ b >
52- </ p >
49+ < div >
50+ < p >
51+ < b > Attachments</ b >
52+ </ p >
53+ </ div >
5354 </ Col >
5455 < Col xs = { 10 } md = { 10 } >
5556 < DropZone onDrop = { this . onDrop } >
5657 < div >
57- < p > Drop files to attach, or < a > browse</ a > </ p >
58+ < p style = { { textAlign : "center" } } >
59+ < Glyphicon glyph = "cloud-upload" /> Drop files to attach, or < a > browse</ a >
60+ </ p >
61+ </ div >
62+ < div >
5863 < ul > {
5964 files . map ( ( file , index ) => (
6065 < FileInfo key = { index } file = { file } />
@@ -67,7 +72,7 @@ export default class FileUpload extends Component {
6772 </ Row >
6873 < div >
6974 < span >
70- < GlyphButton glyph = "cloud-upload" text = "Upload" bsSize = "primary" onClick = { this . onClick } />
75+ < GlyphButton type = "submit" glyph = "cloud-upload" text = "Upload" bsSize = "primary" onClick = { this . onClick } />
7176 </ span >
7277 </ div >
7378 </ div >
0 commit comments