+
Projects
+ {projects.length === 0 &&
}
+ {projects.length > 0 &&
+
+ {projects.map((project, index) => {
+ if (!project.manifest) {
+ return ''
+ }
+ return (
+
+
+ {project.manifest.title}
+ {project.manifest.subtitle}
+ {project.manifest.description}
+ {project.manifest.avatar &&
+ }{project.manifest.creator}
+
+
+ )
+ })}
+ }
+
)
+}
+
+Projects.propTypes = {
+ projectAddedEvents: PropTypes.array,
+ classes: PropTypes.object
+}
+
+const StyledProject = withStyles(styles)(Projects)
+export default withDatabase(withObservables([], ({ database }) => ({
+ projectAddedEvents: database.collections.get('lp_events').query(
+ Q.where('event', 'ProjectAdded')
+ ).observe()
+}))(StyledProject))