diff --git a/src/eventButton.js b/src/eventButton.js index 6588ea2..4490792 100644 --- a/src/eventButton.js +++ b/src/eventButton.js @@ -40,7 +40,7 @@ const EventButton = (obj) => { return ( - {eventSpecificInfo} + {obj.idx}: {eventSpecificInfo} ) } diff --git a/src/eventViewer.js b/src/eventViewer.js index 5936bf5..c0116f2 100644 --- a/src/eventViewer.js +++ b/src/eventViewer.js @@ -3,19 +3,32 @@ import EventButton from "./eventButton"; import ScrollContainer from 'react-indiana-drag-scroll'; const EventViewer = (obj) => { + let txCounter = 0; + let currentTx = ""; return (
- {obj.events.map((eventObj, idx) => { - // TODO: make something that groups shit as long as the eventObj.transactionUrl is the same - return - })} +
+ +
+ {obj.events.map((eventObj, idx) => { + if(currentTx != eventObj.transactionHash){ + txCounter++; + currentTx = eventObj.transactionHash; + } + // TODO: make something that groups shit as long as the eventObj.transactionUrl is the same + return + })} +
+
+
) }