Skip to content

Commit

Permalink
#2 FileInfo is a li now and it's rendered over a ul
Browse files Browse the repository at this point in the history
  • Loading branch information
jonisaa committed Aug 10, 2016
1 parent df7ddbe commit 386d4c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/common/FileInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ const FileUploadItem = ({ file, height, width }) => {
}

return (
<div>
<li>
{image}
<p>{file.name}</p>
<p>{filesize(file.size)}</p>
</div>
</li>
);
};

Expand Down
4 changes: 2 additions & 2 deletions src/components/field/FileUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ export default class FileUpload extends Component {
<div>
Try dropping some files here, or click to select files to upload.
</div>
<div>{
<ul>{
files.map((file, index) => (
<FileInfo key={index} file={file}/>
))
}
</div>
</ul>
</DropZone>
<div>
<GlyphButton text="Upload" onClick={this.onClick}/>
Expand Down

0 comments on commit 386d4c0

Please sign in to comment.