Skip to content

Instantly share code, notes, and snippets.

@dance2die
Created December 4, 2017 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dance2die/4fcdd430a41103986adfc616ce666f31 to your computer and use it in GitHub Desktop.
Save dance2die/4fcdd430a41103986adfc616ce666f31 to your computer and use it in GitHub Desktop.
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