Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
Refactor Unsubscribe prop link to href
Browse files Browse the repository at this point in the history
  • Loading branch information
cvburgess committed Oct 22, 2016
1 parent 96a6e95 commit 18c00bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Unsubscribe.jsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
const React = require('react');

const Unsubscribe = ({link}) => (
const Unsubscribe = ({href}) => (
<div className="unsubscribe">
<p>Don't want these emails? No worries!</p>
<p><a href={link}>Click here to unsubscribe.</a></p>
<p><a href={href}>Click here to unsubscribe.</a></p>
</div>
);

Unsubscribe.propTypes = {
link: React.PropTypes.string.isRequired
href: React.PropTypes.string.isRequired
};

module.exports = Unsubscribe;

0 comments on commit 18c00bc

Please sign in to comment.