Created
December 4, 2017 02:01
-
-
Save dance2die/8b2d9681ce05983cddaa5b6e8fbcb3d5 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 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