9
9
// add back handleDeleteFile to props once posting attachments/messages is working/during the work for this ticket:
10
10
// https://github.com/scientist-softserv/webstore-component-library/issues/152*/
11
11
const FilesTable = ( { addClass, files } ) => {
12
- console . log ( 'files from filestable' , files )
13
12
if ( files . length === 0 ) {
14
13
return (
15
14
< h6 className = 'mt-3' > You do not have this type of document yet.</ h6 >
@@ -30,10 +29,10 @@ const FilesTable = ({ addClass, files }) => {
30
29
</ thead >
31
30
< tbody >
32
31
{ files . map ( ( file ) => {
33
- const { uuid, filename , uploadedBy, contentLength, createdAt } = file
32
+ const { uuid, fileName , uploadedBy, contentLength, createdAt } = file
34
33
return (
35
34
< tr key = { uuid } className = 'small' >
36
- < td > { filename } </ td >
35
+ < td > { fileName } </ td >
37
36
< td > { uploadedBy } </ td >
38
37
< td > { contentLength } </ td >
39
38
< td > { createdAt } </ td >
@@ -60,12 +59,10 @@ FilesTable.propTypes = {
60
59
files : PropTypes . arrayOf (
61
60
PropTypes . shape ( {
62
61
contentLength : PropTypes . string . isRequired ,
63
- content_length : PropTypes . number . isRequired ,
64
- content_type : PropTypes . string . isRequired ,
62
+ contentType : PropTypes . string . isRequired ,
65
63
createdAt : PropTypes . string . isRequired ,
66
- created_at : PropTypes . string . isRequired ,
67
64
download : PropTypes . string . isRequired ,
68
- filename : PropTypes . string . isRequired ,
65
+ fileName : PropTypes . string . isRequired ,
69
66
href : PropTypes . string . isRequired ,
70
67
status : PropTypes . string . isRequired ,
71
68
uploadedBy : PropTypes . string . isRequired ,
0 commit comments