Renamed /src to /frontend
This commit is contained in:
29
frontend/components/DocumentList/DocumentList.js
Normal file
29
frontend/components/DocumentList/DocumentList.js
Normal file
@ -0,0 +1,29 @@
|
||||
import React from 'react';
|
||||
|
||||
import DocumentPreview from 'components/DocumentPreview';
|
||||
import Divider from 'components/Divider';
|
||||
|
||||
import styles from './DocumentList.scss';
|
||||
|
||||
class DocumentList extends React.Component {
|
||||
static propTypes = {
|
||||
documents: React.PropTypes.arrayOf(React.PropTypes.object),
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
{ this.props.documents && this.props.documents.map((document) => {
|
||||
return (
|
||||
<div>
|
||||
<DocumentPreview document={ document } />
|
||||
<Divider />
|
||||
</div>
|
||||
);
|
||||
}) }
|
||||
</div>
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
export default DocumentList;
|
Reference in New Issue
Block a user