From dbbeffd02629209f42affe3fb4bb4c46639ba0e3 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 1 Jun 2018 03:59:25 +0200 Subject: remote IPC... done so sweetly, with promises and async --- app/client/common/fileList.component.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/client/common') 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 (
+ {title &&

{title}

} {fileList}
) -- cgit v1.2.3-70-g09d2