@@ -38,41 +38,43 @@ export class FileMessage extends Component {
3838 } ;
3939
4040 return (
41- < button className = "rce-mbox-file" onClick = { this . onClick . bind ( this ) } >
42- < div className = "rce-mbox-file--icon" >
43- < FaFile
44- color = '#aaa' />
45- < div className = "rce-mbox-file--size" >
46- { this . props . data . size }
47- </ div >
48- </ div >
49- < div className = "rce-mbox-file--text" >
50- { this . props . text }
51- </ div >
52- < div className = "rce-mbox-file--buttons" >
53- {
54- this . props . data . status &&
55- ! this . props . data . status . download &&
56- ! this . props . data . status . click &&
57- < FaCloudDownload
41+ < div className = 'rce-mbox-file' >
42+ < button onClick = { this . onClick . bind ( this ) } >
43+ < div className = "rce-mbox-file--icon" >
44+ < FaFile
5845 color = '#aaa' />
59- }
60- {
61- this . props . data . status &&
62- typeof this . props . data . status . loading === 'number' &&
63- this . props . data . status . loading !== 0 &&
64- < Circle
65- progress = { this . props . data . status . loading }
66- options = { progressOptions }
67- initialAnimate = { true }
68- containerStyle = { {
69- width : '40px' ,
70- height : '40px' ,
71- } }
72- containerClassName = { 'rce-mbox-file--loading' } />
73- }
74- </ div >
75- </ button >
46+ < div className = "rce-mbox-file--size" >
47+ { this . props . data . size }
48+ </ div >
49+ </ div >
50+ < div className = "rce-mbox-file--text" >
51+ { this . props . text }
52+ </ div >
53+ < div className = "rce-mbox-file--buttons" >
54+ {
55+ this . props . data . status &&
56+ ! this . props . data . status . download &&
57+ ! this . props . data . status . click &&
58+ < FaCloudDownload
59+ color = '#aaa' />
60+ }
61+ {
62+ this . props . data . status &&
63+ typeof this . props . data . status . loading === 'number' &&
64+ this . props . data . status . loading !== 0 &&
65+ < Circle
66+ progress = { this . props . data . status . loading }
67+ options = { progressOptions }
68+ initialAnimate = { true }
69+ containerStyle = { {
70+ width : '40px' ,
71+ height : '40px' ,
72+ } }
73+ containerClassName = { 'rce-mbox-file--loading' } />
74+ }
75+ </ div >
76+ </ button >
77+ </ div >
7678 ) ;
7779 }
7880}
0 commit comments