diff options
Diffstat (limited to 'app/client/common')
| -rw-r--r-- | app/client/common/fileList.component.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/client/common/fileList.component.js b/app/client/common/fileList.component.js index 09e4268..8f7ff5a 100644 --- a/app/client/common/fileList.component.js +++ b/app/client/common/fileList.component.js @@ -11,7 +11,7 @@ class FileList extends Component { super() } render(){ - const { files, linkFiles, onClick } = this.props + const { files, linkFiles, title, onClick } = this.props if (!files.length) return null let fields = this.props.fields || defaultFields const fileList = files.map(file => { @@ -56,6 +56,7 @@ class FileList extends Component { }) return ( <div className='filelist rows'> + {title && <h3>{title}</h3>} {fileList} </div> ) |
