Quellcode durchsuchen

Feature: set the SCM link

fecaille vor 9 Jahren
Ursprung
Commit
50d3c7846f
2 geänderte Dateien mit 19 neuen und 1 gelöschten Zeilen
  1. 1 1
      pom.xml
  2. 18 0
      src/main/resources/static/js/comment_list.jsx

+ 1 - 1
pom.xml

@@ -9,7 +9,7 @@
 	<packaging>${packaging.type}</packaging>
 
 	<scm>
-		<developerConnection>scm:git:TOFILL</developerConnection>
+		<developerConnection>scm:git:https://github.com/Febbweiss/springboot-react-webpack</developerConnection>
 	</scm>
   
 	<parent>

+ 18 - 0
src/main/resources/static/js/comment_list.jsx

@@ -0,0 +1,18 @@
+import React from 'react';
+import Comment from './comment.jsx';
+
+const CommentList = function (props) {
+  const commentNodes = props.data.map(function*(comment) {
+    return (
+      <Comment author={comment.author} key={comment.id}>{comment.text}</Comment>
+    );
+  });
+  return (
+    <div className="commentList">
+      {commentNodes}
+    </div>
+  );
+};
+CommentList.propTypes = {
+  data: React.PropTypes.node,
+};