diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-06-01 03:59:25 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-06-01 03:59:25 +0200 |
| commit | dbbeffd02629209f42affe3fb4bb4c46639ba0e3 (patch) | |
| tree | fbd15c10cd5303eaaccbf0162401424209b684e6 /app/client/common | |
| parent | 964ac7009e6db5a06233bdc07fa63778eebf2db7 (diff) | |
remote IPC... done so sweetly, with promises and async
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> ) |
