|
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) |
12 | 13 | if (files.length === 0) {
|
13 | 14 | return (
|
14 | 15 | <h6 className='mt-3'>You do not have this type of document yet.</h6>
|
@@ -56,7 +57,19 @@ const FilesTable = ({ addClass, files }) => {
|
56 | 57 |
|
57 | 58 | FilesTable.propTypes = {
|
58 | 59 | addClass: PropTypes.string,
|
59 |
| - files: PropTypes.shapeOf(['']).isRequired, |
| 60 | + files: PropTypes.shape([{ |
| 61 | + contentLength: PropTypes.string.isRequired, |
| 62 | + content_length: PropTypes.number.isRequired, |
| 63 | + content_type: PropTypes.string.isRequired, |
| 64 | + createdAt: PropTypes.string.isRequired, |
| 65 | + created_at: PropTypes.string.isRequired, |
| 66 | + download: PropTypes.string.isRequired, |
| 67 | + filename: PropTypes.string.isRequired, |
| 68 | + href: PropTypes.string.isRequired, |
| 69 | + status: PropTypes.string.isRequired, |
| 70 | + uploadedBy: PropTypes.string.isRequired, |
| 71 | + uuid: PropTypes.string.isRequired, |
| 72 | + }]).isRequired, |
60 | 73 | // TODO(summer-cook): add this back in. see comment above.
|
61 | 74 | // handleDeleteFile: PropTypes.func.isRequired,
|
62 | 75 | }
|
|
0 commit comments