From 4b22c1f99cb05be5ca187f2fd70ee2664c34de57 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Thu, 3 Sep 2015 10:49:36 -0400 Subject: Upgrading ESLint and adding some more rules. Refactoring to meet these new rules --- web/react/components/file_attachment.jsx | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'web/react/components/file_attachment.jsx') diff --git a/web/react/components/file_attachment.jsx b/web/react/components/file_attachment.jsx index 5d7855037..78693df98 100644 --- a/web/react/components/file_attachment.jsx +++ b/web/react/components/file_attachment.jsx @@ -101,10 +101,13 @@ export default class FileAttachment extends React.Component { var thumbnail; if (type === 'image') { - thumbnail = (
); + thumbnail = ( +
+ ); } else { thumbnail =
; } @@ -135,20 +138,23 @@ export default class FileAttachment extends React.Component { return (
+ key={filename} + > + data-target={'#' + this.props.modalId} + > {thumbnail}
+ className='post-image__name' + > {trimmedFilename}
-- cgit v1.2.3-1-g7c22