Created
December 4, 2017 02:03
-
-
Save dance2die/4fcdd430a41103986adfc616ce666f31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
const WatchEvent = ({ created_at: eventDate, repo, org, actor, payload }) => { | |
const { display_login: login, url: actorURL } = actor; | |
const { action } = payload; | |
const { name: repoName, url: repoURL } = repo; | |
return ( | |
<div> | |
<h3>Watch - (<small>{eventDate.toString()}</small>)</h3> | |
<p> | |
<a href={actorURL}>{login}</a> has {action} following{" "} | |
<a href={repoURL}>{repoName}</a> | |
</p> | |
</div> | |
); | |
}; | |
export default WatchEvent; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment