Skip to content

Instantly share code, notes, and snippets.

@dance2die
Created December 4, 2017 02:01
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/8b2d9681ce05983cddaa5b6e8fbcb3d5 to your computer and use it in GitHub Desktop.
Save dance2die/8b2d9681ce05983cddaa5b6e8fbcb3d5 to your computer and use it in GitHub Desktop.
import React from "react";
const ForkEvent = ({ created_at: eventDate, repo, org, actor, payload }) => {
const { display_login: login, url: actorURL } = actor;
const { name: repoName, url: repoURL } = repo;
return (
<div>
<h3>Fork - (<small>{eventDate.toString()}</small>)</h3>
<p>
<a href={actorURL}>{login}</a> has forked{" "}
<a href={repoURL}>{repoName}</a>
</p>
</div>
);
};
export default ForkEvent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment