+
+
+
+
+ Project History
+
+
+
+
+
+
+
+
+
+
+ {isLoadingTree === false &&
+ currentSnapshotTree !== null &&
+ currentSnapshotTree.children !== null &&
+ currentSnapshotTree.title !== null &&
+ currentSnapshotTree.id !== null &&
+ currentSnapshotID !== null &&
+ currentSnapshotList !== null && (
+
+ {gitgraph => {
+ const initBranch = gitgraph.branch(currentSnapshotTree.title);
+ initBranch.commit(
+ commitFunction({
+ title: currentSnapshotTree.title || '',
+ description: currentSnapshotTree.description || '',
+ author: (currentSnapshotTree.author && currentSnapshotTree.author.username) || '',
+ email: (currentSnapshotTree.author && currentSnapshotTree.author.email) || '',
+ hash: currentSnapshotTree.id,
+ isSelected: currentSnapshotID === currentSnapshotTree.id,
+ created: currentSnapshotTree.created
+ })
+ );
+
+ currentSnapshotTree.children.forEach(childID => {
+ renderTreeNode(childID, gitgraph, initBranch);
+ });
+ }}
+
+ )}
+
+
+